void Sent0_0(void)
{
PD_ODR_bit.ODR2=0;
__no_operation();
__no_operation();
__no_operation();
__no_operation();
__no_operation();
__no_operation();
__no_operation();
__no_operation();
__no_operation();
PD_ODR_bit.ODR2=1;
__no_operation();
__no_operation();
__no_operation();
__no_operation();
__no_operation();
__no_operation();
__no_operation();
__no_operation();
__no_operation();
__no_operation();
__no_operation();
}
void main()
{
SCLK_Config();
IO_init();
Sent0_0();
Sent0_0();
Sent0_0();
Sent0_0();
Sent0_0();
Sent0_0();
Sent0_0();
}
我想问的是:为什么同样的延时函数,像上面那样叠加起来用,在示波器上看到的波形(注:不是看负脉宽,负脉宽没问题)——正脉宽有些不一样。比如调用第一个延时:6.60us,第二个是:6.60us,第三个是6.5us,第四个是6.2us。为什么会这样? |