MCP3008 / SPI
Posted: Tue Jul 29, 2014 1:31 am
Hello,
Has anyone used the analog to SPI converter MCP3008.
I'm trying to make this work with an 18F4685 but no luck.
I'm using the SPI component sending byte 0x01 and then a byte containing 0x08.
This is the start byte and the byte requesting data from channel 0
The problem is that the data I'm getting back is garbage.
I have attached a snapshot of the communication protocol.
It looks like that the 10 bit is returned starting the the byte that you send requesting the data...
Hopefully someone can push me in the correct direction.
Thanks for the help
henk
Has anyone used the analog to SPI converter MCP3008.
I'm trying to make this work with an 18F4685 but no luck.
I'm using the SPI component sending byte 0x01 and then a byte containing 0x08.
This is the start byte and the byte requesting data from channel 0
The problem is that the data I'm getting back is garbage.
I have attached a snapshot of the communication protocol.
It looks like that the 10 bit is returned starting the the byte that you send requesting the data...
Hopefully someone can push me in the correct direction.
Thanks for the help
henk