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 support@ccsinfo.com

PIC24EP512 - Read on D0 w/5.1K pull-up reads low
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
temtronic



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

View user's profile Send private message

PostPosted: Wed Jun 22, 2022 6:01 am     Reply with quote

yeesh Ben, this is frustrating for me...have you ANY hair left ??
Maybe toss the boards outside at noon today, supposed to be 40*C !!!
Wish I could offer a 'rabbit out of my hat' but can't think of anything as to WHY the 'odd' behaviour....
Ttelmah



Joined: 11 Mar 2010
Posts: 19195

View user's profile Send private message

PostPosted: Wed Jun 22, 2022 9:13 am     Reply with quote

So, add BROWNOUT, and see if it makes any difference.

The point is that the erratum says the chip must have BROWNOUT enabled,
but doesn't say what happens if it isn't....
benoitstjean



Joined: 30 Oct 2007
Posts: 542
Location: Ottawa, Ontario, Canada

View user's profile Send private message

PostPosted: Wed Jun 22, 2022 9:28 am     Reply with quote

Ok, that would be very strange but I will add it. I know at the moment that if a brownout occurs, when the PIC boots, it checks the restart code and pops me a message on a console so when a brownout does occur, then it will indicate that the reboot was due to a brownout.

So now the question is BROWNOUT part of the problem even though I do get the "brownout" CPU restart code?
temtronic



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

View user's profile Send private message

PostPosted: Wed Jun 22, 2022 2:39 pm     Reply with quote

OK, dumb questions, looking for a rabbit for you...

Are all the PCBs from the same batch ? IE NO revisions, NO new traces, bad etches.

Does the pin actually work as an output normally ? correct voltages ?

Any other 'peripheral' magically attached to it by 'default' ?
benoitstjean



Joined: 30 Oct 2007
Posts: 542
Location: Ottawa, Ontario, Canada

View user's profile Send private message

PostPosted: Thu Jun 23, 2022 5:50 am     Reply with quote

Yep, same PCB batch, I haven't tested the pin as an output yet but given it doesn't cause me too much grief other than the fact I don't understand what is going-on, I found a way through the code to bypass this problem.

Thanks.

Ben
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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