Info and help required for ADC0838 chip
Gogs
Posts: 19
I requireinformation on how the ADC0838 chip is wired up to the Stamp2P OEM chip. Also whether any projects have been done with this chip before that show the source code used. I have how the ADC0831 was connected before because of the manuals.
Much appreciated.
Comments
Page 45 shows how it is connected and some sample code starts on page 48.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
The 838 has two additional pins(se - shift enable, and com - commmon out(?)) that from the datasheet, need to be grounded or pulled high depending on what you are doing.
Just modifiy the code for the extra channels...they also give some good suggestions as well for searching google....this is where I found the below link....
if you don't need all of the channels that the 8 provides I'd grab an 834 since it'll be easier to connect. if you do need em all, well...google is your friend [noparse]:)[/noparse]
http://forums.parallax.com/forums/default.aspx?f=5&m=82651&p=1&ord=d
---[noparse][[/noparse]edit]---
this gives you the pinouts and some code, I'm not sure if you need to do anything special for a 2p though
http://stuff.mit.edu/afs/net.mit.edu/user/foley/Classes.old/AUP/Ad0838.bs2
Post Edited (voodoofish) : 7/17/2008 8:17:24 PM GMT
The code for the ADC0838 would look like:
ReadVoltages:
HIGH PM_V_CS 'Deactivate the ADC0834 Voltage Monitor
LOW PM_Clk
LOW PM_Din
DataValue = 0
'A2D_Start_Conversion
LOW PM_V_CS
SHIFTOUT PM_Din,PM_Clk,MSBFIRST,[noparse][[/noparse]VoltSelect\4]
PULSOUT PM_Clk,10 '20 uSec for data conversion
SHIFTIN PM_Dout,PM_Clk,MSBPRE,[noparse][[/noparse]DataValue.LOWBYTE]
HIGH PM_V_CS
RETURN
Where VoltSelect is a constant you get out of the datasheet for the input you want to measure.