你好,
使用:
void _delay_1us(void)
{
NOP();
..
NOP();
}
但每次需要通过示波器验证延迟时间,
因为STM8中的指令执行时间是不可预测的。
由于同样的原因,TIM4无法做到这一点。
以上来自于谷歌翻译
以下为原文
Hello,
Use:
void _delay_1us (void)
{
nop();
..
nop();
}
but the length of the delay each time you need to verify through an oscilloscope,
because the instruction execution time in STM8 is unpredictable.
After the TIM4 can not do this, for the same reason.
你好,
使用:
void _delay_1us(void)
{
NOP();
..
NOP();
}
但每次需要通过示波器验证延迟时间,
因为STM8中的指令执行时间是不可预测的。
由于同样的原因,TIM4无法做到这一点。
以上来自于谷歌翻译
以下为原文
Hello,
Use:
void _delay_1us (void)
{
nop();
..
nop();
}
but the length of the delay each time you need to verify through an oscilloscope,
because the instruction execution time in STM8 is unpredictable.
After the TIM4 can not do this, for the same reason.
举报