| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| mharris27 
 
 
 Joined: 22 Apr 2005
 Posts: 15
 
 
 
			    
 
 | 
			
				| 24HJ256GP210 and progammable port pull-ups |  
				|  Posted: Mon Mar 24, 2008 7:03 am |   |  
				| 
 |  
				| 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
 
 
 
 
 
 
 
			
			
			
			
			
			
			
			
			
 
 | 
			
				|  |  
				|  Posted: Mon Mar 24, 2008 7:26 am |   |  
				| 
 |  
				| 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
 
 
 
			    
 
 | 
			
				|  |  
				|  Posted: Mon Mar 24, 2008 7:56 am |   |  
				| 
 |  
				|  	  | 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
 
 
			    
 
 | 
			
				|  |  
				|  Posted: Thu Jun 30, 2011 8:52 pm |   |  
				| 
 |  
				| 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
 
 
			    
 
 | 
			
				|  |  
				|  Posted: Fri Jul 01, 2011 12:02 am |   |  
				| 
 |  
				|  	  | 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
 
 
			    
 
 | 
			
				|  |  
				|  Posted: Fri Jul 01, 2011 5:59 am |   |  
				| 
 |  
				| 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
 
 
			    
 
 | 
			
				|  |  
				|  Posted: Mon Jul 11, 2011 8:17 am |   |  
				| 
 |  
				| Just received an email from CCS support that the pullup problem will be corrected in the next release. |  | 
	
		|  | 
	
		|  |