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\ADC Polling.c | <comment>采样脉冲宽度=8*ADCCLK,ADC转换位=12位<code>ADCR = C_Sample_8clk | C_12BIT; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling.c | <comment>设置AIN0(PA0)到AIN7(PB2)为纯ADC输入以降低功耗<code>PACON = C_PB2_AIN7 | C_PB1_AIN6 | C_PB0_AIN5 | C_PA4_AIN4 | C_PA3_AIN3 | C_PA2_AIN2 | C_PA1_AIN1 | C_PA0_AIN0; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling.c | <comment>设置AIN8(PB3)到AIN10(PB5)为纯ADC输入以降低功耗<code>ADCR |= C_PB5_AIN10 | C_PB4_AIN9 | C_PB3_AIN8 | C_Sample_8clk | C_12BIT; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling.c | <comment>延时1.12ms (SYSCLK=4MHz/4T)等待ADC稳定<code>Delay(50); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling.c | <comment>主循环<code>while (1) | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling.c | <comment>清除看门狗定时器<code>CLRWDT(); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling.c | <comment>启用ADC电源,启用全局ADC输入通道,选择AIN0(PA0)作为ADC模拟输入<code>ADMD = C_ADC_En | C_ADC_CH_En | C_ADC_PA0; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling.c | <comment>开始一个ADC转换会话<code>ADMDbits.START = 1; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling.c | <comment>等待ADC转换完成<code>Wait(); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling.c | <comment>启用ADC电源,启用全局ADC输入通道,选择内部1/4*VDD作为ADC输入<code>ADMD = C_ADC_En | C_ADC_CH_En | C_Quarter_VDD; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling.c | <comment>开始一个ADC转换会话<code>ADMDbits.START = 1; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling.c | <comment>等待ADC转换完成<code>Wait(); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling.c | <comment>等待ADC转换完成<code>while (ADMDbits.EOC == 0) | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling.c | <comment>循环计数<code>for (i = 1; i <= count; i++) | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>包含NY8A051F的头文件<code>#include <ny8.h> | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>包含常量定义<code>#include "ny8_constant.h" | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>存储AIN0的ADC数据<code>unsigned int R_AIN0_DATA; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>存储AIN0的ADC数据低字节<code>unsigned char R_AIN0_DATA_LB; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>存储内部1/4*VDD的ADC数据<code>unsigned int R_QuaVDD_DATA; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>存储内部1/4*VDD的ADC数据低字节<code>unsigned char R_QuaVDD_DATA_LB; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>更新寄存器宏定义<code>#define UPDATE_REG(x) __asm__("MOVR _" #x ",F") | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>AIN0转换函数声明<code>void AIN0_Convert(char); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>内部1/4*VDD转换函数声明<code>void QuaVDD_Convert(char); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>等待转换结束函数声明<code>void Wait(void); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>延时函数声明<code>void Delay(int); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>设置PORTA为输入端口<code>IOSTA = C_PA_Input; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>填充PORTA数据缓冲区<code>PORTA = 0xFF; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>禁用所有中断使能位<code>INTE = 0x00; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>启用ADC电源,禁用全局ADC输入通道,选择PA0作为ADC输入<code>ADMD = C_ADC_En | C_ADC_CH_Dis | C_ADC_PA0; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>参考高电压由内部4V提供<code>ADVREFH = C_Vrefh_4V; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>ADCCLK是SYSCLK除以8<code>ADR = C_Ckl_Div8; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>采样脉冲宽度=1*ADCCLK,ADC转换位=12位<code>ADCR = C_Sample_1clk | C_12BIT; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>设置AIN0(PA0)为纯ADC输入以降低功耗<code>PACON = C_PA0_AIN0; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>延时1.12ms (SYSCLK=4MHz/4T)等待ADC稳定<code>Delay(50); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>主循环<code>while (1) | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>清除看门狗定时器<code>CLRWDT(); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>初始化数据变量<code>R_AIN0_DATA = R_AIN0_DATA_LB = R_QuaVDD_DATA = R_QuaVDD_DATA_LB = 0x00; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>执行8次AIN0 ADC转换<code>AIN0_Convert(8); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>R_AIN0_DATA左移4位<code>R_AIN0_DATA <<= 4; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>只获取低6位<code>R_AIN0_DATA_LB &= 0x7F; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>R_AIN0_DATA + R_AIN0_DATA_LB<code>R_AIN0_DATA += R_AIN0_DATA_LB; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>R_AIN0_DATA除以8<code>R_AIN0_DATA >>= 3; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>执行8次1/4*VDD ADC转换<code>QuaVDD_Convert(8); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>启用ADC电源,启用全局ADC输入通道,选择AIN0(PA0)作为ADC模拟输入<code>ADMD = C_ADC_En | C_ADC_CH_En | C_ADC_PA0; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>开始一个ADC转换会话<code>ADMDbits.START = 1; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>等待ADC转换完成<code>Wait(); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>R_AIN0_DATA_LB累加低4位<code>R_AIN0_DATA_LB += (0x0F & ADR); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>R_AIN0_DATA累加高字节<code>R_AIN0_DATA += ADD; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>启用ADC电源,启用全局ADC输入通道,选择内部1/4*VDD作为ADC输入<code>ADMD = C_ADC_En | C_ADC_CH_En | C_Quarter_VDD; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>开始一个ADC转换会话<code>ADMDbits.START = 1; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>等待ADC转换完成<code>Wait(); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>R_QuaVDD_DATA_LB累加低4位<code>R_QuaVDD_DATA_LB += (0x0F & ADR); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>R_QuaVDD_DATA累加高字节<code>R_QuaVDD_DATA += ADD; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>等待ADC转换完成<code>while (ADMDbits.EOC == 0) | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling_Average.c | <comment>循环计数<code>for (i = 1; i <= count; i++) | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>包含NY8A051F的头文件<code>#include <ny8.h> | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>包含常量定义<code>#include "ny8_constant.h" | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>定时器值<code>#define timer_value 0xFFFF | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>CCP临时变量<code>unsigned char R_ccp_tmp; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>计数器<code>unsigned char count; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>捕获值高字节<code>unsigned char R_capture_H; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>捕获值低字节<code>unsigned char R_capture_L; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>第二个捕获值高字节<code>unsigned char R_capture2_H; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>第二个捕获值低字节<code>unsigned char R_capture2_L; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>更新寄存器宏定义<code>#define UPDATE_REG(x) __asm__("MOVR _" #x ",F") | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>禁用中断<code>DISI(); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>设置PB2为输入引脚<code>IOSTB = C_PB2_Input; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>PortB数据寄存器设置为0xFF<code>PORTB = 0xFF; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>设置PB2为上拉模式<code>BPHCONbits.PHPB2 = 0; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>Timer5设置为重载模式<code>T5CR1 = C_TMR5_Reload; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>Timer4关闭预分频器<code>T4CR2 = C_PS4_Dis; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>TMR4设置为定时器值减去0x00ff<code>TMR4 = timer_value - 0x00ff; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>TMR5设置为定时器值减去0x00ff00的高8位<code>TMR5 = (timer_value - 0x00ff00) >> 8; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>捕获模式,每个下降沿<code>CCPCON = C_CCP_Capt_FallEdge; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>初始化计数器<code>count = 0; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>清除CCP中断标志<code>INTF3 = 0; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>启用CCP中断<code>INTE3 = C_INT_CCP; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>启用中断<code>ENI(); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>主循环<code>while(1) | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>清除看门狗定时器<code>CLRWDT(); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>PB7取反<code>PORTB ^= 0x80; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>如果计数器为0<code>if(count == 0) | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>捕获PWM5的占空比高字节<code>R_capture_H = ~PWM5DUTY; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>捕获PWM4的占空比低字节<code>R_capture_L = ~PWM4DUTY; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>计数器加1<code>count = 1; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>如果计数器不为0<code>else | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>捕获第二个PWM5的占空比高字节<code>R_capture2_H = ~PWM5DUTY; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>捕获第二个PWM4的占空比低字节<code>R_capture2_L = ~PWM4DUTY; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>计数器重置为0<code>count = 0; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Capture.c | <comment>清除CCP中断标志<code>INTF3 = 0x00; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Compare.c | <comment>包含NY8A051F的头文件<code>#include <ny8.h> | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Compare.c | <comment>包含常量定义<code>#include "ny8_constant.h" | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Compare.c | <comment>定时器值<code>#define timer_value 0xFFFF | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Compare.c | <comment>比较值<code>#define compare_value 0x8000 | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Compare.c | <comment>更新寄存器宏定义<code>#define UPDATE_REG(x) __asm__("MOVR _" #x ",F") | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Compare.c | <comment>禁用中断<code>DISI(); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Compare.c | <comment>设置PA1为输入端口<code>IOSTA = C_PA1_Input; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Compare.c | <comment>设置PB0为输出端口<code>IOSTB = C_PB0_Output; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Compare.c | <comment>PortA数据寄存器设置为0x00<code>PORTA = 0x00; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\CCP_Compare.c | <comment>启用WDT和LVR<code>PCON = C_WDT_En | C_LVR_En; | 0 |