--_002_pdkmr9xvb2ln2skaterswarbrick_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Byron Jeff writes: > On Sat, Jan 05, 2013 at 03:54:34PM +0000, Rupert Swarbrick wrote: >> Hi, >>=20 >> Can anyone point out what I'm doing wrong with the following (minimal) >> code? I can't seem to convince my 16F1824 to output anything on RA5 (pin >> 2 in the DIP package). >>=20 >> I presume that I've configured the pin to be doing something else, but >> I've pored over the datasheet for ages and can't work out what I've >> missed. Changing the BSF line to "bsf LATA, 4" switches on pin 3 as >> expected. Does anyone have any ideas? > > Nothing sticks out. Have you tried a chip swap yet? I hadn't, but it doesn't seem to help. Also, I vaguely remember having weird behaviour with pin two a few months back (with a different physical chip, of course), so I assumed it must be something with a config option or the like. > I agree with Jan-Eric that using the codes for the Configs is a good idea= .. Shall do. > Also I would suggest changing the gotos to branches, so that PCLATH can b= e > removed from the equation. With the enhanced parts, I very rarely use got= o > anymore. Ooh! I hadn't noticed the BRA instruction. > Finally is anything connected to RA5? There may be a load dragging the > output buffer. Just the multimeter :-) Rupert --_002_pdkmr9xvb2ln2skaterswarbrick_ Content-Type: text/plain; name="ATT00001.txt" Content-Description: ATT00001.txt Content-Disposition: attachment; filename="ATT00001.txt"; size=208; creation-date="Sat, 05 Jan 2013 22:18:07 GMT"; modification-date="Sat, 05 Jan 2013 22:18:07 GMT" Content-Transfer-Encoding: base64 LS0gDQpodHRwOi8vd3d3LnBpY2xpc3QuY29tIFBJQy9TWCBGQVEgJiBsaXN0IGFyY2hpdmUNClZp ZXcvY2hhbmdlIHlvdXIgbWVtYmVyc2hpcCBvcHRpb25zIGF0DQpodHRwOi8vbWFpbG1hbi5taXQu ZWR1L21haWxtYW4vbGlzdGluZm8vcGljbGlzdA0K --_002_pdkmr9xvb2ln2skaterswarbrick_-- .