Hyundai GMS90X54C, GMS90X51C Timer/Counter 2 Operating Modes, P1.1 Remarks Input Clock, T2EX

Page 23

GMS90X5XC Series

HYUNDAI MicroElectronics

TIMER 2

Timer 2 is a 16-bit timer/Counter with an up/down count feature. It can operate either as timer or as an event

counter which is selected by bit C/T2 (T2CON.1). It has three operating modes as shown in Table 5.

Table 5. Timer/Counter 2 Operating Modes

Mode

 

 

T2CON

 

 

T2MOD

T2CON

P1.1/

Remarks

Input Clock

 

RCLK or

 

 

 

 

 

 

T2EX

 

external

 

 

 

CP/RL2

 

TR2

DCEN

EXEN2

 

internal

 

 

 

TCLK

 

 

 

 

 

 

 

 

 

(P1.0/T2)

16-bit Auto-

 

0

0

 

1

0

0

X

reload upon over-

fOSC ÷ 12

Max.

Reload

 

0

0

 

1

0

1

flow

 

fOSC ÷24

 

 

 

 

reload trigger (fall-

 

 

 

 

 

 

 

 

 

 

 

 

 

ing edge)

 

 

 

 

 

0

0

 

1

1

X

0

Down counting

 

 

 

 

 

0

0

 

1

1

X

1

Up counting

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

16-bit

 

0

1

 

1

X

0

X

16 bit Timer/ Coun-

fOSC ÷ 12

Max.

Capture

 

 

 

 

 

 

 

 

 

ter (only up-count-

 

fOSC ÷ 24

 

 

 

 

 

 

 

 

 

 

ing)

 

 

 

 

 

0

1

 

1

X

1

capture TH2,TL2

 

 

 

 

 

 

 

 

 

 

 

 

 

RC2H,RC2L

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Baud Rate

 

1

X

 

1

X

0

X

no overflow

fOSC ÷ 12

Max.

Generator

 

 

 

 

 

 

 

 

 

interrupt request

 

fOSC ÷ 24

 

 

 

 

 

 

 

 

 

 

(TF2)

 

 

 

 

 

1

X

 

1

X

1

extra external inter-

 

 

 

 

 

 

 

 

 

 

 

 

 

rupt ("Timer 2")

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Off

 

X

X

 

0

X

X

X

Timer 2 stops

-

-

 

 

 

 

 

 

 

 

 

 

 

 

 

Note: =

 

falling edge

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Jan. 2001 Ver 1.0

19

Image 23
Contents GMS90X51C GMS90X52C GMS90X54C Page Mask GMS90C51C Block DiagramGMS90C52C/54C GMS90L52C/54CLow voltage versions Plcc Pin Configuration top view PIN ConfigurationEA / VPP ALE / Prog Pdip Pin Configuration top viewMqfp Pin Configuration top view Logic Symbol XTAL2 PIN Definitions and FunctionsPin Number Symbol FunctionProgram Store Enable ResetNo connection Address Latch EnableCircuit ground potential Functional Description Block Diagram of the GMS90X5XC seriesSpecial Function Register PSW CPUSpecial Function Registers E0H C0HD0H FFH D8HD0H Contents of SFRs, SFRs in Numeric Order Address RegisterE0H F0HGF1 GF0 PDE Idle C8H T2CON TF2 EXF2 Rclk Tclk EXEN2 TR2 CP/RL2 Clock Generation Diagram X2 ModeMode Swithcing Waveforms Input Clock Timer / Counter 0Timer/Counter 0 and 1 Operating Modes Description TmodT2EX TimerTimer/Counter 2 Operating Modes P1.1 Remarks Input ClockSM0 SM1 Serial Interface UsartUsart Operating Modes Baudrate DescriptionInterrupt Request Sources Interrupt SystemInterrupt Priority-Within-Level Interrupt Source Power Saving Modes Absolute Maximum Ratings Electrical CharacteristicsPower supply current DC Characteristics for GMS90C51C/52C/54CParameter Symbol Limit Values Unit Test Conditions Min Hyundai MicroElectronics VCC= 3.3V + 0.3V, -0.6V VSS=0V TA= 0C to 70C DC Characteristics for GMS90L51C/52C/54CExternal Program Memory Characteristics Explanation of the AC SymbolsAC Characteristics for GMS90X5XC series 12MHz version GMS90X5XC Series Advance Information 12MHz External Clock Drive AC Characteristics for GMS90X5XC series 16MHz version Advance Information 16MHz External Clock Drive AC Characteristics for GMS90X5XC series 24MHz version Advance Information 24MHz External Clock Drive AC Characteristics for GMS90X5XC series 33MHz version Advance Information 33MHz External Clock Drive AC Characteristics for GMS90X5XC series 40MHz version Advance Information 40MHz External Clock Drive External Program Memory Read Cycle External Data Memory Read Cycle AC Testing Input, Output Waveforms Oscillator Circuit 44PLCC Plastic Package P-LCC-44Plastic Package P-DIP-40 Plastic Package P-MPQF-44 GMS90X5XC Series ROM Protection GMS90X5XC-GC