| ??? 10/23/02 14:06 Read: times |
#31305 - UART in C for the AT89S8252 please help |
what is wrong on the following source code. the compiler don´t say an error.
#include <at89S8252.h> void main() { //Baudrate 9600, f=12MHZ 8 //Bit Datenübertragung; SCON = 0x50; //Modus 1, 8 Bit RCAP2L = 0xD9; //Reload-Wert RCAP2H = 0xFF; //9600 Baud T2CON = 0x34; //Reloadmodus 0 ES=1; EA=1; while(1) { ACC = 0x0F; SBUF = ACC; do { } while(TI==0); TI = 0; } } The controller doesn't send datas. What else could the mistake be? |
| Topic | Author | Date |
| UART in C for the AT89S8252 please help | 01/01/70 00:00 | |
RE: UART in C for the AT89S8252 please help | 01/01/70 00:00 |



