beautypg.com

2 type 2 timer/counter i, 2 type 2 timer/counter i/o pins -6, Maxq7667 user’s guide – Maxim Integrated MAXQ7667 User Manual

Page 100: 2 type 2 timer/counter i/o pins

background image

___________________________________________________________________________________________________________

6-6

MAXQ7667 User’s Guide

6.1.2 Type 2 Timer/Counter I/O Pins

Each of the three timer/counters, typically, has a pair of pins associated with it to support the enhanced input/output functionality. The pair

of pins are referred to as the primary and secondary pins and are designated the symbols T2P0 and T2PB0, respectively. Because there

are three Type 2 timers, the pairs are referred to as follows: T2P0, T2PB0; T2P1; T2P2, T2PB2 (secondary pin is not available for timer 1).

A slightly different naming convention is also used for the primary and secondary pins, as shown by the following:

Timer 0: T2P0, T2PB0 = T0, T0B

Timer 1: T2P1 = T1 (no secondary output on T1B)

Timer 2: T2P2, T2PB2 = T2, T2B

To generalize, T2Px, T2PBx = Tx, TxB where x = 0, 1, 2.

Both naming conventions are commonly used for the MAXQ microcontrollers.

Table 6-1. Type 2 Timer/Counter Input and Output Pins

TYPE 2 TIMER/COUNTER FUNCTION

PIN

MULTIPLEXED WITH

PORT PIN

FUNCTION

Timer 0 Input/Output—T0 (T2P0)

12

P0.3/ADCCTL

Digital GPIO and ADC Control Input. As T0 this pin is the primary

timer/PWM0 input or output. As ADCCTL this user-programmable rising

or falling edge controls the SAR ADC sampling instant and start of con-

version. Optionally, the other edge can be used to enable the ADC and

begin acquiring prior to sampling.

Timer 0 Secondary Output—T0B (T2PB0)

13

P0.4

Digital GPIO, Timer 0 I/O, and Comparator Output. As T0B this pin is the

secondary timer/PWM1 input or output. As CMPO this pin is the output of

the digital comparator for the lowpass filter.

Timer 1 Input/Output—T1 (T2P1)*

14

P0.5

Digital GPIO and Timer 1 I/O. As T1 this pin is the primary timer/PWM2

input or output.

Timer 2 Input/Output—T2 (T2P2)

15

P0.6

Digital GPIO and Timer 2 I/O. As T2 this pin is the primary timer/PWM2

input or output.

Timer 2 Secondary Output—T2B (T2PB2)

16

P0.7

Digital GPIO and Timer 2 I/O. As T2B this pin is the secondary

timer/PWM2 input or output.

*The secondary pin is not supported for timer 1 in the MAXQ7667.