|
msp430中usart模块的问题USART模块中 异步通信寄存器和同步通信寄存器中有些东西都一样么?比如IAR中里面用的
// Put state machine in reset
UCB1CTL1 |= UCSWRST;
而我在头文件中查到:
// UCAxCTL1 UART-Mode Control Bits
#define UCSSEL1 (0x80) /* USCI 0 Clock Source Select 1 */
#define UCSSEL0 (0x40) /* USCI 0 Clock Source Select 0 */
#define UCRXEIE (0x20) /* RX Error interrupt enable */
#define UCBRKIE (0x10) /* Break interrupt enable */
#define UCDORM (0x08) /* Dormant (Sleep) Mode */
#define UCTXADDR (0x04) /* Send next Data as Address */
#define UCTXBRK (0x02) /* Send next Data as Break */
#define UCSWRST (0x01) /* USCI Software Reset */
这是怎么回事?难道这个头文件 UCAxCTL1 和 UCB1CTL1公用寄存器的内容么?
|
|