參數(shù)資料
型號: AN1816
廠商: 飛思卡爾半導體(中國)有限公司
英文描述: USING THE HC912B32 TO IMPLEMENT THE DISTRIBUTED SYSTEMS INTERFACE (DSI) PROTOCOL
中文描述: 使用本HC912B32為實施分布式系統(tǒng)接口(DSI)協(xié)議
文件頁數(shù): 20/24頁
文件大?。?/td> 332K
代理商: AN1816
AN1816
20
Application Note
TBytes[1] = 0xb0; /* Rec./Transmit Interrupts
disabled, Msg size 20Bits (16 + 4CRC) */
TBytes[2] = 0x00; /* Set up ch. 1 ctrl reg to be
the same */
TBytes[3] = 0x01; /* Only ENABLE ch. 0 (0x03 to
enable ch. 0 & 1, 0x02 to enable ch.1 only) */
SpiBurst(4); /* Transmits the info. set up
by TBytes to the DSI/D */
TBytes[0] = 0x05; /* Cmd. to read DSI/D registers
starting address 5 */
SpiBurst(4); /* RBytes[x] will return
the contents of DSI/D registers 5 to 7 */
ChkBytes[1] = 0xb0; /* should match RBytes[1]
contents of DSI0CTRL reg. */
ChkBytes[2] = 0x00; /* should match RBytes[2]
contents of DSI1CTRL reg. */
ChkBytes[3] = 0x01; /* should match RBytes[3]
contents of DSIENABL reg. */
/* Compare RBytes[1 to 3] to ChkBytes[1 to 3] if not equal ErrCnt is incremented &
returned to main */
for (ChkCnt=1; ChkCnt<4; ChkCnt ++)
if ((RBytes[ChkCnt] & 0x00ff) != (ChkBytes[ChkCnt] &
0x00ff)) ErrCnt++;
return (ErrCnt);
}
/* This function is here to allow visibility of failures when using debugger tool */
void FlagError(int Err, int Adr)
{
ErrorCode[Err]=Adr;
}
/* This function checks that the TFNF0 flag is set */
void TFFlag(int Address)
{
TBytes[0] = 0x04;
SpiBurst(2);
if (!(RBytes[1] & 0x02)) {
FlagError(2,Address);
for (;;); /* error - loop until device is reset */
}
}
/* This function waits in a loop until the RFNE0 flag is set */
/* & therefore data has been written into the DSI data registers */
void RFFlag(void)
{
TBytes[0] = 0x04;
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 制造商全稱:Panasonic Semiconductor 功能描述:Car Radio FM/AM tuner IC built-in PLL synthesizer
AN18165B 制造商:PANASONIC 制造商全稱:Panasonic Semiconductor 功能描述:FM-MPX demodulation / FM noise canceller for car radio
AN18202A 制造商:PANASONIC 制造商全稱:Panasonic Semiconductor 功能描述:Audio Video SW for TV with multi-signal input output
AN18207A 制造商:PANASONIC 制造商全稱:Panasonic Semiconductor 功能描述:Tuner IC for home-audio stereo set
AN18208A 制造商:PANASONIC 制造商全稱:Panasonic Semiconductor 功能描述:Tuner IC for home-audio stereo set