serin/out question...
Archiver
Posts: 46,084
Hi, i'm triying to make a sort of telemetry station using an BS2sx and BS2e, the BS2sx "read" the data from a 2 channel 12bit adc, i'm storing the data in a 2 word (16bit) array, how can i send this data to the BS2e using serout?. i tried sending one word but the receiver truncates it to 8 bits, must i divide the word in a byte plus 4 aditional bits?,
other question, i want to send the data in ascii hex form, as appears in the "serial port complete" book, i look in the BS2 manual but i don't see how can i do this, appears asc? and hex but separate, any idea?.
thanks and excuse my syntax errors, i really don't speak english very well
other question, i want to send the data in ascii hex form, as appears in the "serial port complete" book, i look in the BS2 manual but i don't see how can i do this, appears asc? and hex but separate, any idea?.
thanks and excuse my syntax errors, i really don't speak english very well
Comments
use hex3:
Serout outpin,baudmode,[noparse][[/noparse]hex3 adcin]
and
Serin inpin, baudmode,[noparse][[/noparse]hex3 adcin]
Where adcin is the word you want to use.
Good luck!
Al Williams
AWC
* Connect a PS/2 keyboard to your Stamp, PIC, or any microcontroller:
http://www.al-williams.com/awce/pak6.htm
Original Message
From: grivero [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=wAtM-cWVeyNpVpKw45zsWjJJa8r3Tn3-igJWM9FPNNskWs1OvuP3DwzeOivfztTK5Y3wGvAN1luong]grivero@c...[/url
Sent: Thursday, November 16, 2000 11:14 PM
To: basicstamps@egroups.com
Subject: [noparse][[/noparse]basicstamps] serin/out question...
Hi, i'm triying to make a sort of telemetry station using an BS2sx and BS2e,
the BS2sx "read" the data from a 2 channel 12bit adc, i'm storing the data
in a 2 word (16bit) array, how can i send this data to the BS2e using
serout?. i tried sending one word but the receiver truncates it to 8 bits,
must i divide the word in a byte plus 4 aditional bits?,
other question, i want to send the data in ascii hex form, as appears in the
"serial port complete" book, i look in the BS2 manual but i don't see how
can i do this, appears asc? and hex but separate, any idea?.
thanks and excuse my syntax errors, i really don't speak english very well