Cypress CY7C601xx manual 3. Interrupt Clear 1 INTCLR1 0xDB R/W, Interrupt Clear 2 INTCLR2 0xDC R/W

Models: CY7C601xx CY7C602xx

1 68
Download 68 pages 62.39 Kb
Page 56
Image 56
Table 19-3. Interrupt Clear 1 (INT_CLR1) [0xDB] [R/W]

CY7C601xx, CY7C602xx

Table 19-3. Interrupt Clear 1 (INT_CLR1) [0xDB] [R/W]

Bit #

7

6

5

4

3

2

1

0

Field

TCAP0

Prog Interval

1-ms Program-

 

 

Reserved

 

 

 

 

Timer

mable Interrupt

 

 

 

 

 

Read/Write

R/W

R/W

R/W

Default

0

0

0

0

0

0

0

0

 

 

 

 

 

 

 

 

 

When reading this register,

0 = There is no posted interrupt for the corresponding hardware.

1 = There is a posted interrupt for the corresponding hardware.

Writing a ‘0’ to the bits clears the posted interrupts for the corresponding hardware. Writing a ‘1’ to the bits AND to the ENSWINT (Bit 7 of the INT_MSK3 Register) posts the corresponding hardware interrupt.

Table 19-4.

Interrupt Clear 2 (INT_CLR2) [0xDC] [R/W]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit #

 

7

6

5

 

4

3

2

1

0

Field

 

Reserved

GPIO Port 4

GPIO Port 3

 

GPIO Port 2

Reserved

INT2

16-bit Counter

TCAP1

 

 

 

 

 

 

 

 

 

Wrap

 

Read/Write

 

R/W

R/W

 

R/W

R/W

R/W

R/W

Default

 

0

0

0

 

0

0

0

0

0

 

 

 

 

 

 

 

 

 

 

 

When reading this register,

0 = There is no posted interrupt for the corresponding hardware.

1 = There is a posted interrupt for the corresponding hardware.

Writing a ‘0’ to the bits clears the posted interrupts for the corresponding hardware. Writing a ‘1’ to the bits AND to the ENSWINT (Bit 7 of the INT_MSK3 Register) posts the corresponding hardware interrupt.

19.4.2 Interrupt Mask Registers

The Interrupt Mask Registers (INT_MSKx) enable the individual interrupt sources’ ability to create pending interrupts.

There are four Interrupt Mask Registers (INT_MSK0, INT_MSK1, INT_MSK2, and INT_MSK3) which are referred to in general as INT_MSKx. If cleared, each bit in an INT_MSKx register prevents a posted interrupt from becoming a pending interrupt (input to the priority encoder). However, an interrupt can still post even if its mask bit is zero. All INT_MSKx bits are independent of all other INT_MSKx bits.

If an INT_MSKx bit is set, the interrupt source associated with that mask bit generates an interrupt that becomes a pending interrupt.

Table 19-5. Interrupt Mask 3 (INT_MSK3) [0xDE] [R/W]

The Enable Software Interrupt (ENSWINT) bit in INT_MSK3[7] determines the way an individual bit value written to an INT_CLRx register is interpreted. When cleared, writing 1s to an INT_CLRx register has no effect. However, writing 0s to an INT_CLRx register, when ENSWINT is cleared, causes the corresponding interrupt to clear. If the ENSWINT bit is set, 0s written to the INT_CLRx registers are ignored. However, 1s written to an INT_CLRx register, when ENSWINT is set, causes an interrupt to post for the corresponding interrupt.

Software interrupts aid in debugging interrupt service routines by eliminating the need to create system level interactions that are sometimes necessary to create a hardware only interrupt.

Bit #

7

6

5

4

3

2

1

0

Field

ENSWINT

 

 

 

Reserved

 

 

 

Read/Write

R

Default

0

0

0

0

0

0

0

0

 

 

 

 

 

 

 

 

 

Bit 7: Enable Software Interrupt (ENSWINT)

0= Disable. Writing 0s to an INT_CLRx register, when ENSWINT is cleared, clears the corresponding interrupt. 1= Enable. Writing 1s to an INT_CLRx register, when ENSWINT is set, posts the corresponding interrupt.

Bit [6:0]: Reserved

Document 38-16016 Rev. *E

Page 56 of 68

[+] Feedback

Page 56
Image 56
Cypress CY7C601xx 3. Interrupt Clear 1 INTCLR1 0xDB R/W, Interrupt Clear 2 INTCLR2 0xDC R/W, Interrupt Mask Registers