View previous topic :: View next topic |
Author |
Message |
asmboy
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: 19797
|
|
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.
Best Wishes |
|
 |
temtronic
Joined: 01 Jul 2010 Posts: 9462 Location: Greensville,Ontario
|
|
Posted: Wed Jan 11, 2012 1:17 pm |
|
|
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..... |
|
 |
|