while(1)
{
GPIO_SetBits(GPIOG, GPIO_Pin_1);
//延时1ms的程序
for(count =0 ; count < 6; count++)
{
for(i = 0; i < 1000; i++);
}
//SET TO LOW
GPIO_ResetBits(GPIOG, GPIO_Pin_1);
//延时1ms的程序
for(count =0 ; count < 6; count++)
{
for(i = 0; i < 1000; i++);
}
}
while(1)
{
GPIO_SetBits(GPIOG, GPIO_Pin_1);
//延时1ms的程序
for(count =0 ; count < 1; count++)
{
for(i = 0; i < 6000; i++);
}
GPIO_ResetBits(GPIOG, GPIO_Pin_1);
//延时1ms的程序
for(count =0 ; count <1; count++)
{
for(i = 0; i < 6000; i++);
}
}
只是修改了一下参数,G1脚高电平持续的时间,变化很大,这是什么原因呢?

友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
一周热门 更多>