參數資料
型號: C16X
廠商: SIEMENS AG
元件分類: 8位微控制器
英文描述: 8-Bit Microcontroller(8位微控制器)
中文描述: 8位微控制器(8位微控制器)
文件頁數: 20/40頁
文件大?。?/td> 460K
代理商: C16X
Using the
SSC (SPI) Interface in a Multimaster System
Semiconductor Group
20 of 40
AP1632 06.96
case SINGLE_CLICK: T2IE = 0; /* SSC_SCAN off */
stat ++; /* increase status */
if ( stat > NO_OF_BOARDS - 1 ) /* wrap around */
stat = 0;
STATUS = stat; /* put actual status to global var */
if ( stat == SLAVE ) /* now slave */
{
INIT_SSC ( SLAVE ); /* init SSC to slave */
T5IE = 1; /* and enable running LEDs */
}
else
{
T5IE = 0; /* stop running LEDs */
P2 = BACKGND_PATTERN | ( stat << STATUS_SHIFT );
/* and show actual status on LEDs */
if ( stat == MASTER ) /* was slave */
{
_putbit ( 1, DP3, 8 ); /* switch MRST to output */
TX_SSC ( MASTER_REQ, BOARD_ID, ALL );
/* send master req */
}
T2IE = 1; /* switch SSC_SCAN on */
}
break;
case DOUBLE_CLICK: if ( stat == SLAVE ) /* status eq slave */
DIR = ~DIR; /* toggle direction of running LEDs */
else
{
board = stat + BOARD_ID; /* calc # of remote board */
if ( board > NO_OF_BOARDS - 1 )
board -= NO_OF_BOARDS;
TX_SSC ( DIR_CHG, BOARD_ID, board );
/* and send command ... */
/* to remote board to toggle running LED direction */
}
break;
}
}
it SCAN (void)
int cnt = 0, status = 0; /* local variables, word type */
/* cnt = # of key scans */
/* status = key input value */
T4IR = 0; /* clear request flag of Timer4 */
T4IE = 0; /* and inhibit INT of Timer4 */
T4 = T_2 / 0.0256; /* [T4] = key scanning time */
T4CON = 0x00C6; /* count down, fc=fcpu/512, start timer */
while ( ~T4IR ) /* while Timer4 not expired */
{
status += _getbit ( P3, 0 ); /* accumulate key values */
cnt ++; /* and count loop cycles */
}
T4CON = 0x0000; /* stop Timer4 */
if ( (cnt - status) < status ) /* key pressed for more than 50% of time */
相關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