Using the TS235

Hello!
On my first attempt for the stamp (BS2) I've managed to glue together some simple code:
Surprisingly enough the code worked with minor tweaks right off. The "minor tweak" that I first realized was the count instruction had too much granularity. In fact it showed data to four figures, instead of to three. Adding the pulsin one caused me to see data in the form of those three figures. And its much closer to what the data sheet wanted. This was an original one from TI as opposed to the one from TAOS. Especially since these parts are indeed from TI.
On my first attempt for the stamp (BS2) I've managed to glue together some simple code:
' {$STAMP BS2}
' {$PBASIC 2.5}
In VAR Byte
X VAR Byte
DD VAR Byte
cnt VAR Word
FOR X=0 TO 255
In = 0
COUNT In, X , cnt
PULSIN In ,1, DD
DEBUG DEC cnt ,CR
DEBUG DEC DD , CR
'DEBUG DEC X, CR
PAUSE 220
NEXT
END
Surprisingly enough the code worked with minor tweaks right off. The "minor tweak" that I first realized was the count instruction had too much granularity. In fact it showed data to four figures, instead of to three. Adding the pulsin one caused me to see data in the form of those three figures. And its much closer to what the data sheet wanted. This was an original one from TI as opposed to the one from TAOS. Especially since these parts are indeed from TI.