参数资料
型号: C16X
厂商: SIEMENS AG
元件分类: 8位微控制器
英文描述: 8-Bit Microcontroller(8位微控制器)
中文描述: 8位微控制器(8位微控制器)
文件页数: 11/40页
文件大小: 460K
代理商: C16X
Using the
SSC (SPI) Interface in a Multimaster System
Semiconductor Group
11 of 40
AP1632 06.96
nterrupt service routine
RX_INT
because PEC0 counter has been decremented to 0. If
the command
DIR_CHG
is decoded, the SSC receive interrupt is then directed to PEC2
which will transfer 16 consecutive words from the SSCRB to the
RX_BUFFER
. After that,
RX_INT
is called again (PEC2 counter = 0) and the SSC receive interrupt is redirected to
PEC0 to prepare receiving of the next word.
Depending on the received command, several actions will take place as shown in the
diagram in Fig. 6.
For the code listing of
RX_INT
refer to chapter 4.1.7.
3.6
Running LED light
The running LED light is controlled by the interrupt service routine RUNLIGHT which is
called each time after an Timer5 overflow has occurred, that means, after the delay time
for a LED left or right step is passed. The current LED status is obtained from a global
variable, rotated to the right or to the left depending on the direction variable and written
back to the global variable and to Port2 where the LEDs are connected to. Because
Timer5 is not capable of self reload, the Timer5 control and timer registers have to be
reloaded to feature the appropriate delay time and restart of the timer. For a graphical
description see fig. 7, the C code of the routine RUNLIGHT.C can be found in chapter
4.1.5.
Figure 9:
Timer 5 interrupt service routine for running LED light
m ask
16 bit
reload Tim er5 register
(Tim er5 continues counting)
16 LEDs incl. resistors
1 bit LEFT rotated BITM ASK
1 bit RIGHT rotated BITM ASK
16 bit
m ask
BITM ASK (global variable)
16 bit
BITM ASK
m ask (local variable)
16 bit
BITM ASK
Ti er5 egiter verfow auses
Ti er5 nterrupt > tart fiterrupt
servie outie
T5 Ti er5 egiter)
1
16 i
1
1
1
1
1
1
1
1
1
1
P2 (Port2 register)
16 bit
new BITM ASK
. . .
DIR (global variable)
= 1
= 0
相关PDF资料
PDF描述
C1731 205 UH Inductor Approved for use by GlobeSpan
C1733 ADSL Line Coupling Transformer, IEC60950 Supplementary 250V
C2042 Analog Devices AD20MSP930 CPE Line Transformer Meet requirements of IEC60950 for supplementary insulation, 250V working voltage
C2056 78.03 UH Inductor
C221J11S205DQF Power Rocker Switches
相关代理商/技术参数
参数描述
C17 制造商:ALC 功能描述:ALCO - TOGGLE SWITCH COVERS (COLORED) 制造商:Cooper Crouse-Hinds 功能描述: 制造商:Thomas & Betts 功能描述:
C-17 制造商:ALC 功能描述:ALCO - TOGGLE SWITCH COVERS (COLORED)
C1-7 制造商:Alpha 3 Manufacturing 功能描述:
C-17 300000-003IG 制造商:DigitHead Inc 功能描述:3"RIBBON CABLE ASSEMBLY.STANDARD 50P FEMALE POLARIZED IDC SOCKET
C170 制造商:Yorkville Sound 功能描述:Coliseum Mini Series 8'' Indoor / Outdoor 70V Black Speaker Pair - 100W 制造商:YORKVILLE SOUND 功能描述:IN / OUTDOOR SPEAKER PAIR 8 INCH 100W 8 OHM / 70V BLACK 制造商:Datak Corporation 功能描述:Cable Assembly RS-232 3.048m 28AWG 9 POS D-Sub to 9 POS D-Sub M-F