Which version of C are you using? I have some CCS C examples that let you use built-in CCS routines to talk to an LCD (or PC). You will have to invert your data to talk directly to the PC. You can use a MAX232 or similar, or simply run it through an inverter if your cable is short (I use a 74HCT04 on an 8 foot cable all the time). Be sure you buffer the output of the PC back to the inverter with an appropriate resistor (the possibility of exceeding the voltage limits of the PIC/inverter exists). 22K is a popular choice, although just about anything in that region will do fine. Dan ----- Original Message ----- From: Wittinger, Eric R To: Sent: Tuesday, October 19, 1999 3:52 PM Subject: UART Question > HI, I am new to this list and to PIC's. My question is about using the UART. > What I need to do it talk from a computer to a PIC, and give this PIC commands. > Then have the PIC respond to these commands back to the computer after the PIC > has preformed some simple tasks based on what info the computer sent to the PIC. > > > An example is A user wished to open a valve. So user clicks a button in the > computer interface to open valve #1. The actions that follow : The PIC opens > the valve #1 and responds to the computer letting the user know that valve #1 is > open, it was unable to open valve #1 for some unknown reason. > > Okay, now the question, can I do this? I have a book I am reading, and learning > about PIC's with. I have made a test board up (my own design). The problem is I > have never done this before and am not quite grasping what has to happen in the > PIC for this to work. > > Next is there a simple bit of code that will interface the PIC to a PC. > I can get this kind of thing to work with if pin 1 goes hi open valve #1, > > I am doing my testing on a PIC16F84 > I also have a C compiler for the PIC, I am trying to use, it seems simpler then > Assembly and a little quicker for a newbie. > > Thanks for any suggestions or help. > > Eric Wittinger