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 Interrupt.c | <comment>包含NY8系列的头文件<code>#include <ny8.h> | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt.c | <comment>包含常量定义<code>#include "ny8_constant.h" | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt.c | <comment>高8位ADC数据存储变量<code>unsigned char R_ADC_DATA_HB; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt.c | <comment>低4位ADC数据存储变量<code>unsigned char R_ADC_DATA_LB; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt.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 Interrupt.c | <comment>ADC中断服务例程<code>void isr(void) __interrupt(0) | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt.c | <comment>清除ADC中断标志位<code>ADRbits.ADIF = 0; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt.c | <comment>存储ADC数据的高8位<code>R_ADC_DATA_HB = ADD; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt.c | <comment>存储ADC数据的低4位<code>R_ADC_DATA_LB = 0x0F & ADR; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt.c | <comment>开始下一次ADC转换<code>ADMDbits.START = 1; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt.c | <comment>初始化RAM<code>R_ADC_DATA_HB = R_ADC_DATA_LB = 0x00; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt.c | <comment>设置PORTA为输入引脚<code>IOSTA = C_PA_Input; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt.c | <comment>填充PORTA数据缓冲区<code>PORTA = 0xFF; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt.c | <comment>禁用所有中断使能位<code>INTE = 0x00; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt.c | <comment>参考高电压由内部VDD提供<code>ADVREFH = C_Vrefh_VDD; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt.c | <comment>ADCCLK是SYSCLK除以1<code>ADR = C_Ckl_Div1; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt.c | <comment>启用ADC电源,启用全局ADC输入通道,选择AIN1(PA1)作为ADC模拟输入<code>ADMD = C_ADC_En | C_ADC_CH_En | C_ADC_PA1; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt.c | <comment>设置AIN1(PA1)为纯ADC输入以减少功耗<code>PACON = C_PA1_AIN1; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt.c | <comment>启用ADC中断位<code>ADRbits.ADIE = 1; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt.c | <comment>清除ADC中断标志位<code>ADRbits.ADIF = 0; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt.c | <comment>延迟1.12ms等待ADC稳定<code>Delay(50); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt.c | <comment>开始ADC转换<code>ADMDbits.START = 1; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt.c | <comment>启用所有未屏蔽中断<code>ENI(); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt.c | <comment>简单的循环延迟<code>for (i = 1; i <= count; i++); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>包含NY8A051F的头文件<code>#include <ny8.h> | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>包含常量定义<code>#include "ny8_constant.h" | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>存储ADC转换结果的高字节<code>unsigned char R_ADC_DATA_HB; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>存储ADC转换结果的低字节<code>unsigned char R_ADC_DATA_LB; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>自动校准模式寄存器<code>unsigned char R_ADJMD; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>采样计数器<code>unsigned char R_SMPCNT; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>消抖计数器<code>unsigned char R_DBS; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>累积器高字节<code>unsigned char R_ACCUM_HB; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>累积器低字节<code>unsigned char R_ACCUM_LB; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>标志寄存器<code>unsigned char R_FLAG; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>采样次数<code>#define C_SMPCNT 2 | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>消抖次数<code>#define C_DBS 3 | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>ADC模式设置<code>#define C_ADMD (C_ADC_En | C_ADC_CH_Dis | C_ADC_PA2) | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>设置PortA为输入端口<code>IOSTA = C_PA_Input; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>PortA数据寄存器设置为全1<code>PORTA = 0xFF; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>启用ADC电源,禁用全局ADC输入通道,选择VSS作为ADC输入<code>ADMD = C_ADC_En | C_ADC_CH_Dis | C_ADC_VSS; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>启用模拟偏置<code>ANAEN = C_CMPEN; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>ADC参考高电压由内部VDD提供<code>ADVREFH = C_Vrefh_VDD; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>ADC时钟=Fcpu/1,清除ADIF,禁用ADC中断<code>ADR = C_ADC_CLK_Div1; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>采样脉冲宽度=8个ADC时钟周期,ADC选择12位转换<code>ADCR = C_Sample_8CLK | C_12BIT; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>启用全局ADC通道<code>ADMDbits.GCHS = 1; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>清除ADC中断标志位<code>ADRbits.ADIF = 0; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>启用ADC中断位<code>ADRbits.ADIE = 1; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>延时1.12ms(指令时钟=4MHz/4T)等待ADC稳定<code>delay(50); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>开始ADC转换会话<code>ADMDbits.START = 1; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>启用全局中断<code>ENI(); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>主循环<code>while(1) | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>清除看门狗定时器<code>CLRWDT(); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>清除ADC中断标志位<code>ADRbits.ADIF = 0; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>RAM "R_AIN1_DATA_HB" 存储AIN1的ADC数据高12位<code>R_ADC_DATA_HB = ADD; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>RAM "R_AIN1_DATA_LB" 存储AIN1的ADC数据低4位<code>R_ADC_DATA_LB = 0x0F & ADR; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>启用ADC电源,禁用全局ADC输入通道,选择PA2作为ADC输入<code>ADMD = C_ADMD; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>启用ADC电源,禁用全局ADC输入通道,选择PA2作为ADC输入<code>ADMD = C_ADMD; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Auto Calibration.c | <comment>开始ADC转换会话<code>ADMDbits.START = 1; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.c | <comment>包含NY8A051F的头文件<code>#include <ny8.h> | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.c | <comment>包含常量定义<code>#include "ny8_constant.h" | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.c | <comment>存储AIN2的ADC数据高字节<code>unsigned char R_AIN2_DATA_HB; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.c | <comment>存储AIN2的ADC数据低字节<code>unsigned char R_AIN2_DATA_LB; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.c | <comment>WDTIF=INTF[6]=0 => Clear WDT interrupt flag<code>INTF = 0x00; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.c | <comment>初始化ADC数据变量<code>R_AIN2_DATA_HB = R_AIN2_DATA_LB = 0x00; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.c | <comment>设置PORTC为输出<code>IOSTC = C_PC_Output; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.c | <comment>设置PORTB为输出<code>IOSTB = C_PB_Output; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.c | <comment>设置PA2为输入<code>IOSTA = C_PA2_Input; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.c | <comment>PortC数据寄存器设置为0x00<code>PORTC = 0x00; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.c | <comment>PortB数据寄存器设置为0x00<code>PORTB = 0x00; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.c | <comment>PortA数据寄存器设置为0xFF<code>PORTA = 0x00; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.c | <comment>禁用中断<code>INTE = 0x00; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.c | <comment>启用WDT<code>PCONbits.WDTEN = 1; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.c | <comment>启用ADC电源,禁用全局ADC输入通道,选择PA2作为ADC输入<code>ADMD = C_ADC_En | C_ADC_CH_Dis | C_ADC_PA2; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.c | <comment>ADC参考高电压由内部2V提供<code>ADVREFH = C_Vrefh_2V; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.c | <comment>ADC时钟=Fcpu/1,清除ADIF,禁用ADC中断<code>ADR = C_ADC_CLK_Div1; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.c | <comment>采样脉冲宽度=8个ADC时钟周期,ADC选择12位转换<code>ADCR = C_Sample_8CLK | C_12BIT; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.c | <comment>PS0WDT=t0md[3]=0 => PS0到T0 => PS0=1:1到WDT,Finst作为源<code>T0MD = C_PS0_TMR0; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.c | <comment>启用WDT超时中断<code>INTE = C_INT_WDT; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.c | <comment>启用全局中断<code>ENI(); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.c | <comment>主循环<code>while(1) | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.c | <comment>启用全局ADC通道<code>ADMDbits.GCHS = 1; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.c | <comment>开始一个ADC转换会话<code>ADMDbits.START = 1; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.c | <comment>RAM "R_AIN1_DATA_HB" 存储AIN1的ADC数据高12位<code>R_AIN2_DATA_HB = ADD; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.c | <comment>RAM "R_AIN1_DATA_LB" 存储AIN1的ADC数据低4位<code>R_AIN2_DATA_LB = 0x0F & ADR; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.c | <comment>禁用全局ADC通道<code>ADMDbits.GCHS = 0; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Interrupt_Sleep Wakeup.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>包含NY8A051F的头文件<code>#include <ny8.h> | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling.c | <comment>包含常量定义<code>#include "ny8_constant.h" | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling.c | <comment>存储AIN0的ADC数据高字节<code>unsigned char R_AIN0_DATA_HB; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling.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.c | <comment>存储内部1/4*VDD的ADC数据高字节<code>unsigned char R_QuaVDD_DATA_HB; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling.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.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.c | <comment>等待转换结束函数声明<code>void Wait(void); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling.c | <comment>延时函数声明<code>void Delay(int); | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling.c | <comment>设置PORTA为输入端口<code>IOSTA = C_PA_Input; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling.c | <comment>填充PORTA数据缓冲区<code>PORTA = 0xFF; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling.c | <comment>禁用所有中断使能位<code>INTE = 0x00; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling.c | <comment>参考高电压由内部VDD提供<code>ADVREFH = C_Vrefh_VDD; | 0 |
C:\Users\IDEA\Desktop\workplace\LiuCode | C:\Users\IDEA\Desktop\workplace\LiuCode\Liu\ADC Polling.c | <comment>ADCCLK是SYSCLK除以1<code>ADR = C_Ckl_Div1; | 0 |
End of preview. Expand
in Dataset Viewer.
README.md exists but content is empty.
- Downloads last month
- 47