No.105249 作者:zergfan 邮件:zergfan@163.com ID:57447 登陆:4次 文章数:3篇 最后登陆IP:221.217.241.113 最后登陆:2006/11/27 13:37:25 注册:2006/7/27 0:04:03 财富:112 发帖时间:2007/5/15 0:46:59 发贴者IP:221.222.207.86 标题:zergfan:请教16C554A的访问方法 摘要:No.105249请教16C554A的访问方法
点击浏览该文件 大家好,我做了一个小的系统,其中用到了16C554A,但是怎样也发送不出数据.下面附上一段相关的程序和 原理图,请各位费心,谢谢! 我没有用中断,用的是16C554A的FIFO POLLED MODE.初始化之后,直接发数据. CPU为,MEGA64,16M晶振. #define TL16c554A_Base ((volatile unsigned char*) 0x8000) #define TL16c554B_Base ((volatile unsigned char*) 0xa000) #define TL16c554C_Base ((volatile unsigned char*) 0xc000) #define TL16c554D_Base ((volatile unsigned char*) 0xe000) #define RBR 0 #define THR 0 #define DLL 0 #define DLM 1 #define IER 1 #define IIR 2 #define FCR 2 #define LCR 3 #define MCR 4 #define LSR 5 #define MSR 6 SREG=0x80; //Enable all interrupt. MCUCR=0xc0; //Enable external memory extending. XMCRA=0x02; //Disable Bus holding XMCRB=0x00; //Disble Bus ......
>>返回讨论的主题
|