SX 4Mhz Delay Sub

To produce a one second delay do this.

Set prescaler to 256.

Loop 39 times to produce 1/100 second delay.

Second loop countdown 100 to make your one second delay.

Pretty handy.Ran across that working on a project.

PARALLAX PIC PGM PROGRAMMER WANTED AND EMULATOR


Comments

  • 3 Comments sorted by Date Added Votes
  • This topic does not belong in the Basic Stamp forum. It can go under Microcontrollers. The subtopics, Propeller1, Propeller2, and Basic Stamp are limited to topics having to do with those specific microcontrollers.
  • Admin: Moved to microcontrollers.
  • microcontrollerusermicrocontrolleruser Posts: 986
    edited July 31 Vote Up0Vote Down

    Found 32khz internal oscillator or RC setting in SX Editor/Device.

    See if it applies to SX28.

    That makes coding delays about as simple as it gets.




    PARALLAX PIC PGM PROGRAMMER WANTED AND EMULATOR


Sign In or Register to comment.