C code to read TTL levels
Posted on 2004-04-06
Without going into too much unnecessary information here is my problem. I have a circuit on a helicopter that i am trying hack into for an electronics project. Specifically one PIC that i am interested in deals with the command signals to the motors, and i need to read this data to evaluate and decode. A good way of doing this, or so i'm told, is to simply connect the PIC to a serial input and read the TTL levels, (which are 0V - 5V). I need a program that will read these levels and convert them to a useable format (1's and 0's) and have been trying to find something on the web, can anyone help?