參數(shù)資料
型號(hào): C16X
廠商: SIEMENS AG
元件分類: 8位微控制器
英文描述: 8-Bit Microcontroller(8位微控制器)
中文描述: 8位微控制器(8位微控制器)
文件頁(yè)數(shù): 26/40頁(yè)
文件大?。?/td> 460K
代理商: C16X
Using the
SSC (SPI) Interface in a Multimaster System
Semiconductor Group
26 of 40
AP1632 06.96
4.1.8 SSC transmit routine -
TX_SSC.C
*****************************************************************************
* program : tx_ssc.c *
* name : Andreas Hettmann Siemens, Cupertino/CA *
* date : 5'96 *
* function : SSC TX routines *
*****************************************************************************/
include <reg167.h> /* register definitions */
include "ssc.h" /* int # definitions */
xtern unsigned int TX_BUFFER [1 + TRANSFER_CNT]; /* global word array */
oid TX_SSC (unsigned int, unsigned int, unsigned int); /* prototype def */
pragma global /* make tx_ssc useable for external C modules */
oid TX_SSC ( cmd, src, dest )
nsigned int cmd, src, dest; /* local variables, word type */
/* cmd = command to be transmitted */
/* dest = address of destination board */
if ( cmd == DIR_CHG ) /* command for remote board to toggle */
/* direction of running LEDs */
{
SRCP1 = (int) & TX_BUFFER [1];
/* PEC1 source is 1st word of transmit buffer array */
DSTP1 = (int) & SSCTB; /* PEC1 destination is SSC transmit buffer reg */
PECC1 = 0x400 + TRANSFER_CNT;
/* increment source address, transfer defined # of words */
SSCTIC = 0x79; /* SSC transmit interrupt now served by PEC1 */
}
SSCTB = TX_BUFFER [0] = HEADER | ( src << 8 ) | ( dest << 3 ) | cmd;
/* build transmit word with header, address and command */
/* and write it into SSC transmit register. */
/* In master mode the transmission starts instantly, in */
/* slave mode the transmission starts when the remote */
/* master is transmitting */
}
相關(guān)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
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
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