Hi Lester
Are there any PBP examples anywhere forusing this device to serially exchange data with a PIC?. I`m looking to send small txt based log files from a PIC to a server.
Cheers Pete
Hi Lester
Are there any PBP examples anywhere forusing this device to serially exchange data with a PIC?. I`m looking to send small txt based log files from a PIC to a server.
Cheers Pete
The simplest method uses a virtual serial port on the PC side so interfacing with it is identical to interfacing with any serial device in the same manner as with USB->serial adapters. Even if you opt for TCP/IP on the PC side, from the PIC side you still interface with it as a serial device using HSerIn/HserOut or SerIn/SerOut.
EDIT: If you use HSerIn/HSerOut, you will need to invert the signals. I use a MAX232 to invert and convert the signals to RS232 levels.
Last edited by dhouston; - 4th March 2008 at 18:04.
Hi David
Thanks for the reply, I have nil experience in this area so any advice is useful. Is there a way of setting up the Tibbo to signal the PIC that there is incoming data rather than just checking for serial as the device will be busy reading an a/d converter and storing data most of the time.
Cheers Pete
We all started with nil experience. It depends a little on the PIC you will use but you can have the incoming data trigger an interrupt. However, I would probably use the hardware UART (and MAX232) and just check it periodically - there's a UART flag that tells you if a byte has been received.. Read the manual on HSerIn/HSerOut and read the Tibbo documentation (which is a bit over whelming).
Bookmarks