repo_id
stringclasses 1
value | file_path
stringlengths 64
110
| content
stringlengths 16
5.48k
| __index_level_0__
int64 0
0
|
---|---|---|---|
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_0.txt | <input>tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平
<output>T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_1.txt | <input>定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平,启用所有未屏蔽中断
<output>T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
ENI();
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_10.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平,启用所有未屏蔽中断
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
ENI();
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_11.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_12.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_13.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平,启用所有未屏蔽中断
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
ENI();
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_14.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_15.txt | <input>tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平,启用所有未屏蔽中断,清除看门狗定时器,PB0输出翻转
<output>T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
ENI();
CLRWDT();
PORTB ^= 0x01;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_16.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_17.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_18.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_19.txt | <input>启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平
<output>PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_2.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_20.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_21.txt | <input>定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平,启用所有未屏蔽中断,清除看门狗定时器
<output>T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
ENI();
CLRWDT();
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_22.txt | <input>定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平,启用所有未屏蔽中断
<output>T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
ENI();
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_23.txt | <input>死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平,启用所有未屏蔽中断,清除看门狗定时器
<output>PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
ENI();
CLRWDT();
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_24.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平,启用所有未屏蔽中断
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
ENI();
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_25.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_26.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_27.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平,启用所有未屏蔽中断
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
ENI();
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_28.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_29.txt | <input>tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平
<output>T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_3.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_30.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_31.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_32.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_33.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_34.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_35.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_36.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_37.txt | <input>半桥模式,P1A激活高电平,P1B激活低电平,启用所有未屏蔽中断,清除看门狗定时器
<output>CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
ENI();
CLRWDT();
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_38.txt | <input>启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平,启用所有未屏蔽中断,清除看门狗定时器,PB0输出翻转
<output>PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
ENI();
CLRWDT();
PORTB ^= 0x01;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_39.txt | <input>启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期
<output>PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_4.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_40.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平,启用所有未屏蔽中断
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
ENI();
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_41.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_42.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_43.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_44.txt | <input>半桥模式,P1A激活高电平,P1B激活低电平,启用所有未屏蔽中断,清除看门狗定时器
<output>CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
ENI();
CLRWDT();
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_45.txt | <input>tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平,启用所有未屏蔽中断,清除看门狗定时器,PB0输出翻转
<output>T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
ENI();
CLRWDT();
PORTB ^= 0x01;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_46.txt | <input>定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平,启用所有未屏蔽中断
<output>T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
ENI();
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_47.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平,启用所有未屏蔽中断
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
ENI();
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_48.txt | <input>启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载
<output>PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_49.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_5.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平,启用所有未屏蔽中断
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
ENI();
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_50.txt | <input>启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平,启用所有未屏蔽中断,清除看门狗定时器,PB0输出翻转
<output>PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
ENI();
CLRWDT();
PORTB ^= 0x01;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_51.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_52.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_53.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_54.txt | <input>定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平,启用所有未屏蔽中断,清除看门狗定时器
<output>T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
ENI();
CLRWDT();
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_55.txt | <input>启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平,启用所有未屏蔽中断,清除看门狗定时器
<output>PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
ENI();
CLRWDT();
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_56.txt | <input>死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平,启用所有未屏蔽中断,清除看门狗定时器
<output>PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
ENI();
CLRWDT();
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_57.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_58.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平,启用所有未屏蔽中断
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
ENI();
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_59.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平,启用所有未屏蔽中断
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
ENI();
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_6.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_60.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_61.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_62.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_63.txt | <input>定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平
<output>T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_64.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_65.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平,启用所有未屏蔽中断
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
ENI();
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_66.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期,半桥模式,P1A激活高电平,P1B激活低电平,启用所有未屏蔽中断
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
ENI();
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_67.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_68.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载,死区带宽为1 CPU周期
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
PWMDB = 0x01;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_69.txt | <input>启用WDT和LVR,tmr5源为指令,预分频器关闭,定时器5启用,重载
<output>PCON = C_WDT_En | C_LVR_En;
T5CR2 = C_PS5_Dis;
T5CR1 = C_TMR5_Reload;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_7.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_8.txt | <input>半桥模式,P1A激活高电平,P1B激活低电平,启用所有未屏蔽中断,清除看门狗定时器
<output>CCPCON = C_CCP_HalfOut | C_CCP_PWM_All_ActHigh;
ENI();
CLRWDT();
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_7_9.txt | <input>禁用所有未屏蔽中断,设置PortA为输出端口,设置PB0为输出端口,PortA数据寄存器设置为0x00,启用WDT和LVR
<output>DISI();
IOSTA = C_PA_Output;
IOSTB = C_PB0_Output;
PORTA = 0x00;
PCON = C_WDT_En | C_LVR_En;
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_8.txt | <input>*
* P1A(PB2), P1B(PA5)
* 占空比 = pwm_value / timer_value;
* 频率 = 4M/4T/timer_value;
* 死区带宽 = 1 CPU周期
* 当INTF3位5(T5IF/CCPIF)发生时,PB0输出翻转
*
* PWM占空比 = 0x200/0x3FF = 50%
* 定时器值 = 0x3FF
* PWM值 = 0x200
<output>*
* 作者: David Wei
* 版本: V1.0
* 日期: 2021/05/07
=========================================================================*/
#include <ny8.h>
#include "ny8_constant.h"
#define UPDATE_REG(x) __asm__("MOVR _" #x ",F")
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM Mode_Half Bridge_9.txt | <input>* P1A(PB2), P1B(PA5)
* 占空比 = pwm_value / timer_value;
* 频率 = 4M/4T/timer_value;
* 死区带宽 = 1 CPU周期
* 当INTF3位5(T5IF/CCPIF)发生时,PB0输出翻转
*
* PWM占空比 = 0x200/0x3FF = 50%
* 定时器值 = 0x3FF
* PWM值 = 0x200
*
<output>* 作者: David Wei
* 版本: V1.0
* 日期: 2021/05/07
=========================================================================*/
#include <ny8.h>
#include "ny8_constant.h"
#define UPDATE_REG(x) __asm__("MOVR _" #x ",F")
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_0.txt | <input>/* ==========================================================================
* 项目:CCP_PWM Mode_Full Bridge
* 文件:main.c
* 描述:
* 设置CCPCON为全桥PWM模式
*
* 延迟=16 fcpu,P1A,P1C为高电平有效。P1D,P1B为高电平有效。
* 前进/后退每四次切换一次
*
* P1A(PB2),P1C(PA2),P1D(PA3),P1B(PA5)
<output> * 占空比 = pwm_value / timer_value;
* 频率 = 4M/4T/timer_value;
* 当INTF3位5(T5IF/CCPIF)发生时,PB0是切换输出
*
* PWM占空比 = 0x200/0x3FF = 50%
* 定时器值 = 0x3FF
* PWM值 = 0x200
*
* 作者:David Wei
* 版本:V1.0
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_0_args_2.txt | <input>while(1 // 主循环 <output>while(1) // 主循环 | 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_0_args_4.txt | <input>while(1) // 主循环 <output>while(1) // 主循环 | 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_0_code_0.txt | <input> while(1) // 主循环
<output> while(1) // 主循环
{
CLRWDT(); // 清除看门狗定时器
}
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_0_code_1.txt | <input> while(1) // 主循环
<output> while(1) // 主循环
{
CLRWDT(); // 清除看门狗定时器
}
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_0_code_10.txt | <input> while(1) // 主循环
{
<output> while(1) // 主循环
{
CLRWDT(); // 清除看门狗定时器
}
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_0_code_2.txt | <input> while(1) // 主循环
{
CLRWDT(); // 清除看门狗定时器
<output> while(1) // 主循环
{
CLRWDT(); // 清除看门狗定时器
}
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_0_code_3.txt | <input> while(1) // 主循环
<output> while(1) // 主循环
{
CLRWDT(); // 清除看门狗定时器
}
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_0_code_4.txt | <input> while(1) // 主循环
{
<output> while(1) // 主循环
{
CLRWDT(); // 清除看门狗定时器
}
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_0_code_5.txt | <input> while(1) // 主循环
<output> while(1) // 主循环
{
CLRWDT(); // 清除看门狗定时器
}
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_0_code_6.txt | <input> while(1) // 主循环
{
CLRWDT(); // 清除看门狗定时器
<output> while(1) // 主循环
{
CLRWDT(); // 清除看门狗定时器
}
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_0_code_7.txt | <input> while(1) // 主循环
{
CLRWDT(); // 清除看门狗定时器
}
<output> while(1) // 主循环
{
CLRWDT(); // 清除看门狗定时器
}
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_0_code_8.txt | <input> while(1) // 主循环
{
<output> while(1) // 主循环
{
CLRWDT(); // 清除看门狗定时器
}
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_0_code_9.txt | <input> while(1) // 主循环
{
<output> while(1) // 主循环
{
CLRWDT(); // 清除看门狗定时器
}
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_1.txt | <input> * 项目:CCP_PWM Mode_Full Bridge
* 文件:main.c
* 描述:
* 设置CCPCON为全桥PWM模式
*
* 延迟=16 fcpu,P1A,P1C为高电平有效。P1D,P1B为高电平有效。
* 前进/后退每四次切换一次
*
* P1A(PB2),P1C(PA2),P1D(PA3),P1B(PA5)
* 占空比 = pwm_value / timer_value;
<output> * 频率 = 4M/4T/timer_value;
* 当INTF3位5(T5IF/CCPIF)发生时,PB0是切换输出
*
* PWM占空比 = 0x200/0x3FF = 50%
* 定时器值 = 0x3FF
* PWM值 = 0x200
*
* 作者:David Wei
* 版本:V1.0
* 日期:2021/05/07
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_10.txt | <input> * 占空比 = pwm_value / timer_value;
* 频率 = 4M/4T/timer_value;
* 当INTF3位5(T5IF/CCPIF)发生时,PB0是切换输出
*
* PWM占空比 = 0x200/0x3FF = 50%
* 定时器值 = 0x3FF
* PWM值 = 0x200
*
* 作者:David Wei
* 版本:V1.0
<output> * 日期:2021/05/07
=========================================================================*/
#include <ny8.h> // 包含NY8A051F的头文件
#include "ny8_constant.h" // 包含常量定义
unsigned char cnt = 0; // 计数器
#define UPDATE_REG(x) __asm__("MOVR _" #x ",F") // 更新寄存器宏定义
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_11.txt | <input> * 频率 = 4M/4T/timer_value;
* 当INTF3位5(T5IF/CCPIF)发生时,PB0是切换输出
*
* PWM占空比 = 0x200/0x3FF = 50%
* 定时器值 = 0x3FF
* PWM值 = 0x200
*
* 作者:David Wei
* 版本:V1.0
* 日期:2021/05/07
<output> =========================================================================*/
#include <ny8.h> // 包含NY8A051F的头文件
#include "ny8_constant.h" // 包含常量定义
unsigned char cnt = 0; // 计数器
#define UPDATE_REG(x) __asm__("MOVR _" #x ",F") // 更新寄存器宏定义
void main(void)
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_12.txt | <input> * 当INTF3位5(T5IF/CCPIF)发生时,PB0是切换输出
*
* PWM占空比 = 0x200/0x3FF = 50%
* 定时器值 = 0x3FF
* PWM值 = 0x200
*
* 作者:David Wei
* 版本:V1.0
* 日期:2021/05/07
=========================================================================*/
<output>
#include <ny8.h> // 包含NY8A051F的头文件
#include "ny8_constant.h" // 包含常量定义
unsigned char cnt = 0; // 计数器
#define UPDATE_REG(x) __asm__("MOVR _" #x ",F") // 更新寄存器宏定义
void main(void)
{
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_13.txt | <input> *
* PWM占空比 = 0x200/0x3FF = 50%
* 定时器值 = 0x3FF
* PWM值 = 0x200
*
* 作者:David Wei
* 版本:V1.0
* 日期:2021/05/07
=========================================================================*/
<output>#include <ny8.h> // 包含NY8A051F的头文件
#include "ny8_constant.h" // 包含常量定义
unsigned char cnt = 0; // 计数器
#define UPDATE_REG(x) __asm__("MOVR _" #x ",F") // 更新寄存器宏定义
void main(void)
{
DISI(); // 禁用中断
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_14.txt | <input> * PWM占空比 = 0x200/0x3FF = 50%
* 定时器值 = 0x3FF
* PWM值 = 0x200
*
* 作者:David Wei
* 版本:V1.0
* 日期:2021/05/07
=========================================================================*/
#include <ny8.h> // 包含NY8A051F的头文件
<output>#include "ny8_constant.h" // 包含常量定义
unsigned char cnt = 0; // 计数器
#define UPDATE_REG(x) __asm__("MOVR _" #x ",F") // 更新寄存器宏定义
void main(void)
{
DISI(); // 禁用中断
// 初始化GPIO
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_15.txt | <input> * 定时器值 = 0x3FF
* PWM值 = 0x200
*
* 作者:David Wei
* 版本:V1.0
* 日期:2021/05/07
=========================================================================*/
#include <ny8.h> // 包含NY8A051F的头文件
#include "ny8_constant.h" // 包含常量定义
<output>
unsigned char cnt = 0; // 计数器
#define UPDATE_REG(x) __asm__("MOVR _" #x ",F") // 更新寄存器宏定义
void main(void)
{
DISI(); // 禁用中断
// 初始化GPIO
IOSTA = C_PA_Output; // 设置PortA为输出端口
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_16.txt | <input> * PWM值 = 0x200
*
* 作者:David Wei
* 版本:V1.0
* 日期:2021/05/07
=========================================================================*/
#include <ny8.h> // 包含NY8A051F的头文件
#include "ny8_constant.h" // 包含常量定义
<output>unsigned char cnt = 0; // 计数器
#define UPDATE_REG(x) __asm__("MOVR _" #x ",F") // 更新寄存器宏定义
void main(void)
{
DISI(); // 禁用中断
// 初始化GPIO
IOSTA = C_PA_Output; // 设置PortA为输出端口
IOSTB = C_PB0_Output; // 设置PB0为输出端口
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_17.txt | <input> *
* 作者:David Wei
* 版本:V1.0
* 日期:2021/05/07
=========================================================================*/
#include <ny8.h> // 包含NY8A051F的头文件
#include "ny8_constant.h" // 包含常量定义
unsigned char cnt = 0; // 计数器
<output>
#define UPDATE_REG(x) __asm__("MOVR _" #x ",F") // 更新寄存器宏定义
void main(void)
{
DISI(); // 禁用中断
// 初始化GPIO
IOSTA = C_PA_Output; // 设置PortA为输出端口
IOSTB = C_PB0_Output; // 设置PB0为输出端口
PORTA = 0x00; // PortA数据寄存器设置为0x00
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_18.txt | <input> * 作者:David Wei
* 版本:V1.0
* 日期:2021/05/07
=========================================================================*/
#include <ny8.h> // 包含NY8A051F的头文件
#include "ny8_constant.h" // 包含常量定义
unsigned char cnt = 0; // 计数器
<output>#define UPDATE_REG(x) __asm__("MOVR _" #x ",F") // 更新寄存器宏定义
void main(void)
{
DISI(); // 禁用中断
// 初始化GPIO
IOSTA = C_PA_Output; // 设置PortA为输出端口
IOSTB = C_PB0_Output; // 设置PB0为输出端口
PORTA = 0x00; // PortA数据寄存器设置为0x00
PCON = C_WDT_En | C_LVR_En; // 启用WDT和LVR
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_19.txt | <input> * 版本:V1.0
* 日期:2021/05/07
=========================================================================*/
#include <ny8.h> // 包含NY8A051F的头文件
#include "ny8_constant.h" // 包含常量定义
unsigned char cnt = 0; // 计数器
#define UPDATE_REG(x) __asm__("MOVR _" #x ",F") // 更新寄存器宏定义
<output>
void main(void)
{
DISI(); // 禁用中断
// 初始化GPIO
IOSTA = C_PA_Output; // 设置PortA为输出端口
IOSTB = C_PB0_Output; // 设置PB0为输出端口
PORTA = 0x00; // PortA数据寄存器设置为0x00
PCON = C_WDT_En | C_LVR_En; // 启用WDT和LVR
cnt = 0; // 初始化计数器
| 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_1_args_2.txt | <input>void main(void <output>void main(void) | 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_1_args_4.txt | <input>void main(void) <output>void main(void) | 0 |
D:\workCode\prepare_dataset\prepare_data_v6 | D:\workCode\prepare_dataset\prepare_data_v6\total_data\CCP_PWM_Full Bridge_1_code_0.txt | <input>void main(void)
{
DISI(); // 禁用中断
// 初始化GPIO
IOSTA = C_PA_Output; // 设置PortA为输出端口
IOSTB = C_PB0_Output; // 设置PB0为输出端口
PORTA = 0x00; // PortA数据寄存器设置为0x00
PCON = C_WDT_En | C_LVR_En; // 启用WDT和LVR
cnt = 0; // 初始化计数器
// 设置定时器5的高字节和数据
TM5RH = C_TMR5_Data_b9 | C_TMR5_Data_b8 | C_PWM5_Duty_b9;
TMR5 = C_TMR5_Data;
// 设置PWM5的占空比
PWM5DUTY = 0x00;
// 设置定时器5时钟源和预分频器
T5CR2 = C_PS5_Dis; // tmr5源=指令,预分频器关闭
T5CR1 = C_TMR5_Reload; // 定时器5启用,重载
// 设置CCPCON为全桥正向,延迟=16 fcpu,P1A,P1C为高电平有效。P1D,P1B为高电平有效。
CCPCON = C_CCP_Forward | C_FBDel_16CPU | C_CCP_PWM_All_ActHigh;
// 启用CCP中断
<output>void main(void)
{
DISI(); // 禁用中断
// 初始化GPIO
IOSTA = C_PA_Output; // 设置PortA为输出端口
IOSTB = C_PB0_Output; // 设置PB0为输出端口
PORTA = 0x00; // PortA数据寄存器设置为0x00
PCON = C_WDT_En | C_LVR_En; // 启用WDT和LVR
cnt = 0; // 初始化计数器
// 设置定时器5的高字节和数据
TM5RH = C_TMR5_Data_b9 | C_TMR5_Data_b8 | C_PWM5_Duty_b9;
TMR5 = C_TMR5_Data;
// 设置PWM5的占空比
PWM5DUTY = 0x00;
// 设置定时器5时钟源和预分频器
T5CR2 = C_PS5_Dis; // tmr5源=指令,预分频器关闭
T5CR1 = C_TMR5_Reload; // 定时器5启用,重载
// 设置CCPCON为全桥正向,延迟=16 fcpu,P1A,P1C为高电平有效。P1D,P1B为高电平有效。
CCPCON = C_CCP_Forward | C_FBDel_16CPU | C_CCP_PWM_All_ActHigh;
// 启用CCP中断
INTE3 = C_INT_CCP;
ENI(); // 启用中断
while(1) // 主循环
{
CLRWDT(); // 清除看门狗定时器
}
}
| 0 |