English
Language : 

TMP88CH40NG Datasheet, PDF (78/148 Pages) Toshiba Semiconductor – 8 Bit Microcontroller
11. Motor Control Circuit (PMD: Programmable motor
driver)
TMP88CH40NG
SDREG
7
(01FA3H)
–
6
5
4
3
2
1
0
D6
D5
D4
D3
D2
D1
D0 (Initial value: *000 0000)
6 to 0 SDREG
Sampling delay
23/fc × n bits (n = 0 to 6, maximum 50.8 µs, resolution of 400 ns at 20
R/W
MHz)
Note: When changing setting, keep the PDCEN bit reset to “0” (disable position detection function).
11.3.3 Outline Processing in the Position Detection Unit
Software
Set mode
pattern
Write expected
value
MDOUT
(E, D, C)
Hardware
Start position
detection
INTTMR2
Timer unit
Sample position
signal input
Match with
No
expected value?
Yes
Increment
matching counts
Interrupt
handling
INTPDC
Increment mode
counts
Specified
No
count reached?
Yes
Generate INTPDC
interrupt
End of position
detection
Page 70