Philips CEM2100/00 Service Manual page 212

Mini system
Hide thumbs Also See for CEM2100/00:
Table of Contents

Advertisement

8. 16-Bit TimerCounter 1 (TC1)
8.3 Function
Example :Generating a pulse which is high-going for 800 µs and low-going for 200 µs
Example :After stopping PPG, setting the PPG pin to a high-level to restart PPG
Match to TC1DRB
Match to TC1DRA
(fc = 16 MHz)
Setting port
LD
(TC1CR), 10000111B
LDW
(TC1DRA), 007DH
LDW
(TC1DRB), 0019H
LD
(TC1CR), 10010111B
(fc = 16 MHz)
Setting port
LD
(TC1CR), 10000111B
LDW
(TC1DRA), 007DH
LDW
(TC1DRB), 0019H
LD
(TC1CR), 10010111B
:
:
LD
(TC1CR), 10000111B
LD
(TC1CR), 10000100B
LD
(TC1CR), 00000111B
LD
(TC1CR), 00010111B
TC1CR<TFF1>
Write to TC1CR
Internal reset
Figure 8-7
; Sets the PPG mode, selects the source clock
; Sets the cycle (1 ms ÷ 2
; Sets the low-level pulse width (200 µs ÷ 2
; Starts the timer
; Sets the PPG mode, selects the source clock
; Sets the cycle (1 ms ÷ 2
; Sets the low-level pulse width (200 µs ÷ 2
; Starts the timer
; Stops the timer
; Sets the timer mode
; Sets the PPG mode, TFF1 = 0
; Starts the timer
I/O port output latch
shared with PPG output
Q
D
Data output
R
Set
Clear
Q
Toggle
Timer F/F1
INTTC1 interrupt request
TC1CR<TC1S> clear
Output
PPG
Page 90
T5CL8
7
/fc ms = 007DH)
7
/fc = 0019H)
7
/fc µs = 007DH)
7
/fc = 0019H)
Port output
enable
PPG pin
Function output

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cem2100Cem2100/98

Table of Contents