380 microsecond pulse generator code

Discussion in 'Programmer's Corner' started by faheemmalik, Jun 8, 2011.

  1. faheemmalik

    Thread Starter New Member

    Dec 15, 2010
    How to generate 380 microsecond pulse through 8051 microcontroller ... can any one help me to write the complete code and circuit diagram if possible. I dont know much about micro controller programming. I need this pulse generator to test an electronic component. ....
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    Does the 8051 have internal timers? If so, you should be able to load values into one and measure how much time it takes to count down to 0. You may get lucky and find some value that takes 380 microseconds. If one won't do, use two, where one counts down and then the other.
  3. atferrari

    AAC Fanatic!

    Jan 6, 2004
    Timer 0 and Timer 1. I do not recall if any of them is a 16-bit timer.