Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
David Prentice
01/09/12 13:55
Read: 365 times
Wormshill
England


 
#185398 - Your maths look fine
Responding to: ???'s previous message
As you have already noticed, the RCAP2 method will produce 31250 baud from 1MHz upwards for whole MHz values. It happens that 11.059 is pretty near 11 MHz.

The only reason for using 'baud-friendly' crystals is when you want all the friendly bauds: 9600, 19200, ... 230400.

You can get 9600 baud with many crystals. 230400 is less easy.

The Chinese STC12C5Axxx single-clockers can clock their UARTs at faster speeds.
They even have two UARTs. So can several other 8051 variants.

If you are only using Midi and not RS232, use whole MHz. e.g. 8, 12, 16, 20, 24MHz
Otherwise choose 11.059 or 22.118 MHz

David.

List of 6 messages in thread
TopicAuthorDate
31.25K Baud Rate w/Crystals Other Than 6, 12 or 24MHz      Jon Wilder      01/09/12 11:22      
   Use Timer2 since a S52 has a timer2      David Prentice      01/09/12 11:41      
      Timer2 Baud Rate      Jon Wilder      01/09/12 12:49      
         Your maths look fine      David Prentice      01/09/12 13:55      
            I just got the calculator out      KONSTANTINOS L. ANGELIS      01/09/12 14:27      
               It Works!!!      Jon Wilder      01/09/12 17:12      

Back to Subject List