View previous topic :: View next topic |
Author |
Message |
adrianrb
Joined: 11 Jan 2007 Posts: 4
|
Software USART |
Posted: Tue Jan 30, 2007 7:18 am |
|
|
Hi all.
Could someone tell me or appoint me a code
to make software USART. I´m using a 16F819
in a project, but I need to send some data to
RS232 port.
Adrian |
|
|
jfk1965
Joined: 21 Oct 2003 Posts: 58
|
|
Posted: Tue Jan 30, 2007 7:32 am |
|
|
Check the example files EX_PBUSM and EX_PBUSR in the PICC\EXAMPLES directory this should give you a good start.
JFK |
|
|
mindstorm88
Joined: 06 Dec 2006 Posts: 102 Location: Montreal , Canada
|
|
Posted: Tue Jan 30, 2007 7:35 am |
|
|
#USE RS232 (see manual), if your PIC does not have a hardware port , the compiler will create a software one , works great with PIC16F676 !!!! |
|
|
adrianrb
Joined: 11 Jan 2007 Posts: 4
|
Software USART |
Posted: Tue Jan 30, 2007 7:38 am |
|
|
Tks for reply JFK.
But my project uses 16F819 chip.
The #use RS232... fuse will not work.
I know I will to read/write bits to pins
at hand, but I can´t figure how.
I´m a begginer in PIC programming.
Adrian |
|
|
jfk1965
Joined: 21 Oct 2003 Posts: 58
|
|
Posted: Tue Jan 30, 2007 7:52 am |
|
|
Why does USE RS232 not work on the 16f819?
I'm a newbie to RS232 myself so not best placed to advise you.
I had USE RS232 working on a 16f818 and 16f737 recently it should work ok on all pics as far as I'm aware.
It won't work on it's own you need to look in the user manual and read all related topics to the USE RS232 command.
JFK |
|
|
adrianrb
Joined: 11 Jan 2007 Posts: 4
|
OK |
Posted: Tue Jan 30, 2007 8:02 am |
|
|
Tks, JFK.
I will try again.
Adrian |
|
|
|