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

24HJ256GP210 and progammable port pull-ups

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



Joined: 22 Apr 2005
Posts: 15

View user's profile Send private message

24HJ256GP210 and progammable port pull-ups
PostPosted: Mon Mar 24, 2008 7:03 am     Reply with quote

Hey all,

I have yet another problem with either the PIC24 uP or CCS. I don't know which. I am trying to pull-up the port D pins with software but it's not happening. I get .2v max on the port pins when I insert this line of code.

port_d_pullups(TRUE);

or

port_d_pullups(1);

anyone else having issues with this?

Thanks,
Mike
Ttelmah
Guest







PostPosted: Mon Mar 24, 2008 7:26 am     Reply with quote

If it a device supporting 'per pin' pull-ups, then the syntax is:

port_d_pullups(0xFF);

To turn them all on. 'True', or '1' will only turn on the one on the lowest pin.

However it is most likely, that CCS haven't got this working yet...

Best Wishes
mharris27



Joined: 22 Apr 2005
Posts: 15

View user's profile Send private message

PostPosted: Mon Mar 24, 2008 7:56 am     Reply with quote

Ttelmah wrote:
If it a device supporting 'per pin' pull-ups, then the syntax is:

port_d_pullups(0xFF);

To turn them all on. 'True', or '1' will only turn on the one on the lowest pin.

However it is most likely, that CCS haven't got this working yet...

Best Wishes



Thanks for the reply,

I tried your code suggestion and it did not work. I have an e-mail in to CCS support.

Mike



Edit:
For those who are having the same problems use this....


set_pullup(true, pin_xx); ///for specific pins
or
set_pullup(true); //for all pins
Charlie U



Joined: 09 Sep 2003
Posts: 183
Location: Somewhere under water in the Great Lakes

View user's profile Send private message

PostPosted: Thu Jun 30, 2011 8:52 pm     Reply with quote

Hello all,

And it appears that the pullup function (set_pulllup()) is broken for the PIC24FJ256GA106 family as well in the latest version (4.122). The function calls end up pointing to the wrong bits in the wrong registers.

Thanks
Charlie (lurking in the background)
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Fri Jul 01, 2011 12:02 am     Reply with quote

Quote:
And it appears that the pullup function (set_pulllup()) is broken for the PIC24FJ256GA106 family as well in the latest version (4.122). The function calls end up pointing to the wrong bits in the wrong registers.

Yes, I filed a first bug report more than 18 months ago and a second one last year, thus I think, the problem should be basically known at CCS.

I didn't check other processors than GA106 family, but I won't be surprized if more are affected.

Although the pull-up issue is in my watchlist of pending bugs, it doesn't bother me, because I set PU/PD in SFR directly.
Charlie U



Joined: 09 Sep 2003
Posts: 183
Location: Somewhere under water in the Great Lakes

View user's profile Send private message

PostPosted: Fri Jul 01, 2011 5:59 am     Reply with quote

Hello FvM, thanks for the reply.

I'll submit a bug report today to jog their memory.

I am just starting to debug 2 new designs with PIC24 parts. Are there any other "features" aka bugs on your watch list?

Thanks
Charlie
Charlie U



Joined: 09 Sep 2003
Posts: 183
Location: Somewhere under water in the Great Lakes

View user's profile Send private message

PostPosted: Mon Jul 11, 2011 8:17 am     Reply with quote

Just received an email from CCS support that the pullup problem will be corrected in the next release.
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