Jump to content

software UART on mega16/32


xolang1

Recommended Posts

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

Link to comment
Share on other sites

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,

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

suartex.c

Link to comment
Share on other sites

  • 3 months later...
  • 2 years later...
  • 10 months later...
  • 5 weeks later...
  • 10 months later...
  • 1 year later...
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...