
software UART on mega16/32
#1
Posted 25 September 2003 - 02:27 AM
Atmel's website offers application note AVR304 (interrupt driven software UART) and it has an included C code implementing the appnote. However, the example code does not use codevision, i've been trying to "convert" it to codevision syntax but i found i could not continue because the header files used are not for codevision. Does anyone have a software UART code written for codevison?
Im a begginer so i need to a code to start from.
Any help will do. Thanks in advance.
-=xolang1=-
#2
Posted 26 September 2003 - 09:45 AM
Do you actually need a software UART? there is already an on board UART and you can drive this under interrupt. It is much easier to use the onboard peripheral than to use a software UART.
Best regards,
Mark Empson | administrator
Skype Contact = markempson | phone +64 274 363 067
LMPForum | Power Factor | L M Photonics Ltd | Empson family | Advanced Motor Control Ltd | Pressure Transducers | Smart Relay | GSM Control | Mark Empson Website | Soft Starters
#3
Posted 29 September 2003 - 07:22 AM
Yes i do need a second UART. My design is currently connected to a PC via the on board UART. It requires another communications port to connect to another device. The appnote from atmel is really great but i haven't yet "converted" it for codevision. Maybe some one out there can help.
Thanks again.
xolang1
#4
Posted 01 October 2003 - 09:48 AM
Attached is the software UART ported to Codevision.
This is not fully debugged and tested, but is almost fully there and is something to work on.
Best regards
Attached Files
Mark Empson | administrator
Skype Contact = markempson | phone +64 274 363 067
LMPForum | Power Factor | L M Photonics Ltd | Empson family | Advanced Motor Control Ltd | Pressure Transducers | Smart Relay | GSM Control | Mark Empson Website | Soft Starters
#5
Posted 01 October 2003 - 10:09 AM
WOW! i didnt know u really would provide the full code! I love this site!
Thanks for this code. I will work on it in the coming days.
again THANKS,
xolang1
#6
Posted 23 January 2004 - 09:46 AM
Is someone modifyed that suartex.c code to work whit 2313 or 2323? I try to do that but can't get it work

Micha
p.s. sory my bad english
#7
Posted 13 August 2006 - 12:53 PM
it seems that the atached code is not available anymore.
Could someone please atach this code once again?
Thanks in advance,
Doom
#9
Posted 09 August 2007 - 09:12 AM
Somebody could orient me to be able to find code c to implement a UART by software. The file suartec.c is missing...Thanks
#10
Posted 16 June 2008 - 12:23 AM
Attached is the software UART ported to Codevision.
This is not fully debugged and tested, but is almost fully there and is something to work on.
Best regards
Ths a lot! i need it now!
#11
Posted 04 March 2010 - 06:16 PM
Best regards
#12
Posted 23 March 2011 - 08:32 PM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users