I2C master PIC example

时间:2018-05-13 10:51:15
【文件属性】:
文件名称:I2C master PIC example
文件大小:112KB
文件格式:ZIP
更新时间:2018-05-13 10:51:15
I2C master PIC #include #include "C30EVM_LCD.h" // 將LCD函式的原型宣告檔案含入 #include // 將Timer函式的原型宣告檔案含入 #include // 將adc10函式的原型宣告檔案含入 #include "ADCSubs.h" #include "I2CSubs.h" #define FCY 7372800 * 2 // 因為使用頻率為將外部 7.3728 MHz * 8 的模式 , 每一指令週期需 4 個 clock // 所以 FCY = (7.3728 * 8 / 4 ) MHz = 7372800* 2 _FOSC(CSW_FSCM_OFF & XT_PLL8); // XT with 8xPLL oscillator, Failsafe clock off _FWDT(WDT_OFF); // Watchdog timer disabled _FBORPOR(PBOR_OFF & MCLR_EN); // Brown-out reset disabled, MCLR reset enabled _FGS(CODE_PROT_OFF); // Code protect disabled const char My_String1[]="VR1: VR2: " ; // 宣告字串於 Program Memory (因為 const 宣告) char My_String2[]="EE1: EE2: " ; // 宣告字串於 Data Memory unsigned int miliSec ; void Init_ADC(void) ; void Show_ADC(void) ;
【文件预览】:
I2C Master
----ADCSubs.h(125B)
----ADCSubs.c(3KB)
----ADCSubs.o(40KB)
----C30EVM_LCD.o(45KB)
----I2CMaster.mcw(919KB)
----I2CMaster.mptags(10KB)
----I2CMaster.mcs(5KB)
----I2CMsater_Main_Exer.c(4KB)
----I2CMaster.mcp(1KB)
----I2CSubs.h(334B)
----I2CSubs.c(3KB)
----C30EVM_LCD.h(478B)
----C30EVM_LCD.c(9KB)
----I2CMaster.hex(13KB)
----I2CMsater_Main.c(4KB)
----I2CMaster.map(94KB)
----I2CMaster.tagsrc(295B)
----Answer()
--------I2CMsater_Main.c(4KB)
----I2CMaster.cof(194KB)
----I2CMsater_Main.o(43KB)
----I2CSubs.o(43KB)

网友评论