MSP430 UART计算器

时间:2017-05-18 10:58:22
【文件属性】:

文件名称:MSP430 UART计算器

文件大小:228KB

文件格式:RAR

更新时间:2017-05-18 10:58:22

MSP430 UART 计算器

MSP430 UART计算器可以直接生成代码 static void initUART0_4800(void) { // Processor MSP430x1xx // Baudrate=4800, actual=4766.255 (-0.703%) // BRCLK=32768 Hz U0CTL = SWRST; // Set the reset bit to hold inactive U0BR0 = 0x06; // Prescale divisor = 0x0006 U0BR1 = 0x00; U0MCTL = 0xEF; // Modulation 11101111 U0CTL = SWRST+CHAR; // P=none, 8 bits, 1 stop U0TCTL = SSEL0; // ACLK U0RCTL = 0; // wake on all correct rx ME1 |= URXE0 +UTXE0; // Enable the module P3SEL |= 0x30; // P3.4,5 special function P3DIR |= 0x10; // P3.4 TX output P3DIR &= ~0x20; // P3.5 RX input U0CTL &= ~SWRST; // Release the UART to operation IE1 |= 0; // } // initUART0_4800()


【文件预览】:
MSP430UART.exe

网友评论