Controlling the ADC from the Basic Stamp

To prime the ADC0834 for taking a measurement, the CS pin has to receive a signal from the BASIC Stamp module that starts high, then goes low. This signal has to stay low for the duration of the conversion. Next, the BASIC Stamp module must tell the ADC0834

which channel to convert. This is done by sending a serial data code via the DI line. Then the CLK input must receive a single clock pulse to signify that the conversion should start at the next clock pulse. For this device, a clock pulse starts low, goes high, then goes low again. Once this happens, the reading will be sent via the DO (Data Out) line. It takes 8 more clock pulses to complete the conversion. Each time a clock pulse is received by the CLK input, another of the serial bits is sent by the DO output. When all 8 bits have been received by the BASIC Stamp module, it must set the CS pin high, signifying the end of the data transmission.

Electronics designers use data sheets to find the kind of information just discussed. Each IC manufacturer publishes data sheets for the integrated circuits they make. The information just covered on the pin map and control signals was condensed from a data sheet published by National Semiconductor, the maker of the ADC0834. Datasheets are available on the manufacturer's web sites.

Getting Started With Solar

Getting Started With Solar

Do we really want the one thing that gives us its resources unconditionally to suffer even more than it is suffering now? Nature, is a part of our being from the earliest human days. We respect Nature and it gives us its bounty, but in the recent past greedy money hungry corporations have made us all so destructive, so wasteful.

Get My Free Ebook

Post a comment