??? 07/06/08 12:56 Read: times |
#156425 - Atmel AT89C52 serial port problems |
Hello,
I'm trying to send some data through Atmel's AT89C52 serial port but I'm getting some problems. my settings: SCON = 0x40; // mode 1, no parity TMOD = 0x20; // timer 1 mode 2 (auto reload) TH1 = -26; TR1 = 1; When I send something out (sbuf = ..) and measure the signal's frequency through an osciloscope I get something like.. 7Hz when in reality it should be around 2400Hz (2400 baud rate) Anyone knows what am I doing wrong? |