|
U1CTL = CHAR | SYNC | MM | SWRST; // spi master, loopback disabled, 8 bit data
U1TCTL = CKPH | SSEL1 | SSEL0; // CKPL = 0, CKPH = 1, clock is SMCLK
U1BR0 = 2 & 0xff;
U1BR1 = 2 >> 8;
ME2 |= USPIE1;
U1CTL &= ~SWRST; // enable USART1 operation
P5SEL |= 0x0a;
E-mail: info@telesys.ru