参数资料
型号: C16X
厂商: SIEMENS AG
元件分类: 8位微控制器
英文描述: 8-Bit Microcontroller(8位微控制器)
中文描述: 8位微控制器(8位微控制器)
文件页数: 5/40页
文件大小: 460K
代理商: C16X
Using the
SSC (SPI) Interface in a Multimaster System
Semiconductor Group
5 of 40
AP1632 06.96
Figure 3:
Functions of the LED display in different operating modes
3
SSC demo software
The software is divided into several modules each performing very specific actions
described in the following sections.
3.1
Main program
Because the software is event-controlled (interrupts), the main program consist only of a
system initialization routine call and a loop containing the IDLE instruction. Each time
IDLE is executed the CPU is powered down while all peripherals like timers remain
running. This state is held until an interrupt occurs (e.g. from SSC scan, running LED).
After executing the system initialization all used state variables and on-chip devices like
timers, PEC and SSC are configured. See also chapter 3.2 and 4.1.1.
3.2
System initialization
The system initialization routine
INIT_SYS
is executed only once during start-up and
performs initialization of global variables and loading of the configuration registers of the
used on-chip peripherals. These devices are configured as following:
Port2 to output for driving the LED display
Timer2 to 50 ms, used in master mode to provide all slave boards periodically with SSC
clock
Timer5 to 50 ms, used in slave mode for the running LED pattern (one shift per timer
overflow)
Timer0 as counter for P3.0 to detect pushed key
PEC0 to transfer one word from SSC receive buffer to receive data buffer in memory
PEC2 to transfer 16 words from SSC receive buffer to auto-incremented receive data
buffer location in memory
SSC with fixed baudrate as defined in the C header file SSC.H
SSC to slave move (see also chapter 3.3)
For the code listing of
INIT_SYS.C
see 4.1.2.
OR
START UP
M ASTER M ODE
SLAVE M ODE
P2.0
P2.15
1 2 4 8
Board ID
P2.0
P2.15
P2.0
P2.15
1 2 4 8
Board ID + num ber = ID of rem ote board
LED...
depending on ID/state
on
off
flashing
running
相关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