![Rabbit Rabbit 4000 User Manual Download Page 125](http://html1.mh-extra.com/html/rabbit/rabbit-4000/rabbit-4000_user-manual_3116714125.webp)
115
14. T
IMER
B
14.1 Overview
The Timer B peripheral consists of a ten-bit free running up-counter, two match registers,
and two step registers. Timer B is driven by perclk/2, by perclk/16, or by the output of
timer A1. Timer B generates an output pulse whenever the counter reaches the match
value. This output pulse can generate an interrupt and will set a status bit in the status reg-
ister. The processor may then write a new value to the match register. This allows Timer B
to be used for pulse-width or pulse-position modulation because the outputs of Timer B
can clock the outputs on Parallel Ports D and E.
The compare value comes from either the match register or the value internally generated
via the step register. When using the match register, a new match value must be written to
the match register after each match condition, LSB first. When using the step register, the
hardware automatically calculates the next match value by adding the contents of the step
register to the current match value. This allows Timer B matches to be generated at regular
periods without calculating the new match value during the interrupt service routine.
14.1.1 Block Diagram
Timer B
Counter
TBCR
Parallel Ports
DE
perclk/2
perclk/16
Timer A1
Interrupt
Generation
Interrupt
Request
TBM
x
R
TBL
x
R
TBSM
x
R
TBSL
x
R
Timer B
x
Timer B
x
Reload
Registers
=
Summary of Contents for Rabbit 4000
Page 1: ...Rabbit 4000 Microprocessor User s Manual 019 0152 070720 H...
Page 18: ...8 Rabbit 4000 Microprocessor User s Manual...
Page 40: ...30 Rabbit 4000 Microprocessor User s Manual...
Page 74: ...64 Rabbit 4000 Microprocessor User s Manual...
Page 82: ...72 Rabbit 4000 Microprocessor User s Manual...
Page 86: ...76 Rabbit 4000 Microprocessor User s Manual...
Page 96: ...86 Rabbit 4000 Microprocessor User s Manual...
Page 182: ...172 Rabbit 4000 Microprocessor User s Manual...
Page 240: ...230 Rabbit 4000 Microprocessor User s Manual...
Page 248: ...238 Rabbit 4000 Microprocessor User s Manual...
Page 256: ...246 Rabbit 4000 Microprocessor User s Manual...
Page 310: ...300 Rabbit 4000 Microprocessor User s Manual...
Page 330: ...320 Rabbit 4000 Microprocessor User s Manual...
Page 348: ...338 Rabbit 4000 Microprocessor User s Manual...