| ??? 02/09/02 01:38 Read: times |
#19586 - Using Timer 2 as Serial port baud rate? |
Hi,
I need to use timer 2 to generate the baud rate for the serial port on the OKI 80C154. I need to know what to set the RCLK and TCLK values to - whether I set them both to 1, or whether I set TCLK to 1 (and RCLK to 0) before sending and RCLK to 1 (and TCLK to 0) before receiving. I think I just need set them both to 1, but i'm not 100% sure. Also, due to my assembler not recognising Timer 2, to access T2CON do I just do a: MOV 0C8h,#XXX and for independantly accessing TCLK and RCLK is it: SETB 0C8h.4 CLR 0C8h.5 I'm very new to assembly, so any help would be appreciated. George |
| Topic | Author | Date |
| Using Timer 2 as Serial port baud rate? | 01/01/70 00:00 | |
| RE: Using Timer 2 as Serial port baud rate? | 01/01/70 00:00 | |
| RE: Using Timer 2 as Serial port baud rate? | 01/01/70 00:00 | |
| RE: Using Timer 2 as Serial port baud rate? | 01/01/70 00:00 | |
| RE: Using Timer 2 as Serial port baud rate? | 01/01/70 00:00 | |
| RE: Using Timer 2 as Serial port baud rate? | 01/01/70 00:00 | |
| RE: Using Timer 2 as Serial port baud rate? | 01/01/70 00:00 | |
| RE: Using Timer 2 as Serial port baud rate? | 01/01/70 00:00 | |
| RE: Using Timer 2 as Serial port baud rate? | 01/01/70 00:00 | |
| RE: Using Timer 2 as Serial port baud rate? | 01/01/70 00:00 | |
| RE: Using Timer 2 as Serial port baud rate? | 01/01/70 00:00 | |
| RE: Using Timer 2 as Serial port baud rate? | 01/01/70 00:00 | |
| RE: Using Timer 2 as Serial port baud rate? | 01/01/70 00:00 | |
| RE: Using Timer 2 as Serial port baud rate? | 01/01/70 00:00 | |
| RE: Using Timer 2 as Serial port baud rate? | 01/01/70 00:00 | |
RE: Using Timer 2 as Serial port baud rate? | 01/01/70 00:00 |



