Serial In/Out with ISR
SailerMan
Posts: 337
What is the formula for determining the baud rate for the SX48 @ 50MHZ and an ISR of 74 Clocks. Using a baud rate of 9600 and 19200. I have a formula at home that seems to work but I get flaky results.
Regards,
Eric
·
Regards,
Eric
·
Comments
It depends on the oversampling used in the interrupt code. It seems that 3x is the mimimum. So that would be 57600 interrupts per second for 19200, and 28800 interrupt per second for 9600.
The ISR cycles wouldn't make any difference (as long as it finished before the next ISR is due).
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cheap used 4-digit LED display with driver IC·www.hc4led.com
Low power SD Data Logger www.sddatalogger.com
SX-Video Display Modules www.sxvm.com
Stuff I'm selling on ebay http://search.ebay.com/_W0QQsassZhittconsultingQQhtZ-1
"USA Today has come out with a new survey - apparently, three out of every four people make up 75% of the population." - David Letterman
The problem that I have is,·as soon as you want to change something like the freq, and the baud rate, everything goes down hill for me.
Ray
I'm not to the advanced section of my book yet so I have made a mental note for myself to make sure I have some coverage on this topic.
Post Edited (JonnyMac) : 1/22/2007 11:29:34 PM GMT