PLP_A + Dipswitch
nick bernard
Posts: 329
is this topology and code OK on the sx28? it's yeilding inconsistant results.
thx
nick
Start:
TRIS_A = $F
TRIS_B = $00
TRIS_C = $FF
rb.6 = 0
PLP_A = $0
alarmActuated = ~ra.0
delay = ~ra
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
engineer, fireman, bowler, father, WoW addict [noparse];)[/noparse]
thx
nick
Start:
TRIS_A = $F
TRIS_B = $00
TRIS_C = $FF
rb.6 = 0
PLP_A = $0
alarmActuated = ~ra.0
delay = ~ra
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
engineer, fireman, bowler, father, WoW addict [noparse];)[/noparse]
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Start:
TRIS_A = $F
PLP_A = $0
TRIS_B = $00
TRIS_C = $FF
rb.6 = 0
alarmActuated = ~ra.0
delay = ~ra
' PLP_A = $F.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
engineer, fireman, bowler, father, WoW addict [noparse];)[/noparse]
· You need to give the pull-up some time to "kick-in". Put a small delay (a couple uSecs) after the PLP_A = $0 instruction and before you read the pins.
· Remember, they are WEAK pull-ups.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module" Now available from Parallax for only·$49.95
http://www.parallax.com/detail.asp?product_id=30015
Product web site: www.sxvm.com
Those that would give up freedom for security will have neither.
·
wow thats crazy cool that the sx is so fast it executes instructions before it can realize them!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
engineer, fireman, bowler, father, WoW addict [noparse];)[/noparse]
It's not that, it's that he pin acts like a capacitor, and it takes time for it to "charge-up" though the weak pull-up.
There is another problem called the "read-modify-write" issue, that you can read about. That is basically the same thing.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module" Now available from Parallax for only·$49.95
http://www.parallax.com/detail.asp?product_id=30015
Product web site: www.sxvm.com
Those that would give up freedom for security will have neither.
·