Forum : 8051
Post Information | Post |
---|---|
November 13, 2007 - 1:14am
|
Hi, I'm trying to establish serial communication(USART1) using Timer 1 in mode 2. Serial port 1 mode is 1 with 1 start, 1 stop bit, and 8 data bits. CKCON = 0; // 0 MOVX cycle stretch TH1 = 0xFA; SM0_1 = 0; // serial port 1 mode = 1 ES1 = 1; // Enable Serial 1 interrupt Is there anything wrong with this configuration to achieve 9600 baud? I'm trying to echo what's been received through USART1, but I do not get what I sent. |
Is there anything wrong with this configuration to achieve 9600 baud nobody can tell when the clock rate and derivative is not specified
Erik