beautypg.com

Maxq family user’s guide: maxq2010 supplement – Maxim Integrated MAXQ Family Users Guide: MAXQ2010 Supplement User Manual

Page 112

background image

MAXQ Family User’s Guide:

MAXQ2010 Supplement

21-1

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

The MAXQ2010 provides three Type B timer/counter modules that operate 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

TIMER/COUNTER FUNCTION

PIN

MULTIPLEXED WITH GPIO

TB0A: Timer 0 I/O Pin A

67

P5.1

TB0B: Timer 0 I/O Pin B

68

P5.0

TB1A: Timer 1 I/O Pin A

25

P6.5

TB1B: Timer 1 I/O Pin B

28

P6.4

TB2A: Timer 2 I/O Pin A

23

P6.7

TB2B: Timer 2 I/O Pin B

24

P6.6

REGISTER

ADDRESS

FUNCTION

TB0R

M4[00h]

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

TB0C

M4[01h]

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

TB1R

M4[02h]

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

TB1C

M4[03h]

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

TB2R

M4[04h]

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

TB2C

M4[05h]

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

TB0CN

M4[08h]

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

TB0V

M4[09h]

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

TB1CN

M4[0Ah]

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

TB1V

M4[0Bh]

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

TB2CN

M4[0Ch]

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

TB2V

M4[0Dh]

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