Sending a 12-bit value with Serial Mirror.sping (bytewise / 8-bit)
propwell
Posts: 87
Hi folks,
i've got the MCP3208 ADC running on my Propeller. Problem: it is a 12-bit ADC and, as far as i know, the serial interface communicates with 8-bit-blocks?!? So the highest number i can send is a 255, wherelse the maximum of 12 bit is 4096 isn't it? Can you help me therefor?
Thank you very much,
Max
i've got the MCP3208 ADC running on my Propeller. Problem: it is a 12-bit ADC and, as far as i know, the serial interface communicates with 8-bit-blocks?!? So the highest number i can send is a 255, wherelse the maximum of 12 bit is 4096 isn't it? Can you help me therefor?
Thank you very much,
Max
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon McPhalen
Hollywood, CA
sounds good! So on the PC-side, i can recalculate it with byte[noparse][[/noparse]0]+256*byte?
Greetz and thank you very much!
Post Edited (propwell) : 1/19/2010 1:10:26 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon McPhalen
Hollywood, CA