Basic Stamp I/O questions
Archiver
Posts: 46,084
For Example, if I have a parallel 8-bit ADC wired to the first 8 pins
of the stamp(2p) and do the following
DIRL = 0 'Setting the lowest 8 pins as inputs
#1 If I then say...
Y VAR byte
Y = INL
Will Y contain the value of the ADC that can be manipulated like any
variable?
#2 If the above logic is correct. Could I mask off the last 7 bits
by Y && $7f?
Thank you for any help in advance!
of the stamp(2p) and do the following
DIRL = 0 'Setting the lowest 8 pins as inputs
#1 If I then say...
Y VAR byte
Y = INL
Will Y contain the value of the ADC that can be manipulated like any
variable?
#2 If the above logic is correct. Could I mask off the last 7 bits
by Y && $7f?
Thank you for any help in advance!