repo_id
stringclasses
1 value
file_path
stringlengths
49
87
content
stringlengths
25
158
__index_level_0__
int64
0
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\EEPROM_Continuous Write.c
<comment>从EEPROM地址读取EEPROM数据<code>read_tmp = eeprom_read(addr);
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\EEPROM_Continuous Write.c
<comment>验证从EEPROM读取的数据<code>if(addr != read_tmp)
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\EEPROM_Continuous Write.c
<comment>EEPROM数据不正确<code>PORTB = 0x03;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\EEPROM_Continuous Write.c
<comment>死循环<code>CLRWDT();
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\EEPROM_Continuous Write.c
<comment>EEPROM数据正确<code>PORTB = 0x05;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\EEPROM_Write One Byte.c
<comment>启用WDT、LVR、LVD功能<code>PCON = 0xA8;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\EEPROM_Write One Byte.c
<comment>设置LVDS[3:0]=0011b => LVD=2.4V<code>PCON1 = 0x0C;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\EEPROM_Write One Byte.c
<comment>关闭全局中断(GIE=PCON1[7]=0)<code>DISI();
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\EEPROM_Write One Byte.c
<comment>当PCON1[6]=1 => VDD>2.4V,允许写入EEPROM<code>while(!(PCON1 & 0x40))
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\EEPROM_Write One Byte.c
<comment>PBs设置为输出<code>IOSTB = 0x00;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\EEPROM_Write One Byte.c
<comment>PBs输出低电平<code>PORTB = 0x00;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\EEPROM_Write One Byte.c
<comment>解锁EEPROM写保护<code>eeprom_protect_unlock();
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\EEPROM_Write One Byte.c
<comment>设置EEW超时为8ms,并将数据写入EEPROM<code>eeprom_write_timeout(addr, data, EETO_8ms_or_2ms);
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\EEPROM_Write One Byte.c
<comment>主循环<code>while(1)
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\EEPROM_Write One Byte.c
<comment>从EEPROM地址读取数据<code>read_tmp = eeprom_read(addr);
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\EEPROM_Write One Byte.c
<comment>验证从EEPROM读取的数据<code>if(addr != read_tmp)
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\EEPROM_Write One Byte.c
<comment>如果EEPROM数据不正确<code>PORTB = 0x03;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\EEPROM_Write One Byte.c
<comment>进入死循环<code>CLRWDT();
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\EEPROM_Write One Byte.c
<comment>如果EEPROM数据正确<code>PORTB = 0x05;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\External Interrupt_Level Change Interrupt.c
<comment>PB5 翻转<code>PORTBbits.PB5 ^=1;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\External Interrupt_Level Change Interrupt.c
<comment>清除外部中断标志位<code>INTF= (unsigned char)~(C_INT_EXT);
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\External Interrupt_Level Change Interrupt.c
<comment>PB4 翻转<code>PORTBbits.PB4 ^=1;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\External Interrupt_Level Change Interrupt.c
<comment>清除PortB输入变化中断标志位<code>INTF= (unsigned char)~(C_INT_PBKey);
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\External Interrupt_Level Change Interrupt.c
<comment>启用PB0和PB1的上拉电阻<code>BPHCON = (unsigned char)~(C_PB1_PHB | C_PB0_PHB);
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\External Interrupt_Level Change Interrupt.c
<comment>启用PB1的输入变化唤醒功能<code>BWUCON = C_PB1_Wakeup;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\External Interrupt_Level Change Interrupt.c
<comment>设置PB0和PB1为输入模式,其他为输出模式<code>IOSTB = C_PB1_Input | C_PB0_Input;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\External Interrupt_Level Change Interrupt.c
<comment>PORTB数据缓冲区设置为0(输出低电平)<code>PORTB = 0;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\External Interrupt_Level Change Interrupt.c
<comment>当PB0上升沿时设置外部中断<code>T0MD = C_EXINT_Edge ;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\External Interrupt_Level Change Interrupt.c
<comment>PB0作为外部中断输入引脚<code>PCON = C_WDT_En | C_ExtINT_En | C_LVR_En;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\External Interrupt_Level Change Interrupt.c
<comment>启用外部中断和PortB输入变化中断<code>INTE = C_INT_EXT | C_INT_PBKey;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\External Interrupt_Level Change Interrupt.c
<comment>清除所有中断标志位<code>INTF = 0;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\External Interrupt_Level Change Interrupt.c
<comment>启用所有未屏蔽中断<code>ENI();
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO.c
<comment>设置PB0为开漏输出模式<code>BODCON = C_PB0_OD;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO.c
<comment>启用PB1下拉电阻,其他禁用<code>BPLCON = (unsigned char)~C_PB1_PLB;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO.c
<comment>启用PB4上拉电阻,其他禁用<code>BPHCON = (unsigned char)~C_PB4_PHB;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO.c
<comment>设置PB4和PB1为输入模式,其他设置为输出模式<code>IOSTB = C_PB4_Input | C_PB1_Input;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO.c
<comment>PB2和PB0输出高电平<code>PORTB = 0x05;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO.c
<comment>清除看门狗定时器<code>CLRWDT();
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Direct Input.c
<comment>设置PB4 ~ PB0为输入模式,PB5为输出模式<code>IOSTB = 0xDF;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Direct Input.c
<comment>设置PB0~PB4为上拉模式<code>BPHCON = 0x0;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Direct Input.c
<comment>将PB5设置为高电平<code>PORTB = 0xFF;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Direct Input.c
<comment>获取PB4 ~ PB0键状态<code>KeyStatus = KeyScan() & 0x1F;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Direct Input.c
<comment>检查是否有键被按下<code>if (KeyStatus != 0)
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Direct Input.c
<comment>如果PB0被按下<code>if (KeyStatus & 0x1)
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Direct Input.c
<comment>LED闪烁一次<code>BlinkLED(1);
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Direct Input.c
<comment>如果PB1被按下<code>else if (KeyStatus & 0x2)
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Direct Input.c
<comment>LED闪烁两次<code>BlinkLED(2);
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Direct Input.c
<comment>如果PB2被按下<code>else if (KeyStatus & 0x4)
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Direct Input.c
<comment>LED闪烁三次<code>BlinkLED(3);
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Direct Input.c
<comment>如果PB3被按下<code>else if (KeyStatus & 0x8)
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Direct Input.c
<comment>LED闪烁四次<code>BlinkLED(4);
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Direct Input.c
<comment>如果PB4被按下<code>else if (KeyStatus & 0x10)
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Direct Input.c
<comment>LED闪烁五次<code>BlinkLED(5);
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Direct Input.c
<comment>清除看门狗定时器<code>CLRWDT();
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Direct Input.c
<comment>读取PB端口状态并取反,得到按键状态<code>KeyStatus = ~PORTB;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Direct Input.c
<comment>清除看门狗定时器<code>CLRWDT();
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Direct Input.c
<comment>将PB5设置为低电平,其余为高电平<code>PORTB = 0xDF;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Direct Input.c
<comment>延时<code>delay(15000);
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Direct Input.c
<comment>将PB5设置为高电平<code>PORTB = 0xFF;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Direct Input.c
<comment>延时<code>delay(15000);
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_LED Pattern.c
<comment>定义LED模式,使用const声明在ROM中<code>const char pattern[30]={
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_LED Pattern.c
<comment>设置PortB为输出模式<code>IOSTB = 0;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_LED Pattern.c
<comment>所有LED关闭<code>PORTB=0xFF;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_LED Pattern.c
<comment>根据模式表点亮LED<code>PORTB = pattern[j];
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_LED Pattern.c
<comment>延时<code>delay(15000);
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_LED Pattern.c
<comment>清除看门狗定时器<code>CLRWDT();
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Matrix Input.c
<comment>消抖后的按键状态<code>unsigned char KeyData = 0xff;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Matrix Input.c
<comment>存储扫描的按键结果<code>unsigned char KeyResult = 0;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Matrix Input.c
<comment>按键表<code>static const char KeyTable[9] = {0x09,0x0A,0x0C,0x11,0x12,0x14,0x21,0x22,0x24};
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Matrix Input.c
<comment>扫描按键<code>KeyData = KeyScan();
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Matrix Input.c
<comment>如果有按键被按下<code>if(KeyData != 0xFF)
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Matrix Input.c
<comment>检查按键<code>for(i = 0; i < 9; i++)
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Matrix Input.c
<comment>如果按键匹配<code>if(KeyData == KeyTable[i])
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Matrix Input.c
<comment>空操作,等待<code>NOP();
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Matrix Input.c
<comment>重置按键状态<code>KeyData = 0xff;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Matrix Input.c
<comment>清除看门狗定时器<code>CLRWDT();
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Matrix Input.c
<comment>设置行为输出,列为输入<code>IOSTB = 0x07;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Matrix Input.c
<comment>启用输入上拉<code>BPHCON = 0xF8;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Matrix Input.c
<comment>设置输出低电平<code>PORTB = 0x00;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Matrix Input.c
<comment>等待端口/引脚稳定<code>delay(10);
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Matrix Input.c
<comment>使用位掩码获取行状态,存储数据<code>KeyResult = (PORTB & 0x07);
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Matrix Input.c
<comment>设置列为输入,行为输出<code>IOSTB = 0xF8;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Matrix Input.c
<comment>启用输入上拉<code>BPHCON = 0x07;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Matrix Input.c
<comment>设置输出低电平<code>PORTB = 0x00;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Matrix Input.c
<comment>等待端口/引脚稳定<code>delay(10);
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Matrix Input.c
<comment>使用位掩码获取列状态,存储数据,不改变之前设置的低位<code>KeyResult |= (PORTB & 0xF8);
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Matrix Input.c
<comment>设置高位为1<code>KeyResult |= 0xC0;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\GPIO_Matrix Input.c
<comment>反转位并返回结果<code>return ~KeyResult;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\IIC_Master.c
<comment>清除看门狗定时器<code>CLRWDT();
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\IIC_Master.c
<comment>轮询MCF标志<code>while (!(MSR & 0x80));
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\IIC_Master.c
<comment>设置所有PORTC为输出模式<code>IOSTC = C_PC_Output;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\IIC_Master.c
<comment>设置所有PORTB为输出模式<code>IOSTB = C_PB_Output;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\IIC_Master.c
<comment>设置所有PORTA为输出模式<code>IOSTA = C_PA_Output;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\IIC_Master.c
<comment>PORTC数据缓冲区=0x00(PC1~PC0输出低电平)<code>PORTC = (unsigned char)~(C_PC_Data);
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\IIC_Master.c
<comment>PORTB数据缓冲区=0x00(PB7~PB0输出低电平)<code>PORTB = (unsigned char)~(C_PB_Data);
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\IIC_Master.c
<comment>PORTA数据缓冲区=0x00(PA7~PA0输出低电平)<code>PORTA = (unsigned char)~(C_PA_Data);
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\IIC_Master.c
<comment>启用IIC接口<code>SIMCR = C_IIC_En;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\IIC_Master.c
<comment>清除MIF标志<code>MSR = (unsigned char)~(C_MIF);
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\IIC_Master.c
<comment>选择TX模式<code>MCR = C_IIC_TX;
0
C:\Users\IDEA\Desktop\workplace\LiuCode
C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\IIC_Master.c
<comment>IIC模式频率 = CPU时钟/22<code>MFDR = C_FD_Div22;
0