PICcoder.co.uk Forum  


::post new topic::
rs232
Date: 2006/03/19 21:59 By: xx Status: Visitor  
 
Hi all,
I have been wondering what about rs232 support for Ian's
ethernet article. I have looked at the source code, and it
looks there are some referenced to functions which uses
the usart, and there is even an assignment of 19200 baud
rate. The stack in picdem.net does have rs232 support, so
has it been removed in the enc28j60 version or not?
Any ideas?
reply | quote

Re:rs232
Date: 2006/03/19 22:06 By: Mat Status: Admin  
Karma: 7  
Posts: 211
graph
Hey, the Rs232 has not been removed from the software, all you need to do is add a max232 or equilevent onto the appropiate pins and it should work. It was just removed from the circuit diagram for simplicaity and not to confuse people who didnt need it.
Mat
reply | quote

Re:rs232
Date: 2006/03/20 00:24 By: xx Status: Visitor  
 
I have an rs232 max board, but it didn't display the options
as explained in picdem.net manual. I looked a little in the
code, and although I find many references to usart, I cannot
find anywhere where the usart is actually setup for 19200,
which is why I started thinking that either it was removed,
or the references to usart are not related to rs232 (could it
be related to ppp/slip?)
reply | quote

Re:rs232
Date: 2006/03/20 11:23 By: Ian Status: User  
Karma: 5  
Posts: 85
graphgraph
In a number of the modules there are sections of code to output debug information for that module, the DHCP module has this funcitonality avaliable.

I think it is setup in the InitializeBoard() function.

And to get to the options screen I remember having to hold one of the pin on the pic low during the startup sequence.

Ian
reply | quote

Re:rs232
Date: 2006/03/20 16:36 By: xx Status: Visitor  
 
Hi Ian, it's working, the pin which has to be held
low is rb0. I received the menu hence it appears
the max chip works well with 3.3v as well (on the
datasheet it is rated 5v with 0.5v tolerance, but
if worked just now with 3.3v)
reply | quote

Re:rs232
Date: 2006/03/26 14:49 By: xx Status: Visitor  
 
Couldn't make it work for 115200
reply | quote

::post new topic::