小弟学生党,初学DSP,在看到UART的时候有些地方不是很懂,芯片用的是TL16C752B
- /*Set UART registers address 。*/
- #define DEC6713_UART_BASE 0xB0080000
- //#define DEC6713_UART_BASE 0xB0040000
- #define UART_RHR 0x0000<<1
- #define UART_THR 0x0000<<1
- #define UART_IER 0x0001<<1
- #define UART_FCR 0x0002<<1
- #define UART_IIR 0x0002<<1
- #define UART_LCR 0x0003<<1
- #define UART_MCR 0x0004<<1
- #define UART_LSR 0x0005<<1
- #define UART_MSR 0x0006<<1
- #define UART_SPR 0x0007<<1
- #define UART_DLL 0x0000<<1
- #define UART_DLH 0x0001<<1
- #define UART_EFR 0x0002<<1
- #define UART_XON1 0x0004<<1
- #define UART_XON2 0x0005<<1
- #define UART_XOFF1 0x0006<<1
- #define UART_XOFF2 0x0007<<1
- #define UART_TCR 0x0006<<1
- #define UART_TLR 0x0007<<1
- #define UART_FDY 0x0007<<1
- /*UART channel address*/
- #define chanel_a 0x0000<<1/*channel a*/
- #define chanel_b 0x0001<<1 /*channel b*/
地址线A2~A0用于内部寄存器地址选择,为什么地址还要左移一位呢?
在异步串行通信方面有没有什么好的资料推荐一下呢?这方面实际没有怎么接触,只有课上对概念的一些模糊了解,结果现在用到这些东西的时候真的很头疼,有没有哪位大神传授一下经验,我该从哪里下手?
|