CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

PIC16F15324 and PIC16F15344 PIN_A2 NOT RESPOND

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
MKY



Joined: 17 Feb 2007
Posts: 3

View user's profile Send private message MSN Messenger

PIC16F15324 and PIC16F15344 PIN_A2 NOT RESPOND
PostPosted: Mon Jan 22, 2024 10:29 am     Reply with quote

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 Smile
temtronic



Joined: 01 Jul 2010
Posts: 9245
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Jan 22, 2024 10:41 am     Reply with quote

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: 19546

View user's profile Send private message

PostPosted: Tue Jan 23, 2024 2:28 am     Reply with quote

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. Sad Or possibly this is with a very old
compiler.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group