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\Timer_Interrupt_WDT_Interrupt.c | PCON1 = C_TMR0_Dis; // 禁用Timer0 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Timer_Interrupt_WDT_Interrupt.c | TMR0 = 0; // 将0x00加载到TMR0(初始Timer0寄存器) | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Timer_Interrupt_WDT_Interrupt.c | T0MD = C_PS0_TMR0 | C_PS0_Div8; // 将Prescaler0分配给Timer0,Prescaler0分频率为1:8,时钟源为指令时钟 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Timer_Interrupt_WDT_Interrupt.c | TMR1 = 0xFF; // 将0xFF加载到TMR1(初始Timer1寄存器) | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Timer_Interrupt_WDT_Interrupt.c | T1CR1 = C_TMR1_Reload | C_TMR1_En; // 启用Timer1,初始值从TMR1重新加载,非停止模式 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Timer_Interrupt_WDT_Interrupt.c | T1CR2 = C_TMR1_ClkSrc_Inst | C_PS1_Div4; // 启用Prescaler1,Prescaler1分频率为1:4,Timer1时钟源为指令时钟 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Timer_Interrupt_WDT_Interrupt.c | INTE = C_INT_WDT | C_INT_TMR1 | C_INT_TMR0; // 启用Timer0、Timer1、WDT溢出中断 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Timer_Interrupt_WDT_Interrupt.c | PCON = C_WDT_En | C_LVR_En; // 启用WDT,启用LVR | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Timer_Interrupt_WDT_Interrupt.c | PCON1 = C_TMR0_En; // 启用Timer0 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Timer_Interrupt_WDT_Interrupt.c | ENI(); // 全局使能所有未屏蔽的中断 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\Timer_Interrupt_WDT_Interrupt.c | while(1); // 主循环 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_RX.c | #include <ny8.h> // 包含NY8A051F微控制器的头文件 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_RX.c | #include "ny8_constant.h" // 包含NY8A051F的宏定义 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_RX.c | CLRWDT(); // 清除看门狗定时器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_RX.c | while (!(INTF3 & 0x04)); // 轮询RX标志位,等待数据接收完成 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_RX.c | PORTA = THR; // 将接收到的数据(THR寄存器的值)输出到PORTA | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_RX.c | IOSTC = C_PC_Output; // 设置所有PORTC为输出模式 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_RX.c | IOSTB = C_PB_Output; // 设置所有PORTB为输出模式 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_RX.c | IOSTA = C_PA_Output; // 设置所有PORTA为输出模式 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_RX.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\UART_RX.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\UART_RX.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\UART_RX.c | IOSTB = C_PB7_Input; // 设置PB7为输入模式 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_RX.c | THR = 0x00; // 初始化发送保持寄存器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_RX.c | SIMCR = C_RX_En; // 启用UART RX引脚 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_RX.c | DLH = 0x00; // 初始化波特率高位寄存器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_RX.c | DLL = 0x1A; // 初始化波特率低位寄存器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_RX.c | LCR = C_WL_8 | C_STOP_1 | C_Parity_En | C_Even_Parity; // 启用奇偶校验,设置为偶校验,停止位=1,字长=8位 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_RX.c | INTF3 = (unsigned char)~(C_INT_RX); // 清除UART RX标志位 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_RX.c | DISI(); // 全局禁用中断 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_RX.c | while(1) // 主循环 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_RX.c | CLRWDT(); // 清除看门狗定时器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_RX.c | F_Wait_RX(); // 等待接收完成 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_TX.c | #include <ny8.h> // 包含NY8A051F微控制器的头文件 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_TX.c | #include "ny8_constant.h" // 包含NY8A051F的宏定义 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_TX.c | CLRWDT(); // 清除看门狗定时器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_TX.c | while (!(INTF3 & 0x08)); // 轮询TX标志位,等待数据发送完成 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_TX.c | IOSTC = C_PC_Output; // 设置所有PORTC为输出模式 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_TX.c | IOSTB = C_PB_Output; // 设置所有PORTB为输出模式 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_TX.c | IOSTA = C_PA_Output; // 设置所有PORTA为输出模式 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_TX.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\UART_TX.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\UART_TX.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\UART_TX.c | THR = 0x00; // 初始化发送保持寄存器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_TX.c | SIMCR = C_TX_En; // 启用UART TX引脚 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_TX.c | DLH = 0x00; // 初始化波特率高位寄存器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_TX.c | DLL = 0x1A; // 初始化波特率低位寄存器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_TX.c | LCR = C_WL_8 | C_STOP_1 | C_Parity_En | C_Even_Parity; // 启用奇偶校验,设置为偶校验,停止位=1,字长=8位 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_TX.c | INTF3 = (unsigned char)~(C_INT_TX); // 清除UART TX标志位 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_TX.c | DISI(); // 全局禁用中断 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_TX.c | THR = 0x55; // 将数据0x55加载到发送保持寄存器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_TX.c | F_Wait_TX(); // 等待发送完成 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_TX.c | THR = 0xAA; // 将数据0xAA加载到发送保持寄存器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_TX.c | F_Wait_TX(); // 等待发送完成 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_TX.c | THR = 0x33; // 将数据0x33加载到发送保持寄存器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_TX.c | F_Wait_TX(); // 等待发送完成 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_TX.c | THR = 0xCC; // 将数据0xCC加载到发送保持寄存器 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_TX.c | F_Wait_TX(); // 等待发送完成 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_TX.c | while(1) // 主循环 | 0 |
C://Users//IDEA//Desktop//workplace//LiuCode | C://Users//IDEA//Desktop//workplace//LiuCode//Liu\UART_TX.c | CLRWDT(); // 清除看门狗定时器 | 0 |