beautypg.com

FUJITSU MB91460 SERIES FR60 User Manual

Page 877

background image

861

Chapter 41 Up/Down Counter

7.Q&A

7.19 How do I enable (select), disable or clear interrupts?

Interrupt request enable and interrupt request flags

To enable (select) interrupts, use the following interrupt request permission bits:

• Count direction change interrupt request permission bits: UDCC.CFIE

• Compare interrupt request permission bits

: UDCS.CITE

• Overflow/underflow interrupt request permission bits : UDCS.UDIE

To clear interrupt requests, use the following interrupt request bits:

• For count direction changes

: UDCC.CDCF

• For compare detection

: UDCS.CMPF

• For overflow

: UDCS.OVFF

• For underflow

: UDCS.UDFF

Interrupt request permission bits (CFIE, CITE and UDIE)

To disable interrupt requests

Set the bit to “0”.

To enable interrupt requests

Set the bit to “1”.

Interrupt request bits (CDCF, CMPF, OVFF and UDFF)

To clear interrupt requests

Write “0”.