From: Larry Rubanka <lrubanka@ex...> - 2000-07-08 03:31:48
I'm new to SDCC. I've got things running well. I use an 8075 with
PAULMON2. The monitor is working well. I can download programs into the
chip just fine.
I'm writing simple programs to blink the LEDs and alter ports on my
development board. So far so good!
I'm having trouble using the serial I/O routines. I've looked through the
code on serial.c and ser_ir.c, and I think I get the gist of how they are
I've also read the Intel MCS51 books on controlling the serial port(s) using
SCON, T2CON, and calculating the baud rate values for RCAP2H & RCAP2L.
I've put my values finto serial_init(). [SCON=0x50, T2CON=0x34,
RCAP2H=0xff, RCAP2L=0xEE] That sets me up for 19200 on my 11.0592Mhz system
When I run serial_putc('X'), my term emulator goes whacky.
Am I doing something obviously wrong?
Any help, referrals to documentation, or SDCC code examples would be GREATLY
Thanks in advance,
Get latest updates about Open Source Projects, Conferences and News.