1

Topic: UART Ride Simulation

Je débute avec les 8051 et je travaille sur un projet avec un AT89C51RC2 
J'ai récupéré plusieurs fichiers sources pour le 8051 sur l'utilisation de l'UART.
Quand je fais les réglages pour 1200 ou 2400bds, cela fonctionne sans problème en simulation.
Par contre, pour 9600bds et plus, plus rien ne fonctionne!
Est-ce que quelqu'un peut m'aider?
------------------------------------
I begin with the 8051 and I work on a project with a AT89C51RC2.
I recovered several source files for the 8051 on the use of the UART.
When I make the adjustments for 1200 or 2400bds, that functions without problem in simulation.
On the other hand, for 9600bds and more, nothing any more functions! Can somebody help me?
-----------------------------------
Sources:
http://8052.com/codelib/efdUartDriver.zip

[%sig%]

2

Re: UART Ride Simulation

It depends on the Xtal frequency. At 12MHz, you must use the TIMER2 instead of the TIMER1 if you wish to configure your UART at higher baud rates.
The rule is to configure the baudrate within a 5% precision. That's not possible when using the timer1 as baud rate generator by 4800 bps. TIMER2 alloews much faster baudrates.
Another solution is to use another xtal (for example 11.059 or 18.432).

Francis