View previous topic :: View next topic |
Author |
Message |
MKY
Joined: 17 Feb 2007 Posts: 3
|
PIC16F15324 and PIC16F15344 PIN_A2 NOT RESPOND |
Posted: Mon Jan 22, 2024 10:29 am |
|
|
In PIC16F15324 and PIC16F15344 processors, PIN_A2 does not work as input when defined as input output. To fix it, the Zero cross feature of PIN_A2 must be set to ZCDDIS (Zero Cross Detect Disable) from Config FUSE. (Long Live DeepL |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9221 Location: Greensville,Ontario
|
|
Posted: Mon Jan 22, 2024 10:41 am |
|
|
That would be 'normal'.
You usually must disable internal peripherals when using pins for alternate uses.
some peripherals have 'disable' options in their configuration ( comparator comes to mind as one example )
analogs need to be disabled as most are defaulted to 'enabled'. |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19496
|
|
Posted: Tue Jan 23, 2024 2:28 am |
|
|
Actually, though you should turn this off to be sure, the compiler should
be turning this off 'by default'. The bit is set to '1' on an erased chip, and
the compiler normally defaults to setting fuses to their erased values. A
quick check with the current compiler shows that ZCDDIS is set if you
don't explicitly set it.
I'd suspect the poster was setting some fuses himself, and this was what
resulted in this being turned off. Or possibly this is with a very old
compiler. |
|
|
|