When connecting a Nano SocketLAN module to a PIC, should I use the hardware UART on the PIC itself, or use other I/O pins so I can use SERIN2/SEROUT2 and invert the signal?
Thanks
When connecting a Nano SocketLAN module to a PIC, should I use the hardware UART on the PIC itself, or use other I/O pins so I can use SERIN2/SEROUT2 and invert the signal?
Thanks
Depends if you want to use interrupts easily or not.
Dave
Always wear safety glasses while programming.
What does that mean? Interrupts on a serial connection to a PC via the RS232 port, or interrupts via a serial connection to the SocketLAN? Just say what you mean. The point of my question was the polarity of the serial connection to the SocketLAN, but what are the interrupt considerations?
If you use SERIN, frequent interrupt may cause problem while receiving data. If you use HSERIN you can use interrupt to receive, or interrupt can occur while receiving data, without any problem.
And when using SERIN if Rx pin is pulled low(eg when module is turned off), timeout will newer expire...
My immediate inclination was to try to use the hardware serial port, and use DT_INT RX_INT for the hardware interrupt, but because I don't have the flexibility of inverting the polarity of the in/out with the hardware uart, I was just looking for confirmation that, Yes, I do need inverters on the in and out before feeding the SocketLAN. My brain hadn't gotten around to interrupts yet, but know enough now to think about them right away. Thanks for your reply!
Are you sure that you need inverter?
Hava look http://www.connectone.com/media/uplo...N_overview.jpg
It is TTL uart on both sides.
You need inverter or level converter if you trying to connect TLL and RS232.
By the way, some pic can invert hardware uart levels.
Bookmarks