Is this the same kind of process that might be used to get the TOCKI on Portc.5 to be used as a gpio? Any ideas?
The datasheet says:
On power-up, TOCKI functionality is enabled in the OPTION register and must be disabled to allow RC5 to be used as general purpose I/O.
However, noplace does it state how to do that.
p.s.
That's on the 16f505 chip, not the 508
The OPTION register is accessed the same as any other 16F. PBP translates it to an assembly OPTION command on 12-bit cores.
To use RC5 as an output pin, use ...
Code:OPTION_REG.5 = 0
DT
Thanks Darrell, worked like a charm. Options are not so clear in the documentation.
Bookmarks