IPB


Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
software UART on mega16/32
Digg this topic · Save to del.icio.us · Slashdot It · Post to Technorati · Post to Furl · Submit to Reddit · Share on Facebook · Fark It · Googlize This Post · Add to ma.gnolia · Tag to Wink · Add to MyWeb · Add to Netscape
xolang1
post 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=-
Go to the top of the page
 
+Quote Post
marke
post 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,


--------------------
Go to the top of the page
 
+Quote Post
xolang1
post 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
Go to the top of the page
 
+Quote Post
marke
post 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)
Attached File  suartex.c ( 7.95K ) Number of downloads: 150
 


--------------------
Go to the top of the page
 
+Quote Post
xolang1
post 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
Go to the top of the page
 
+Quote Post
Micha
post Jan 23 2004, 09:46 AM
Post #6



*

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
Go to the top of the page
 
+Quote Post
greatdoom
post Aug 13 2006, 12:53 PM
Post #7



*

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
Go to the top of the page
 
+Quote Post
myvarmamail
post Jul 11 2007, 08:35 AM
Post #8



*

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
Go to the top of the page
 
+Quote Post
itxaso
post Aug 9 2007, 09:12 AM
Post #9



*

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
Go to the top of the page
 
+Quote Post
zlchen
post Jun 16 2008, 12:23 AM
Post #10



*

Group: Members
Posts: 1
Joined: 15-June 08
Member No.: 4,630



QUOTE (marke @ Oct 1 2003, 10:48 AM) *
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




Ths a lot! i need it now!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   5 GGOSS 3,256 7th August 2007 - 11:18 AM
Last post by: AB2005
No New Posts   1 sethar 1,014 21st September 2003 - 11:01 PM
Last post by: electricpete
No New Posts   1 -Anonymous- 849 26th November 2005 - 09:18 PM
Last post by: speed
No New Posts   0 -Anonymous- 1,140 24th January 2005 - 07:17 PM
Last post by: -Anonymous-
No New Posts   0 CoE 2,490 31st March 2006 - 04:39 PM
Last post by: CoE



RSS Lo-Fi Version Time is now: 2nd December 2008 - 11:28 PM
hosted by : L M Photonics Ltd