參數(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ù): 17/24頁(yè)
文件大?。?/td> 332K
代理商: AN1816
AN1816
17
Appendix 1 - Source Code
Appendix 1 - Source Code
/**********************************************************************************
FILE : B32DSI.h
Header file referenced in program InitB32DSI.c to define the register addresses of the
COP, PWM and SPI
***********************************************************************************/
/* Define COP register */
#define COPBASE (volatile char *const)(0x16)
#define COPCTL (*(COPBASE+0))
/* Define PORTA for general purpose I/O */
#define PTABASE (volatile char *const) (0x00)
#define PORTA (*(PTABASE+0))
#define DDRA (*(PTABASE+2))
/* Define PWM registers */
#define PWMBASE (volatile char *const)(0x40)
#define PWCLK (*(PWMBASE+0))
#define PWPOL (*(PWMBASE+1))
#define PWEN (*(PWMBASE+2))
#define PWRES (*(PWMBASE+3))
#define PWPER0 (*(PWMBASE+0xc))
#define PWDTY0 (*(PWMBASE+0x10))
#define PWCTL (*(PWMBASE+0x14))
#define PORTPP (*(PWMBASE+0x16))
#define DDRP (*(PWMBASE+0x17))
/* Define SPI Registers */
#define SPIBASE (volatile char *const)(0xd0)
#define SP0CR1 (*(SPIBASE+0))
#define SP0CR2 (*(SPIBASE+1))
#define SP0BR (*(SPIBASE+2))
#define SP0SR (*(SPIBASE+3))
#define SP0DR (*(SPIBASE+5))
#define PORTS (*(SPIBASE+6))
#define DDRS (*(SPIBASE+7))
#define PURDS (*(SPIBASE+0xb))
/**********************************************************************************
FILE : InitB32DSI.c
C code to be programmed into the FLASH of the HC912B32 which initialises the PWM and
SPI of the HC912B32 then sets up the DSI registers on the MC68HC55 SPI Peripheral
I.C. before programming the address into 15 programmable slave nodes
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