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.

Recent content by alexang

  1. A

    delay calculation help!

    i sure i m using 20Mhz crystal !!! 1 instruction = 4 clock cycle time for 1 instruction=20 M/4 = 5 MHz (unsigned long data) 5,000 x (my delay)1,000,000 = 5,000,000,000 5,000,000,000 / 5,000,000 cycles per second = 1000 seconds! my calculation correct? but result show is 5seconds???
  2. A

    delay calculation help!

    but it is work!! result show "out" is on for 5 seconds as wat i m expect. i just wan to noe the calculation part...
  3. A

    delay calculation help!

    void main() { unsigned long delay_time=5000; for(;;) { if(SW1==0) { out=1; delay(1000000); out=0; } ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ this delay(1000000) is around 5 seconds i m using 20MHz crystal...
  4. A

    timer source code using c language

    my project is moving a car in and out SW1 ON = car moving out for 5 second then automatic stop SW2 or sensor ON=car go in for 5 second then automatic stop when sensor OFF car will go out for 5 second then automatic stop <<problem is i just allow this car stop at outside just for 30 second then...
  5. A

    c language for timer countdown

    void main() { unsigned long delay_time=5000; TRISB = 0b00000111; TRISA = 0b00000001; while(1) { while((sensor==1)||(SW2==1)) { in=1; out=0; stay=1; delay(700); in=0; out=0; stay=1; delay(700); { while(stay==1) { if(sensor==0)...
  6. A

    c language for timer countdown

    i know that can use counter/timer. but i wan a simple source code how to use counter/timer by using c language.
  7. A

    c language for timer countdown

    for example i switch on a LED for 5 second then turn off for 5 second. i keep repeating this process. now i want the LED just can turn on in total time of total 30 second(total 6 time off my process just now), then the LED wont be light on after this 30 second.

Part and Inventory Search

Back
Top