Pacer clock saves subroutine calls


Posted on Feb 19, 2013

This Design Idea outlines an easy-to-implement time-delay routine that requires no subroutine calls and thus avoids possible stack-overflow problems (Listing 1). This method also saves RAM space by requiring in most cases only two variables: the PACER_CLOCK as a free-running counter and another variable introduced at a particular instance (for example, TIME_VAR).






Leave Comment

characters left:

Related Circuits

  • New Circuits

    .

     


    Popular Circuits

    Nicad Battery Charger
    Ignition pulses counter
    Arduino Online Thermometer circuit
    Driving a Capacitive Load with an H-bridge
    DC-AC Inverter Convert 12V DC Voltage to 110/220V AC Voltage
    Precision Amplifiers
    Comparator light sensor
    TDA8560 class B power amplifier circuit design project
    2500W Phase Control
    8051 Development System Circuit Board 3
    USB audio DAC with PCM2704
    Test circuit diagram with feedback factor of 1 83 DA6101Q 6111Q
    Low-noise differential amplifier circuit composed PGA203 and OPA27



    Top