UPD784026 Renesas Electronics Corporation., UPD784026 Datasheet - Page 363

no-image

UPD784026

Manufacturer Part Number
UPD784026
Description
16/8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
Figure 10-45 Interrupt Request Processing that Calculates Pulse Width
Initialize capture value buffer memory
Figure 10-44 Pulse Width Measurement Setting Procedure
Pulse width measurement
Enable interrupts
CRC2
Set INTM0
CE2
CMD2
Set MK0L
Set CRC2
Set TMC1
X0
CHAPTER 10 TIMER/COUNTER 2
0
1
10H
0
Store capture value in memory
INTP1 Interrupt
Calculate pulse width
INTP1 interrupt
Yn = X
X
n+1
RETI
n+1
CR22
; Specify both edges as INTP1 input
; Set bit 7 of TMC1 to 1
– Xn
valid edges, release interrupt masking
Set normal mode (CMD2 = 0)
323

Related parts for UPD784026