Jump to content


Photo

software UART on mega16/32


  • Please log in to reply
11 replies to this topic

#1 xolang1

xolang1

    Junior Member

  • Members
  • PipPip
  • 9 posts
  • Location:Baguio City

Posted 25 September 2003 - 02:27 AM

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=-

#2 marke

marke

    Posting Freak

  • Moderator
  • PipPipPipPipPipPip
  • 2,617 posts
  • Gender:Male
  • Location:Christchurch, New Zealand

Posted 26 September 2003 - 09:45 AM

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,

#3 xolang1

xolang1

    Junior Member

  • Members
  • PipPip
  • 9 posts
  • Location:Baguio City

Posted 29 September 2003 - 07:22 AM

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

#4 marke

marke

    Posting Freak

  • Moderator
  • PipPipPipPipPipPip
  • 2,617 posts
  • Gender:Male
  • Location:Christchurch, New Zealand

Posted 01 October 2003 - 09: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

Attached Files



#5 xolang1

xolang1

    Junior Member

  • Members
  • PipPip
  • 9 posts
  • Location:Baguio City

Posted 01 October 2003 - 10:09 AM

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

#6 Micha

Micha

  • Members
  • Pip
  • 1 posts

Posted 23 January 2004 - 09:46 AM

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

#7 greatdoom

greatdoom

  • Members
  • Pip
  • 1 posts

Posted 13 August 2006 - 12:53 PM

Hi all,

it seems that the atached code is not available anymore.
Could someone please atach this code once again?
Thanks in advance,

Doom

#8 myvarmamail

myvarmamail

  • Members
  • Pip
  • 1 posts

Posted 11 July 2007 - 08:35 AM

QUOTE(greatdoom @ Aug 13 2006, 12:53 PM) View Post

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

#9 itxaso

itxaso

  • Members
  • Pip
  • 1 posts

Posted 09 August 2007 - 09:12 AM

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


#10 zlchen

zlchen

  • Members
  • Pip
  • 1 posts

Posted 16 June 2008 - 12:23 AM

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

#11 oswaldus

oswaldus

  • Members
  • Pip
  • 1 posts

Posted 04 March 2010 - 06:16 PM

Please, Can any one re attach the file?
Best regards

#12 cni

cni

  • Members
  • Pip
  • 1 posts

Posted 23 March 2011 - 08:32 PM

I need it, too!




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users