Daniel Gliebe wrote : > Hi. I am using a PIC16F628 and PicBacic Pro compiler. I am > trying to read a 0-5V signal on an port.a pin using the built in > Analog to Digital converter to read the position on an analog > joystick.. > I am confused how to use the ADCIN command and > it's associated commands (TRISA, ADCON0 or ADCON1?) What is confusing ? > Does anybody out there have experience with this. > Some sample code would be very helpful. Thanks in advance! Now, since the 16F628 don't even *have* any ADC, you will have a hard time doing that, no matter how many code sample you will get (and I wouldn't trust those code samples anyway ;-) ). Now, I might be missing something obviuse here, tell us more about your setup. Which pins are you using ? Which data sheet have you read ? How is you overall hardware setup ? There *are* ways to read an analog joystick without an ADC, but it's not clear that that's what you are trying. Best Regards, Jan-Erik. _______________________________________________ http://www.piclist.com View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist