hello everyone....my program transmits 'SAMPLE CODE' continuously on the uart...chip 'm using is p89v51rd2..the problem is nothing is being displayed on the hyperterminal...i checked the TXD pin on the scope,i can c pulses there...i've checked the serial cable,shorted pins 2 n 3,even that works fine....watelse could be the problem..??help me out...
The reload values for RCAP2H:RCAP2L as 0xFFB2 match 9600 baudrate speed for uart with T2 as baudrate generator in two cases:
a. If Xtal= 12MHz and microcontroller in X2mode (6 cycles per 1machine cycle) or b. If Xtal= 24MHz and microcontroller in X1mode (12 cycles per 1machine cycle)
a sample calculattion for T2 baudrate can be found at www.mcu4u.eu/.../
Also, Hyperterminal at PC side must be configured with the same setting as the microcontroller uart. example: Speed 9600, Data bits 8, Stop bits 1, Parity None, Handshake None.
If other handshake protocol is used like DTR/DSR or XON/XOFF must both devices have the same configuration.
Wiring is important. For DCE to DTE needs a straight cable (DB9: 2 to 2, 3 to 3, 5 to 5) No hardware handshake. For DTE to DTE needs a crossover cable (DB9: 2 to 3, 3 to 2, 5 to 5) No hardware handshake.
Other "terminal" software as putty and teraterm may be more convenient www.chiark.greenend.org.uk/.../download.html http://www.ayera.com/teraterm/