I used one recently and only set the ANSEL and TRIS registers to get it=20 working as output on RA2. David... On 8/01/2014 9:25 AM, Paul Owen wrote: > Have ported previously working software from a 12F629 to a 12F1822. Using= RA2 as an output port. Writing and reading back from LATA,2 but no connect= ion to pin. Pin output is driven low. (pin5) > ANSELA =3D 0 > SRCON0 =3D 0 > CM1CON1 =3D 0 > CCP1CON =3D 0 > MDCON =3D 0 > APFCON =3D 0 > WPUA =3D 0 > TRISA =3D 0x19 > > Something else is controlling the pin, but I am unable to determine what.= Does anyone have any ideas? > --=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 .