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.

Solar Power Sensation V2

Solar Power Sensation V2

This is a product all about solar power. Within this product you will get 24 videos, 5 guides, reviews and much more. This product is great for affiliate marketers who is trying to market products all about alternative energy.

Get My Free Ebook

Post a comment