beautypg.com

1 timer/counter b register descriptions, 1 timer/counter b register descriptions -1, Maxq family user’s guide: maxq8913 supplement – Maxim Integrated MAXQ Family Users Guide: MAXQ8913 Supplement User Manual

Page 76

background image

MAXQ Family User’s Guide:

MAXQ8913 Supplement

21-1

SECTION 21: TIMER/COUNTER B MODULE (SPECIFIC TO MAXQ8913)

The MAXQ8913 provides one Type B timer/counter module that operates as described in this section. Table 21-1 and
Table 21-2 list the associated pins and registers for these timer/counter modules.

Table 21-1. Type B Timer/Counter Input and Output Pins

Table 21-2. Type B Timer/Counter Control Registers

21.1 Timer/Counter B Register Descriptions

The following peripheral registers are used to control the LCD display controller. Addresses for all registers are given
as “Mx[yy],” where x is the module number (from 0 to 15 decimal) and yy is the register index (from 00h to 1Fh hexa-
decimal). Fields in the bit definition tables are defined as follows:
• Name: Symbolic names of bits or bit fields in this register.
• Reset: The value of each bit in this register following a standard reset. If this field reads “unchanged,” the given bit

is unaffected by standard reset. If this field reads “s,” the given bit does not have a fixed 0 or 1 reset value because
its value is determined by another internal state or external condition.

• POR: If present this field defines the value of each bit in this register following a power-on reset (as opposed to a

standard reset). Some bits are unaffected by standard resets and are set/cleared by POR only.

• Access: Bits can be read-only (r) or read/write (rw). Any special restrictions or conditions that could apply when

reading or writing this bit are detailed in the bit description.

21.1.1 Timer B Timer/Counter Capture/Reload Register (TBR, M2[07h])

Bits 15:0: Timer B Capture/Reload Register. This register is used to capture the TBV value when Timer B is config-
ured in capture mode. This register is also used as the 16-bit reload value when Timer B is configured in autoreload
mode.

TIMER/COUNTER FUNCTION

PIN

MULTIPLEXED WITH GPIO

TB0A: Timer B I/O Pin A

K3

P1.2

TB0B: Timer B I/O Pin B

L2

P1.3

REGISTER

ADDRESS

FUNCTION

TBR

M2[07h]

Type B Timer/Counter Capture/Reload Register. Holds the reload value in autoreload mode; used
to store capture values in capture mode.

TBC

M2[0Bh]

Type B Timer/Counter Compare Register. This register is used for comparison against the TBV
value when compare mode is enabled.

TBCN

M2[06h]

Type B Timer/Counter Control Register. Contains the control, mode, and interrupt bits.

TBV

M2[0Ah]

Type B Timer/Counter Value Register. Contains the current timer/counter value.

Bit #

15

14

13

12

11

10

9

8

Name

TBR

Reset

0

0

0

0

0

0

0

0

Access

rw

rw

rw

rw

rw

rw

rw

rw

Bit #

7

6

5

4

3

2

1

0

Name

TBR

Reset

0

0

0

0

0

0

0

0

Access

rw

rw

rw

rw

rw

rw

rw

rw

Maxim Integrated