Spin code for Acitivity Board ADC
Rsadeika
Posts: 3,837
in Propeller 1
I looked in the OBEX, but could not find anything for the ADC chip that is on the Activity Board. I believe all the support code for the Activity Board is PropCCC. The ADC that is on the Propeller BOE, is a different one than what is on the Activity Board. Same holds true for the C3 board.
I am doing some testing of the fastspin(BASIC) program, and I am using the WX Activity Board as the test unit. Now that I think about it, I will probably need the Spin version for the WiFi part also, if anybody has some leads.
Thanks
Ray
I am doing some testing of the fastspin(BASIC) program, and I am using the WX Activity Board as the test unit. Now that I think about it, I will probably need the Spin version for the WiFi part also, if anybody has some leads.
Thanks
Ray
Comments
Datasheet: ti.com/lit/ds/symlink/adc124s021.pdf
dgately
EDIT: Did not see that your code may actually be using an SPI read... But, still not able to get correct results, so far.
Doesn't the ADC124S0214 require an SPI based interface and not I2C? Or am I missing something (tried your code and it just spits out random-ish data...
These numbers just spin different negative numbers for 3 inputs, running 3.3 volts through differing resistors to the ADC inputs A/D 0-2. (Note: A/D 3 had no input in this case...)
dgately
I'll try another AB board.
v = 2750*5/4095
v = adc_val * 5/4095
Hope this helps.
Tom