Hi,
I would like to use GPIO.3 as an input on the 12F629.
But how do I do that in the right way?
Is this the right way?
I have to use NO_MCLR right?Code:@ DEVICE pic16F628, INTRC_OSC_NOCLKOUT, NO_MCLR DEFINE OSCCAL_1K 1 ' Load factory value into OSCCAL CMCON=7 ' Turn analog comparators off TRISIO = %11001111 ' Set GPIO 0-3 as inputs 5-6 as outputs
If I look on page 54 in the datasheet, the CONFIG word bit 5 sould be set to 0, does NO_MCLR do that?
There is a note (note 5) that says: When MCLR is asserted in INTOSC or RC mode , the internal clock oscillator is disabled.
What dose that mean?
Kind regards
Sharky


But anyway, open the m12F629 .INC file in your PBP\INC folder, there you'll se your config fuses.


Bookmarks