From: Jim P. <jim...@mi...> - 2005-05-14 16:53:11
|
Hi Ori I'm using a 20mhz crystal Thanks Jim > [Original Message] > From: Ori Idan <or...@he...> > To: <sdc...@li...> > Date: 5/14/2005 6:15:27 PM > Subject: Re: [Sdcc-user] initialization of uart > > Jim Peterson wrote: > > > Hi > > > > I finally got my 87C52 mpu up and working and I appreciate all that > > made comments relative to my previous posts regarding > > " Problems getting started" My problem was hardware not software. > > > > Now I'm attempting to communicate with the board via the serial port > > and I would appreciate suggestions regarding the setting of the > > baudrate. Since I'm terrible at assembly language but pretty good at > > C++ I'm looking for help with this. I have a 20mhz crystal and am > > looking for a 9600 baud rate. > > > > Can anyone direct me to where I can find a routine to do this? > > > > Thanks > > Jim > > Setting baud rate is only setting few registers and bits so there is no > need for assembly language. > > Baud rate is usually generated by timer 1 which is set to 8 bit auto reload. > > I can look for this routine in my sources, what is the exact frequency > of your crystal? so I can give you the right numbers. > > -- > > Ori Idan > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click > _______________________________________________ > Sdcc-user mailing list > Sdc...@li... > https://lists.sourceforge.net/lists/listinfo/sdcc-user |