MSP430G2553 UART 波特率和控制寄存器。我可以使用单词访问吗?
MSP430G2553 UART Baudrate and Control Registers. Can I use word access?
是否可以通过字访问对 MSP430G2553 UART 寄存器进行编程,或者内部外设是否只有字节宽,因此只能字节访问?
(我知道 MCTL 在这个设备上只有字节宽。)
2xx 系列用户指南在第 1.4.3 节中说:
The address space from 010h to 0FFh is reserved for 8-bit peripheral modules. These modules should be accessed with byte instructions. Read access of byte modules using word instructions results in unpredictable data in the high byte. If word data is written to a byte module only the low byte is written into the peripheral register, ignoring the high byte.
是否可以通过字访问对 MSP430G2553 UART 寄存器进行编程,或者内部外设是否只有字节宽,因此只能字节访问?
(我知道 MCTL 在这个设备上只有字节宽。)
2xx 系列用户指南在第 1.4.3 节中说:
The address space from 010h to 0FFh is reserved for 8-bit peripheral modules. These modules should be accessed with byte instructions. Read access of byte modules using word instructions results in unpredictable data in the high byte. If word data is written to a byte module only the low byte is written into the peripheral register, ignoring the high byte.