Also add this line at the top of the main function: ADCON1 =3D 0x0F; This will disable the analog inputs. The data sheet says analog won't=20 override a pin set as output, but I'd add that line to make sure. David... On 23/10/2015 6:48 PM, Richard R. Pope wrote: > Alan, > I probably have but I can't find it. This PIC is a lot more > complicated than a 16f84a. So I have turned to you folks for help and > guidance. I have poured through the datasheets and the code over and > over. I suspect that when we find it it will be one of those ah, how did > I ever miss that? > Thanks, > rich! > > On 10/23/2015 3:38 AM, alan.b.pearce@stfc.ac.uk wrote: >> I haven't the time to look through your code, but I am wondering if you = have messed up the RA port initialisation so that the rs pin is open collec= tor without a pullup. >> >> >>> James and et al, >>> The code is posted on pastebin.com. Here is the link to it: >>> http://pastebin.com/VhpXvqaQ. >>> Thanks, >>> rich! >>> >>> On 10/23/2015 2:38 AM, Richard R. Pope wrote: >>>> James, >>>> I understand. I'm going to post the code in a couple of minute= s. >>>> Thanks, >>>> rich! >>>> >>>> --=20 ___________________________________________ David Duffy Audio Visual Devices P/L Unit 8, 10 Hook St, Capalaba 4157 Australia Ph: +61 7 38235717 Fax: +61 7 38234717 Our Web Site: www.audiovisualdevices.com.au ___________________________________________ --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .