Joined: 20 Nov 2007 Posts: 2128 Location: albany ny
misunderstood, laughable or a disgrace?
Posted: Wed Jan 11, 2012 12:34 pm
re 4.128
check out the new function explanation in the manual
set_pullup(1,PIN_B1);
LOL
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: 19515
Posted: Wed Jan 11, 2012 1:03 pm
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.
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