Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

ADC 0808 clock problem

Status
Not open for further replies.

binojkumar

Full Member level 3
Joined
Jul 19, 2004
Messages
151
Helped
2
Reputation
4
Reaction score
1
Trophy points
1,298
Location
Bangalore
Activity points
983
adc0808 clock

Hi friends, im using 0808 adc, but in this development board there is not clock ckt provided for this adc, how can i write a code in c for sufficient clock? pls help me


thnks in advance
 

adc0808+clock

ADC0808 need 10Khz to 1.2 Mhz Clock, depend on sampling rate you required, i don't know what dev board but you could generate pwm pulse for this adc.
 

use a timer to provide interupt and complements a pin at approximately 500khz frequency. connect the pin to the clock pin of adc.

example:
void timerinterupt using 1
{
TR0=0
TH0=1;
TL0=125;
clock=!clock;// any i/o pin
TR0=1;
TF0=0;
}

enable timer zero interupt in your code.

regards
kumaresh kj

welove8051.com
 

also you can use software delay functions provided by MikroC, C18 or CCS compilers if you are not familiar with timer interrupts.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top