This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

URGENT!....how do i write a program for timing??


anyone out there..pls help me out!..

im having problems writing a program using uVision2 for a 8052 developement kit.

problem no.1: I have a Waveform of unknown freq from a swipe card which has TTL voltage of 0 and 5v. we need to design a program using C to count the time between the very 1st 2 high voltage
(1st 2 high V)

problem no.2: Next we hav to decode the waveform using a table. Basically its a Magnetic Swipecard we hav to decode, track 2 (eg 411557, 5bits per character)

half the program has been written so far but we can;t seem to output it to the LCD display...


HELP ME ANYONE PLEASE!!!...
Desperate.
ps: any qns, pls feel free to email me
arelius@visto.com

Parents Reply Children
  • Hi Erik,

    well, just looked it up again... you can sure use the internal clock too. I just remembered an old application of mine, where I used a variable external clock to meassure the length of something moving through a light barrier. The external clock was relative to the speed of the movement. So I was not sure, if the c51 would be able to use the internal clock for the capture mode... just too long ago :))

    Take care
    Sven