參數(shù)資料
型號(hào): AN1816
廠商: 飛思卡爾半導(dǎo)體(中國(guó))有限公司
英文描述: USING THE HC912B32 TO IMPLEMENT THE DISTRIBUTED SYSTEMS INTERFACE (DSI) PROTOCOL
中文描述: 使用本HC912B32為實(shí)施分布式系統(tǒng)接口(DSI)協(xié)議
文件頁(yè)數(shù): 19/24頁(yè)
文件大?。?/td> 332K
代理商: AN1816
AN1816
19
Appendix 1 - Source Code
SP0CR1 = 0x10; /* Enable master mode and SSOE=0, therefore SS
is GP I/O */
SP0CR1 = 0x50; /* Enable SPI system now */
}
/* This function is called by the SpiBurst function. It writes information into the
SPI data register and when the SPI transfer complete flag is set it sends back the
information received by the SPI */
short TransmitReceive(short SendByte)
{
int dummy=0;
short result;
SP0DR = SendByte;
while ((SP0SR & 0x80) == 0) /* Wait until SPI transfer
complete flag is set */
{
dummy++;
}
result = SP0DR;
return (result);
}
/* This function sets up the SPI Burst transfer routine. It enables the MC68HC55 SPI
Peripheral by driving CS low and then transfers the required no. of bytes of data to
complete the burst transfer. It finishes by driving CS high and disabling the MC68HC55
SPI Peripheral */
void SpiBurst(int ByteCount)
{
int count;
/* CS to go LOW */
PORTS = 0x00;
/* Transmit bytes */
for (count=0; count<ByteCount; count++)
{
RBytes[count] = TransmitReceive(TBytes[count]);
}
/* CS to go HIGH */
PORTS = 0x80;
}
/* This function sets up the DSI registers */
int SetupDSI(void)
{
int ErrCnt=0;
int ChkCnt;
/* Set up DSI/D Registers */
TBytes[0] = 0x85; /* Send 85 (write cmd to reg.
addr. 5) */
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.
相關(guān)PDF資料
PDF描述
AN2104 Using Background Debug Mode for the M68HC12 Family
AN2154FAP TV/Video Signal Processor
AN22011A For Video·Audio - MD
AN2241 Video Camera Circuit
AN2250S Video Camera Circuit
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
AN18164B 制造商:PANASONIC 制造商全稱(chēng):Panasonic Semiconductor 功能描述:Car Radio FM/AM tuner IC built-in PLL synthesizer
AN18165B 制造商:PANASONIC 制造商全稱(chēng):Panasonic Semiconductor 功能描述:FM-MPX demodulation / FM noise canceller for car radio
AN18202A 制造商:PANASONIC 制造商全稱(chēng):Panasonic Semiconductor 功能描述:Audio Video SW for TV with multi-signal input output
AN18207A 制造商:PANASONIC 制造商全稱(chēng):Panasonic Semiconductor 功能描述:Tuner IC for home-audio stereo set
AN18208A 制造商:PANASONIC 制造商全稱(chēng):Panasonic Semiconductor 功能描述:Tuner IC for home-audio stereo set