Interfacing ColorPal Sensor in ASM on 8051
electronlude97
Posts: 5
Hey, has anyone interfaced a Parallax Colorpal color sensor for the 8051 MCU in ASM. I am trying to do that and i am stuck due to the Parallax Colorpal's 1-wire serial setup. The 8051 is not made for that. And i am unsure if i need a start bit to be sent to the colorpal from the sensor to get it to sample colors and output them on the signal line.
Comments
http://forums.parallax.com/showthread.php?p=890040
And, yes, you do need to provide both start and stop bits.
-Phil
It appears from the ColorPal datasheet that the examples are using the BASCI Stamp. It is sending the commands as ASCII characters to the ColorPal. So, just figure out the ASCII value for those characters and send those.
No mater what is is going to end up in binary but I believe in most assemblers you can specify bytes as Hex, Binary, or ASCII which the assembler will translate for you....
Robert