45181 Parallax Inc, 45181 Datasheet - Page 100

SX TECH TOOL KIT NO POWER

45181

Manufacturer Part Number
45181
Description
SX TECH TOOL KIT NO POWER
Manufacturer
Parallax Inc
Series
SXr
Type
Microcontrollerr
Datasheet

Specifications of 45181

Contents
SX Book, SX Key, SX Tech Board, Samples, Resonators, Cable and Manual
Product
Microcontroller Basic Stamps
Operating Supply Voltage
5 V
For Use With/related Products
SX MCUs
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
10 SX Special Features and Coding Tips
10.4.1 RTCC Rollover Interrupts
The SX chip can be set to cause an interrupt upon rollover of the Real Time Clock Counter (RTCC). By
configuring an interrupt on RTCC rollover, the SX chip can perform an operation at a predefined time
interval in a deterministic fashion. This can be configured by setting the STACKX or OPTIONX fuse (in
the DEVICE directive) and writing to the RTI, RTS and RTE bits of the Option register (OPTION). The
RTCC rollover interrupt is disabled by default.
To configure the RTCC rollover interrupt:
Page 100 SX-Key/Blitz Development System Manual 2.0 Parallax, Inc.
1) Set the STACKX or OPTIONX fuse in the DEVICE line.
2) Write to the RTI, RTS and RTE bits of the OPTION register to enable RTCC interrupts. For RTI, a
Multiple Interrupts: Using more than one interrupt, such as multiple external interrupts or both
RTCC and external interrupts, can result in missed or, at best, jittery interrupt handling should one
occur during the processing of another.
Clearing Pending Bits: When handling external interrupts, the interrupt routine should clear at least
one pending register bit. The bit that is cleared should represent the interrupt being handled in or-
der for the next interrupt to trigger.
Debugging Interrupts: The SX chip may act strangely while debugging code that contains interrupts.
The SX chip may or may not enter the RTCC interrupt routine (and will never enter a MIWU
interrupt) while using the Step or Walk functions. This is due to the SX chip giving higher priority
to the SX-Key than its internal interrupt flags. If interrupt code needs to be debugged or verified, place a
BREAK directive, or a breakpoint, in an appropriate place within the interrupt routine and use the Run or
Poll functions.
high bit (1) disables RTCC rollover interrupts and a low bit (0) enables RTCC rollover interrupts.
For RTS, a high bit (1) selects incrementing RTCC on internal clock cycle and a low bit (0)
increments RTCC on the RTCC pin transitions. For RTE, a high bit (1) selects incrementing on low-
to-high transition and a low bit (0) increments on a high-to-low transition.

Related parts for 45181