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

misunderstood, laughable or a disgrace?

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



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

misunderstood, laughable or a disgrace?
PostPosted: Wed Jan 11, 2012 12:34 pm     Reply with quote

re 4.128

check out the new function explanation in the manual

set_pullup(1,PIN_B1);

LOL Very Happy Very Happy Very Happy

it ranks right up there with the consistent style of calling % "Modules"
instead of Modulus

really this new discovery tho - it is not so funny -
as an attempt to use it with 16F887 which has
pullups on port B
yields "undefined identifier"
the same happens if you use the goofy syntax
set_pulldown();

all the datasheets i have read call it pull up for a good reason - UP is the only direction you can pull the pin on port B

Neither of the offered syntax possibility
is recognized by YEE NEW compiler

i can get it done w/o this compiler "assistance" but
any enlightenment would be nice.
Ttelmah



Joined: 11 Mar 2010
Posts: 19341

View user's profile Send private message

PostPosted: Wed Jan 11, 2012 1:03 pm     Reply with quote

A few of the latest chips support individually programmable _pulldown's_ as well as pullup's. On these, 'up' is _not_ the only direction you can pull a pin.
These functions are only available on such chips.

Best Wishes
temtronic



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

View user's profile Send private message

PostPosted: Wed Jan 11, 2012 1:17 pm     Reply with quote

and of course there is 'inverse' logic...... where '1's are low and '0's are high...

trying to please everyone for every combination of circumstances,chips, flexability is a daunting task

things were a LOT simpler with just a 16C84 on the board !

If you want a real head shaker download the Vinculum II IDE and go though the first 40-50 screens.....
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