Download Print this page

Siemens SAB 80515 Series User Manual page 94

8-bit single-chip microcontroller family

Advertisement

Figure 7-40
Special Function Register CCEN
0C1 H
COCAH3 COCAL3 COCAH2 COCAI2 COCAH1 COCAL1 COCAH0 COCAL0
Compare/capture enable register selects compare or capture function for register CRC, CC1 to
CC3.
Bit
COCAH0
0
0
1
1
COCAH1
0
0
1
1
COCAH2
0
0
1
1
COCAH3
0
0
1
1
7.5.2.3 Using Interrupts in Combination with the Compare Function
The compare service of registers CRC, CC1, CC2 and CC3 is assigned to alternate output functions
at port pins P1.0 to P1.3. Another option of these pins is that they can be used as external interrupt
inputs. However, when using the port lines as compare outputs then the input line from the port pin
to the interrupt system is disconnected (but the pin's level can still be read under software control).
Thus, a change of the pin's level will not cause a setting of the corresponding interrupt flag. In this
case, the interrupt input is directly connected to the (internal) compare signal thus providing a
compare interrupt.
Semiconductor Group
On-Chip Peripheral Components
Function
COCAL0
Compare/capture mode for CRC register
0
Compare/capture disabled
1
Capture on falling/rising edge at pin
P1.0/INT3/CC0
0
Compare enabled
1
Capture on write operation into register CRCL
COCAL1
Compare/capture mode for CC register 1
0
Compare/capture disabled
1
Capture on rising edge at pin P1.1/INT4/CC1
0
Compare enabled
*
1
Capture on write operation into register CCL1
COCAL2
Compare/capture mode for CC register 2
0
Compare/capture disabled
1
Capture on rising edge at pin P1.2/INT5/CC2
0
Compare enabled
1
Capture on write operation into register CCL2
COCAL3
Compare/capture mode for CC register 3
0
Compare/capture disabled
1
Capture on rising edge at pin P1.3/INT6/CC3
0
Compare enabled
1
Capture on write operation into register CCL3
94
CCEN

Advertisement

loading

This manual is also suitable for:

Sab 80c515Sab 80c535Sab 80535Sab 80515k