45181 Parallax Inc, 45181 Datasheet - Page 97
![SX TECH TOOL KIT NO POWER](/photos/9/29/92994/mfg_45181_sml.jpg)
45181
Manufacturer Part Number
45181
Description
SX TECH TOOL KIT NO POWER
Manufacturer
Parallax Inc
Series
SXr
Type
Microcontrollerr
Datasheet
1.45180.pdf
(184 pages)
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
- Current page: 97 of 184
- Download datasheet (2Mb)
The block diagram in Figure 16 – SX48/52 Multi-Function Timers, below, shows the components of one
timer:
Registers R1, R2 and the capture registers can be accessed by mov !rb, w (Timer1), or mov !rc, w
(Timer2) instructions. The remaining registers cannot be accessed via software.
Timer 1 shares its input and output lines with the Port B pins 4...7, and Timer 2 shares its input and
output lines with the Port C pins 0...3. If a timer is active, those pins can no longer used for "regular"
I/O purposes.
10.3.1 PWM Mode
In this mode, the timer generates a square wave signal with programmable frequency, and duty cycle.
For this purpose, the contents of the two comparison registers determine for how long the signal is high,
and low.
The 16-bit counter starts with a value of 0, and keeps incrementing until it has reached the value of R1.
Then, the counter is reset to 0, the output is toggled, and (if enabled) an interrupt is generated.
Next, the counter keeps incrementing until it reaches the value of R2. Again, the counter is reset to 0, the
output signal is toggled, and an interrupt is triggered (if enabled).
These two steps are repeated continuously. The contents of R1 and R2 determine the frequency and the
duty cycle of the generated output signal. When R1 and R2 contain the same value, a square wave with
a duty cycle of 50% is generated. In order to generate a signal with a constant frequency, and a varying
System Clock
External Clock
(RB7/RC3)
Capture 1 (RB4/RC0)
Capture 2 (RB5/RC1)
8-Bit Prescaler
Multiplexer
Figure 16 - SX48/52 Multi-Function Timers
or Capture Register (2)
16-Bit Comparison R2
10 SX Special Features and Coding Tips
16-Bit Capture Register (1)
16-Bit Comparator
SX-Key/Blitz Development System Manual 2.0 Parallax, Inc. Page 97
16-Bit Counter
16-Bit Comparison Register
R1
Output (RB6/RC2)
Compare
Interrupt
Capture
Interrup
t
Related parts for 45181
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![451-00303](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
Terminals 3 Pin Single Row Header (long)
Manufacturer:
Parallax Inc
![451-04001](/photos/39/86/398671/451-04001-l_tmb.jpg)
Part Number:
Description:
Headers & Wire Housings 16 Pin Single Row Header
Manufacturer:
Parallax Inc
![30008](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
![70009](/photos/26/92/269208/70009-l_tmb.jpg)
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
![27404](/photos/26/91/269197/27404-l_tmb.jpg)
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
![70016](/photos/8/99/89966/mfg_70016_tmb.jpg)
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
![30008](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
![70009](/photos/26/92/269208/70009-l_tmb.jpg)
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
![28135](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
![SX18AC/SO](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: