ADC Programming
sameia
Posts: 7
·hi there,
i am a senior student and i has a project that need to be programmed in BS2, my problem is that i must use this program and i don't know how because our programming course was about C++ and visual basic so i am stuck now. so Plz i need an expert to dirct me and i wana now how to get the programming og ADC ..
need your experiance as soon as possible.
i am a senior student and i has a project that need to be programmed in BS2, my problem is that i must use this program and i don't know how because our programming course was about C++ and visual basic so i am stuck now. so Plz i need an expert to dirct me and i wana now how to get the programming og ADC ..
need your experiance as soon as possible.
Comments
and have found it to be easy to program. The link above has the demo programs for the BS2.
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134
March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
·
with PIN= A,PIN2=ALE,PIN3=SC,PIN4=RD,PIN5=EOC
The a/d chosen is not very complicated and the datasheet is the place to start.
Hook it up, start writing and let us know the specific snags you run into.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·
Also, check out the IF-THEN-ELSE construct as it may give some more flexibility in program flow.
main:
if IN5 = 1 then DOTHIS
···· do these steps if IN5 is still 0
goto main
dothis: ' label where you process data after the conversion is done
····· process the newest data
goto main
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·