| ??? 08/03/01 07:37 Read: times |
#13791 - 80c320 serial lines setup |
Hello,
I have some difficults for setup both serial line to the 80C320. I understand i must to set serial line 0 to timer 1 and serial line 1 to timer 0 but i do not how. I work with a cristal of 22 mhz and i want primarli set both speed to 9600 bauds (in futur I want to modify this). I must to work in interrupt mode for both chanel and both send and receive here is the code for the serial line 0 /*------------------------------------------------ Setup the serial port 0 (PC interface) for 9600 baud at 22 MHz. ------------------------------------------------*/ SCON0 = 0x50; // SCON: mode 0, 8-bit UART, enable rcvr T2CON = 0x35; // Timer 2 for send and receive, timer start TH1 = 250; // 9600 bauds Is that correct ? is that in interrupt mo and for the serial line 1 I do not how to do that (both in interrupt mode) Thank you a lot for your help Thierry |
| Topic | Author | Date |
| 80c320 serial lines setup | 01/01/70 00:00 | |
RE: 80c320 serial lines setup | 01/01/70 00:00 |



