Shop OBEX P1 Docs P2 Docs Learn Events
SX 4Mhz Delay Sub — Parallax Forums

SX 4Mhz Delay Sub

microcontrollerusermicrocontrolleruser Posts: 1,194
edited 2018-08-01 05:44 in General Discussion
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.

Comments

  • 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: 1,194
    edited 2018-07-31 04:29

    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.



Sign In or Register to comment.