H HIREN DAVE New Member Apr 22, 2013 #1 HI i am using nxp's P89V51RD2 microcontroller... I want to generate 115200 baud rate.. how can i generate it???
HI i am using nxp's P89V51RD2 microcontroller... I want to generate 115200 baud rate.. how can i generate it???
Ian Rogers User Extraordinaire Forum Supporter Most Helpful Member Apr 22, 2013 #2 The best way is to use the 11.0592MHz crystal... Then you can easily get ALL the baud rates..
vasu viroja New Member Aug 9, 2013 #4 HIREN DAVE said: HI i am using nxp's P89V51RD2 microcontroller... I want to generate 115200 baud rate.. how can i generate it??? Click to expand... You have to use below settings TMOD=0x20; PCON = 0x80; TH1=0xFF; SCON=0x50; TR1=1; It will give you 57600 baud rate with 11.0592 MHz, then you have to use 22.1184 MHz crystal or you have to set clock bit in P89V51RD2 with 11.0592 MHz crystal.
HIREN DAVE said: HI i am using nxp's P89V51RD2 microcontroller... I want to generate 115200 baud rate.. how can i generate it??? Click to expand... You have to use below settings TMOD=0x20; PCON = 0x80; TH1=0xFF; SCON=0x50; TR1=1; It will give you 57600 baud rate with 11.0592 MHz, then you have to use 22.1184 MHz crystal or you have to set clock bit in P89V51RD2 with 11.0592 MHz crystal.