atmel 8051 baud rate calculator
hi
Ff Baud rates for SMOD=1, then 1/12 of XTAL is divided by 16 and that is frequency used by timer 1 to set baud rate.In case of XTAL=11.0592Mhz, we have
Machine cycle frequency=11.0592Mhz/12=921.6kHz
and
921.6kHz /16=57,600 Hz,since SMOD=1
this is the frequency used by timer 1 to set baud rate.
for example,with XTAL=11.0592,SMOD=1,we have timer 1 frequency=57,600Hz
so 57,600/9600=6
hence,TH1=-6 or TH1=FAH
hope this will help you clear your doubt in writing the pseudo code