Need help porting/debugging Software UART code.

17 Mar 2012

i am in desperate need of more serial ports for my project. i decided on implementing a software UART due to several reasons, foremost because i think it would be most beneficial to the community.

so far i have Frankenstein'd the following and have receive working, but not transmitting for some reason. i could really use assistance from someone with a logic analyzer to see why. so far i have tested 300 and 9600 baud.

IAR System Generic Software UART Application Note
the venerable Andy Kirkham's MAX3100 Library
MBED's Serial.h

the code is messy. i know. i'll work on that.

http://mbed.org/users/chag/programs/SoftwareUART/

thanks!

17 Mar 2012

I have written a soft UART to communicate at 9600 Bauds, 9bits (+ parity + stops) because this is how a JETI communicates (radio control transmitter module).
This is NOT a generalized implementation, it is a component for my RC transmitter with mbed, touchscreen ....
My source of information was the note AVR 274 ,see http://www.atmel.com/dyn/resources/prod_documents/AVR274.pdf
I found this text very useful.
and I ordered a little logic analyzer from http://www.saleae.com/logic
If you do not need 9 bits ...I think the MAX3100 way is shorter.

Robert

19 Mar 2012

<<quote robertspil>><</quote>>

hmm, for some reason, i dont get notified of forum replies.

having an external UART would probably be less work, but i couldnt find anything smaller than a 16 pin DIP per UART in DIP form. it just seems absurd to even consider when the MBED is more than capable.

19 Mar 2012

chag wrote:

hmm, for some reason, i dont get notified of forum replies.

Yeah, I have noticed that too. http://mbed.org/forum/bugs-suggestions/topic/3260/

19 Mar 2012

Adam Green wrote:

chag wrote:

hmm, for some reason, i dont get notified of forum replies.

Yeah, I have noticed that too. http://mbed.org/forum/bugs-suggestions/topic/3260/

...but I was notified about the updates to Adam's debugging page...

So is it particular users who aren't being notified for any pages or certain pages/topics for all users or what...?

Anyone...?

Cheers, Jez