MSM80C154S/83C154S/85C154HVS

4.7.4Detection of external interrupt signals INT0 and INT1 4.7.4.1 Outline of INT signal detection

Detect modes of the external interrupt signals 0 and 1 can be set to level-detect or trigger- detect mode by the IT0 and IT1 data values in the timer control register (TCON 88H) as indicated in Table 4-22.

Table 4-22 TCON[88H] register

 

 

 

Timer

 

 

INT1

 

INT0

 

 

 

 

 

 

 

 

 

 

 

Bit

7

6

 

5

4

3

 

2

1

 

0

 

 

 

 

 

 

 

 

 

 

 

 

Flag

TF1

TR1

 

TF0

TR0

IE1

 

IT1

IE0

 

IT0

 

 

 

 

 

 

 

 

 

 

 

 

Set

 

 

 

 

 

 

 

 

 

4.7.4.2 External interrupt signal 0 and 1 level detection

When bit 0 (IT0) in the timer control register (TCON 88H) is “0”, external interrupt 0 is level- activated. And when bit 2 (IT1) is “0”, external interrupt 1 is also level-activated. With the external interrupt signals in level-detect mode, external interrupts 0 and 1 are level-detected by the equivalent circuit shown in Figure 4-47.

When the level of the external interrupt pin is “0” at S5 timing, the level is latched and the Q output becomes “1”. The latched external interrupt signal is set as the external interrupt flag in the timer control register (TCON) at S3 timing. The interrupt flag set by external interrupt signal is always reset at S6 timing of the end of the machine cycle, thereby executing the equivalent of a “level sense” operation. The cycle width of the respective “0” and “1” levels of the external interrupt signal applied to the external interrupt pin in this case must be at least 12 times (12T) the XTAL1·2 oscillator clock cycle time T.

And the external interrupt signal should be held at “0” level until the corresponding interrupt is actually generated.

 

 

 

 

 

 

S3

 

 

 

 

 

 

 

IE0 or 1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

INT0 or INT1

 

 

 

 

 

 

 

 

 

 

 

 

 

S Q

 

 

 

 

 

D Q

RESET

 

 

 

 

 

 

 

 

 

S5

 

L

 

 

 

 

 

 

R

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

0

 

 

 

 

 

S6

 

 

 

 

 

 

 

 

 

12T

12T

 

12T

 

 

 

 

 

MEND

 

 

 

 

 

 

 

 

 

 

Figure 4-47 Interrupt level detect equivalent circuit for IT bit “0”

136

Page 143
Image 143
Sonic Alert msm85c154hvs External interrupt signal 0 and 1 level detection, TCON88H register, TF1 TR1 TF0, IE1 IT1 IE0 IT0