
如何正确的使用PIC单片机内部的IIC通信-#include
#define uchar unsigned char
#define uint unsigned int
#define add 0xaa
__CONFIG(0x3B31);
const uchar ee_data[]={1,2,3,4,5,6};
uchar read_data[6];
const uchar table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,
0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71};

PIC单片机ADC的编程设计-#include
__CONFIG(0X1F71);
#define uchar unsigned char
#define uint unsigned int
const uchar Tab[]=
{0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};
const uchar Tab1[]=
{0xbf,0x86,0xdb,0xcf,0xe6,0xed,0xfd,0x87,0xff,0xef};//带小数点的代码

PIC单片机定时器1的实际应用-#define uint unsigned int
__CONFIG(0x3B31);
void init();
uint intnum;
void main()
{
init();
while(1)
{
/*if(intnum==20)
{
intnum=0;
RD0=!RD0;
}*/
}

PIC单片机对数字温度传感器的控制设计-#define uchar unsigned char
#define uint unsigned int
#define DQ RC1
#define DQ_HIGH() TRISC1=1
#define DQ_LOW() TRISC1=0;DQ=0
__CONFIG(0x3B31);
const uchar table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,
0x07,0x7f,0x6f};

sprintf((char*)d,打印日期:%d-%02d-%02d%02d:%02d:%02d,(int)SystemTime.year,(int)SystemTime.month,(int)Sys