上一页 1 ··· 14 15 16 17 18

2008年8月22日

Blackfin BF533 SPI 调试日志

摘要: 最近参加ADI的UDC(University Design Competition)比赛,调试触摸屏,用的是BF533,调试SPI调试了半天,问亿旗,只是搪塞回答了一下,后来问中国ADI的DSP技术支持,他们还在开发板上调试了我的代码,真负责,原来是我没有加ssync();这条语句。不过,现在触摸屏还是有问题,BF533不能和它通信目前。//** file: spi.h//** target: ADSP-BF533//** creat time: 2008-8-19#ifndef _SPI_H#define _SPI_H#define SPI_SEL_LOW *pSPI_FLG ... 阅读全文

posted @ 2008-08-22 10:04 yanhc 阅读(885) 评论(0) 推荐(0) 编辑

BF533和触摸屏接口芯片TSC2200调试日志

摘要: 问了一下亿旗,终于调出来了,下面是部分源代码://************************************************////** file: spi.c//** target: ADSP-BF533//** creat time: 2008-8-19#include <ccblkfn.h>#include <cdefBF533.h>#include "sys_func.h"//SPI interface funtionvoid SPI_Init(void){ *pSPI_BAUD = (unsigned short)(G 阅读全文

posted @ 2008-08-22 10:03 yanhc 阅读(390) 评论(0) 推荐(0) 编辑

C Bit Fields——C Language Reference(from msdn)

摘要: C Language ReferenceC Bit FieldsIn addition to declarators for members of a structure or union, astructure declarator can also be a specified number of bits, called a"bit field." Its length is set off from the declarator for the fieldname by a colon. A bit field is interpreted as an integr 阅读全文

posted @ 2008-08-22 10:00 yanhc 阅读(421) 评论(0) 推荐(0) 编辑

2008年4月29日

AVR(M48)的i2c程序,读写at24c02

摘要: //ICC-AVR application builder : 2007-12-5 17:34:01// Target : m48// Crystal: 1.0000Mhz#include <iom168v.h>#include <macros.h>#include <myfun.h>//#include <I2C.h>#define START 0x08#define ReSTART 0x10#define MT_SLA_ACK 0x18#define MT_DATA_ACK 0x28#define MR_SLA_ACK 0x40#define 阅读全文

posted @ 2008-04-29 15:44 yanhc 阅读(668) 评论(0) 推荐(0) 编辑

2008年2月18日

AVR_M168_debug_log

摘要: USART://TIPS://transmitt and receive enable,set the baud rate;if use the interrupt,//then set the interrupt enable最好是先启动串口调试工具,再启动M168,若相反,则导致起始位定在一帧数据的中间,造成接受的数据连续出错,eg:发59,收到95,56,65,59 阅读全文

posted @ 2008-02-18 14:32 yanhc 阅读(165) 评论(0) 推荐(0) 编辑

上一页 1 ··· 14 15 16 17 18

导航