192
3. APPENDIX
MITSUBISHI MICROCOMPUTER
3819 Group
3.3 Control registers
3819 Group USER’S MANUAL
Fig. 3.3.23 Structure of Zero cross detection control register
Fig. 3.3.24 Structure of Interrupt edge selection register
Interrupt edge selection register
b7 b6 b5 b4 b3 b2 b1 b0
b
Function
At reset
RW
0
1
2
3
0
Interrupt edge selecton reigster (INTEDGE) [Address:3A16]
Name
INT0 interrupt edge selection
bit
INT1/ZCR interrupt edge
selection bit
INT2 interrupt edge selection
bit
0 : Falling edge active
1 : Rising edge active
0 : Falling edge active
1 : Rising edge active
0 : Falling edge active
1 : Rising edge active
0 : Falling edge active
1 : Rising edge active
INT3 interrupt edge selection
bit
4
0
0 : Falling edge active
1 : Rising edge active
INT4 interrupt edge selection
bit
5
6
7
0
INT4/A-D conversion interrupt
switch bit
CNTR0 pin active edge switch
bit
0 : INT4 interrupt
1 : A-D conversion interrupt
0 : Falling edge active
1 : Rising edge active
0 : Falling edge active
1 : Rising edge active
CNTR1 pin active edge switch
bit
Zero cross detection control register
b7 b6 b5 b4 b3 b2 b1 b0
B
Function
At reset
RW
0
1
2
3
4
5
7
0
Zero cross detection control register (ZCRCON) [Address:3916]
Name
Zero cross detection ON/OFF
selection bit
One-sided/both-sided edge
detection selection bit
Zero cross detection circuit
input bit (read-only)
0 : Without passing through zero
cross detection comparator
1 : Passing through zero
cross detection comparator
00 : Note use noise filter
01 : f(XIN)/64 or f(XCIN)/64
10 : f(XIN)/128 or f(XCIN)/128
11 : f(XIN)/256 or f(XCIN)/256
0 : Less than 0 V
1 : 0 V or more
b3 b2
!
Nothing is allocated for this bit. It is a write disabled bit.
When this bit is read out, the value is "0."
!
Noise filter sampling
clock selection bits
(INT1)
0 : One-sided edge detection
1 : Both-sided edges detection ( Note)
6
Nothing is allocated for these bits. These are write disabled bits.
When these bits are read out, the values are "0."
!
When the noise filter sampling clock selection bits (bits 2 and 3) of the Zero
cross detection control register (ZCRCON) (Address: 39 16) is set to “00” (when
no noise filter is used), the both-sided edge detection function is not available.
Note :