This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
我用的IAR,添加头文件<msp430g2433.h>后,发现头文件中UART处寄存器定义 与我在官网上下了 User's Guide 的定义不一致。比如:头文件中的UCA0CTL0 是 UART控制寄存器,但是 用户指南中的是 U0CTL,这个是怎么回事呢?
bo gao 1,
事实上,你在user guide中差错地方了,你查的是USART Peripheral Interface, UART Mode,USART外设只存在于MSP430AFE2xx devices;它对应的寄存器是U0CTL。 但这个USART在MSP430g2433中是没有的;
MSP430g2433的UART外设应该是USCI. 故你应该在user guide中查看 15.4 USCI Registers: UART Mode ,就可以看到UCA0CTL0 了。