C509-L_97 SIEMENS [Siemens Semiconductor Group], C509-L_97 Datasheet - Page 134

no-image

C509-L_97

Manufacturer Part Number
C509-L_97
Description
8-Bit CMOS Microcontroller
Manufacturer
SIEMENS [Siemens Semiconductor Group]
Datasheet
Figure 6-30 gives an example of how to generate eight different rectangular wave forms at port 5
using a pattern table and a time schedule for these patterns. The patterns are moved into port 5
before the corresponding timer count is reached. The (future) timer count at which the pattern shall
appear at the port must be loaded to register CC4. Thus the user can mask each port bit differently
depending on whether he wants the output to be changed or not.
Concurrent compare is enabled by setting bit COCOEN in special function register CC4EN. A ’1’ in
this bit automatically sets compare mode 1 for register CC4, too. A 3-bit field in special function
register CC4EN determines the additional number of output pins at port 5. Port P1.4/CC4/INT2 is
used as a standard output pin in any compare mode for register CC4.
Figure 6-30
Example for a “Concurrent Compare” Waveform at Port 5
Semiconductor Group
Timer Count
Port Pattern
Pattern Table
AA
FF
00
55
H
H
H
H
(8
1000
Bit)
H
Compare
1
2000
CC4H
6-56
H
Port 5 Latch
0
00
H
Register
0
On-Chip Peripheral Components
3000
CC4L
H
0
Schedule Table
4000
H
1000
2000
3000
4000
H
H
H
H
(16 Bit)
MCT01853
P5.7
P5.6
P5.5
P5.4
P5.3
P5.2
P5.1
P5.0
1997-10-01
C509-L

Related parts for C509-L_97