Society of Robots - Robot Forum

Software => Software => Topic started by: yyy on September 17, 2009, 01:38:06 PM

Title: LPT & COM
Post by: yyy on September 17, 2009, 01:38:06 PM
How I can send or receive information through the LPT and COM
I search after electrical circuit sketch
and useful commands in C that can help me to program this
also I will glad to receive sites that talk about this problem
Title: Re: LPT & COM
Post by: Half Shell on September 17, 2009, 07:39:55 PM
What operating system?

What MCU?
Title: Re: LPT & COM
Post by: yyy on September 18, 2009, 03:01:41 AM
Windows XP & PIC 18F
Title: Re: LPT & COM
Post by: Half Shell on September 18, 2009, 07:56:31 AM
There is a C library called Zephyr that I hear (I've never used it, as I am a Linux user) is pretty good. I've had some school mates build robots controlled by it.

Check the USART pages in the PIC18F data sheet for that part.

Now, make sure you use convert it from serial to TTL levels. If you need to do this manually, look up a MAX232 IC.
Title: Re: LPT & COM
Post by: Admin on September 20, 2009, 08:31:02 AM
Why not USB? There are many USB to serial adapters for $10-$30 out there.

Just print out data through UART (tons of code online for this), and connect with HyperTerminal to view it.