repo_id
stringclasses 1
value | file_path
stringlengths 55
93
| content
stringlengths 18
151
| __index_level_0__
int64 0
0
|
---|---|---|---|
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Sleep_Wakeup.c | PORTBbits.PB2 = 1; // 从Standby模式唤醒后设置PB2输出高电平 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Sleep_Wakeup.c | INTFbits.PBIF = 0; // 清除PBIF | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Special_IO_Function.c | #include <ny8.h> // 包含NY8A051F微控制器的头文件 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Special_IO_Function.c | #include "ny8_constant.h" // 包含NY8A051F的宏定义 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Special_IO_Function.c | #define UPDATE_REG(x) __asm__(\"MOVR _\" #x \",F\") // 更新寄存器宏定义 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Special_IO_Function.c | #define C_PWM_DUTY_25 0x40 // PWM占空比25% | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Special_IO_Function.c | IOSTB = C_PB3_Input | C_PB2_Input | C_PB0_Input; // 设置PB0、PB2和PB3为输入模式,其他为输出模式 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Special_IO_Function.c | PORTB = 0; // 设置PORTB数据寄存器为0x00 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Special_IO_Function.c | PCON = C_WDT_En | C_LVR_En; // 启用WDT和LVR | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Special_IO_Function.c | PORTBbits.PB1 = 1; // 设置PB[1]=1 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Special_IO_Function.c | IRCR = C_IR_En; // 启用红外载波,时钟源为内部4MHz,红外频率选择为41.666KHz,当PB[1]=1时生成红外信号 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Special_IO_Function.c | BZ1CR = C_BZ1_En | C_BZ1_TMR1B2; // 启用蜂鸣器1,蜂鸣器1的时钟源为Timer1的位2 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Special_IO_Function.c | TMR1 = 0xFF; // 将0xFF移动到TMR1(初始Timer1寄存器) | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Special_IO_Function.c | PWM1DUTY = C_PWM_DUTY_25; // PWM1占空比设置为25% | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Special_IO_Function.c | T1CR1 = C_PWM1_En | C_TMR1_Reload | C_TMR1_En; // PWM1输出将出现在PB6,PWM1输出为高电平有效,从TMR1重新加载,非停止模式 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Special_IO_Function.c | T1CR2 = C_TMR1_ClkSrc_Inst | C_PS1_Div2; // 启用Prescaler1,Prescaler1分频率为1:2,Timer1时钟源为指令时钟 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Special_IO_Function.c | while(1) // 主循环 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Special_IO_Function.c | CLRWDT(); // 清除看门狗定时器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | #include <ny8.h> // 包含NY8A051F微控制器的头文件 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | #include "ny8_constant.h" // 包含NY8A051F的宏定义 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | #define C_Clock 0xAA; // 用于生成时钟信号的数据 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | CLRWDT(); // 清除看门狗定时器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | while (!(SPCR & 0x80)); // 轮询SPI标志位 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | IOSTC = C_PC_Output; // 设置所有PORTC为输出模式 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | IOSTB = C_PB_Output; // 设置所有PORTB为输出模式 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | IOSTA = C_PA_Output; // 设置所有PORTA为输出模式 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | PORTC = (unsigned char)~(C_PC_Data); // PORTC数据缓冲器=0x00(PC1~PC0输出低电平) | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | PORTB = (unsigned char)~(C_PB_Data); // PORTB数据缓冲器=0x00(PB7~PB0输出低电平) | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | PORTA = (unsigned char)~(C_PA_Data); // PORTA数据缓冲器=0x00(PA7~PA0输出低电平) | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | IOSTB = C_PB5_Input | C_PB0_Input; // 设置PB5和PB0为输入模式 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | ABPLCON = C_PB0_PLB; // 设置PB0为下拉电阻,确保在没有外部上拉时,PB0保持低电平 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | SPCR = C_SPI_CLK_DIV2 | C_SCK_High; // SCK为高电平基准,数据在SCK上升沿捕获,SPI时钟=系统时钟/2 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | SIMCR = C_SPI_En | C_Master_En; // 选择串行接口模式,SPI使能,主模式 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | PORTBbits.PB7 = 1; // 设置PB7 = CS高电平 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | DISI(); // 全局禁用中断 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | if (PORTB & 0x01) // 如果PB0 = 1 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | PORTBbits.PB7 = 0; // CS低电平 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | SIMDR = 0x55; // 将数据0x55加载到串行接口模式数据寄存器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | F_Wait_Loop(); // 等待循环 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | PORTBbits.PB7 = 1; // CS高电平 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | PORTBbits.PB7 = 0; // CS低电平 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | SIMDR = 0xAA; // 将数据0xAA加载到串行接口模式数据寄存器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | PORTBbits.PB7 = 1; // CS高电平 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | PORTBbits.PB7 = 0; // CS低电平 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | SIMDR = 0x33; // 将数据0x33加载到串行接口模式数据寄存器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | PORTBbits.PB7 = 1; // CS高电平 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | PORTBbits.PB7 = 0; // CS低电平 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | SIMDR = 0xCC; // 将数据0xCC加载到串行接口模式数据寄存器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | PORTBbits.PB7 = 1; // CS高电平 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | while(1) // 主循环 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | CLRWDT(); // 清除看门狗定时器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | PORTBbits.PB7 = 0; // CS低电平 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | SIMDR = C_Clock; // 生成8个时钟用于读取状态寄存器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | F_Wait_Loop(); // 等待循环 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | PORTBbits.PB7 = 1; // CS高电平 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Master.c | PORTA = SIMDR; // 读取接收到的数据 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | #include <ny8.h> // 包含NY8A051F微控制器的头文件 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | #include "ny8_constant.h" // 包含NY8A051F的宏定义 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | #define C_Clock 0xAA; // 用于生成时钟信号的数据 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | CLRWDT(); // 清除看门狗定时器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | while (!(SPCR & 0x80)); // 轮询SPI标志位 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | IOSTC = C_PC_Output; // 设置所有PORTC为输出模式 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | IOSTB = C_PB_Output; // 设置所有PORTB为输出模式 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | IOSTA = C_PA_Output; // 设置所有PORTA为输出模式 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | PORTC = (unsigned char)~(C_PC_Data); // PORTC数据缓冲器=0x00(PC1~PC0输出低电平) | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | PORTB = (unsigned char)~(C_PB_Data); // PORTB数据缓冲器=0x00(PB7~PB0输出低电平) | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | PORTA = (unsigned char)~(C_PA_Data); // PORTA数据缓冲器=0x00(PA7~PA0输出低电平) | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | IOSTB = C_PB6_Input | C_PB0_Input; // 设置PB6和PB0为输入模式 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | ABPLCON = C_PB0_PLB; // 设置PB0为下拉电阻,确保在没有外部上拉时,PB0保持低电平 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | SPCR = C_SPI_CLK_DIV2 | C_SCK_High; // SCK为高电平基准,数据在SCK上升沿捕获,SPI时钟=系统时钟/2 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | SIMCR = C_SPI_En | C_Slave_En; // 选择串行接口模式,SPI使能,从模式 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | DISI(); // 全局禁用中断 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | if (PORTB & 0x01) // 如果PB0 = 1 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | SIMDR = 0x55; // 将数据0x55加载到串行接口模式数据寄存器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | F_Wait_Loop(); // 等待循环 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | SIMDR = 0xAA; // 将数据0xAA加载到串行接口模式数据寄存器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | F_Wait_Loop(); // 等待循环 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | SIMDR = 0x33; // 将数据0x33加载到串行接口模式数据寄存器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | F_Wait_Loop(); // 等待循环 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | SIMDR = 0xCC; // 将数据0xCC加载到串行接口模式数据寄存器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | F_Wait_Loop(); // 等待循环 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | while(1) // 主循环 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | CLRWDT(); // 清除看门狗定时器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\SPI_Slave.c | PORTA = SIMDR; // 读取接收到的数据并显示在PORTA | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Timer_Interrupt_WDT_Interrupt.c | #include <ny8.h> // 包含NY8A051F微控制器的头文件 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Timer_Interrupt_WDT_Interrupt.c | #include "ny8_constant.h" // 包含NY8A051F的宏定义 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Timer_Interrupt_WDT_Interrupt.c | #define UPDATE_REG(x) __asm__(\"MOVR _\" #x \",F\") // 更新寄存器宏定义 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Timer_Interrupt_WDT_Interrupt.c | if(INTFbits.T1IF) // 如果Timer1下溢中断标志位被设置 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Timer_Interrupt_WDT_Interrupt.c | PORTB ^= (1 << 1); // PB1切换输出 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Timer_Interrupt_WDT_Interrupt.c | INTF = (unsigned char)~(C_INT_TMR1); // 清除T1IF标志位 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Timer_Interrupt_WDT_Interrupt.c | if(INTFbits.T0IF) // 如果Timer0溢出中断标志位被设置 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Timer_Interrupt_WDT_Interrupt.c | PORTB ^= 1; // PB0切换输出 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Timer_Interrupt_WDT_Interrupt.c | INTF = (unsigned char)~(C_INT_TMR0); // 清除T0IF标志位 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Timer_Interrupt_WDT_Interrupt.c | if(INTFbits.WDTIF) // 如果WDT超时中断标志位被设置 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Timer_Interrupt_WDT_Interrupt.c | PORTB ^= (1 << 2); // PB2切换输出 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Timer_Interrupt_WDT_Interrupt.c | INTF = (unsigned char)~(C_INT_WDT); // 清除WDTIF标志位 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Timer_Interrupt_WDT_Interrupt.c | unsigned char R_shift_regl = 0xFF; // 初始化寄存器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Timer_Interrupt_WDT_Interrupt.c | IOSTB = C_PB5_Input | C_PB4_Input | C_PB3_Input; // 设置PB0和PB1为输入模式,其他为输出模式 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Timer_Interrupt_WDT_Interrupt.c | PORTB = 0x07; // 设置PB0、PB1和PB2为高电平 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Timer_Interrupt_WDT_Interrupt.c | DISI(); // 全局禁用中断 | 0 |