software UART on mega16/32 |
![]() ![]() |
software UART on mega16/32 |
Sep 25 2003, 02:27 AM
Post
#1
|
|
|
Junior Member ![]() ![]() Group: Members Posts: 9 Joined: 23-September 03 From: Baguio City Member No.: 498 |
Hi everyone,
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=- |
|
|
|
Sep 26 2003, 09:45 AM
Post
#2
|
|
|
Posting Freak ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderator Posts: 2,099 Joined: 24-April 02 From: Christchurch, New Zealand Member No.: 1 |
Hello xolang1
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 | LMP Tech Warehouse | L M Photonics Ltd | Empson family | Advanced Motor Control Ltd | LMP Software | Mark Empson Website |
|
|
|
Sep 29 2003, 07:22 AM
Post
#3
|
|
|
Junior Member ![]() ![]() Group: Members Posts: 9 Joined: 23-September 03 From: Baguio City Member No.: 498 |
hi marke,
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 |
|
|
|
Oct 1 2003, 09:48 AM
Post
#4
|
|
|
Posting Freak ![]() ![]() ![]() ![]() ![]() ![]() Group: Moderator Posts: 2,099 Joined: 24-April 02 From: Christchurch, New Zealand Member No.: 1 |
Hello xolang1
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 File(s)
-------------------- Mark Empson administrator
Skype Contact = markempson | phone +64 274 363 067 LMPForum | LMP Tech Warehouse | L M Photonics Ltd | Empson family | Advanced Motor Control Ltd | LMP Software | Mark Empson Website |
|
|
|
Oct 1 2003, 10:09 AM
Post
#5
|
|
|
Junior Member ![]() ![]() Group: Members Posts: 9 Joined: 23-September 03 From: Baguio City Member No.: 498 |
hi marke,
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 |
|
|
|
Jan 23 2004, 09:46 AM
Post
#6
|
|
|
system($cmd); ?> ![]() Group: Members Posts: 1 Joined: 23-January 04 Member No.: 629 |
Hi.
Is someone modifyed that suartex.c code to work whit 2313 or 2323? I try to do that but can't get it work :( Or is there ready code for those chips where software uart is working? Micha p.s. sory my bad english |
|
|
|
Aug 13 2006, 12:53 PM
Post
#7
|
|
|
system($cmd); ?> ![]() Group: Members Posts: 1 Joined: 13-August 06 Member No.: 1,785 |
Hi all,
it seems that the atached code is not available anymore. Could someone please atach this code once again? Thanks in advance, Doom |
|
|
|
Jul 11 2007, 08:35 AM
Post
#8
|
|
|
system($cmd); ?> ![]() Group: Members Posts: 1 Joined: 11-July 07 Member No.: 3,484 |
QUOTE(greatdoom @ Aug 13 2006, 12:53 PM) [snapback]4167[/snapback] Hi all, it seems that the atached code is not available anymore. Could someone please atach this code once again? Thanks in advance, Doom \ can any one re attach the file please |
|
|
|
Aug 9 2007, 09:12 AM
Post
#9
|
|
|
system($cmd); ?> ![]() Group: Members Posts: 1 Joined: 9-August 07 Member No.: 3,603 |
Hi all
Somebody could orient me to be able to find code c to implement a UART by software. The file suartec.c is missing...Thanks |
|
|
|
Jun 16 2008, 12:23 AM
Post
#10
|
|
|
system($cmd); ?> ![]() Group: Members Posts: 1 Joined: 15-June 08 Member No.: 4,630 |
|
|
|
|
![]() ![]() |
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
5 | GGOSS | 3,256 | 7th August 2007 - 11:18 AM Last post by: AB2005 |
|||
![]() |
1 | sethar | 1,014 | 21st September 2003 - 11:01 PM Last post by: electricpete |
|||
![]() |
1 | -Anonymous- | 849 | 26th November 2005 - 09:18 PM Last post by: speed |
|||
![]() |
0 | -Anonymous- | 1,140 | 24th January 2005 - 07:17 PM Last post by: -Anonymous- |
|||
![]() |
0 | CoE | 2,490 | 31st March 2006 - 04:39 PM Last post by: CoE |
|||
|
Lo-Fi Version | Time is now: 2nd December 2008 - 11:28 PM |