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.

DIY Battery Repair

DIY Battery Repair

You can now recondition your old batteries at home and bring them back to 100 percent of their working condition. This guide will enable you to revive All NiCd batteries regardless of brand and battery volt. It will give you the required information on how to re-energize and revive your NiCd batteries through the RVD process, charging method and charging guidelines.

Get My Free Ebook


Post a comment