初级会员

- 积分
- 59
- 金钱
- 59
- 注册时间
- 2015-10-12
- 在线时间
- 0 小时
|
5金钱
在LED例程中,稍加了点代码,检测下IO口输出的频率最大能到多少,在示波器看了下只有9M多,资料上的100M呢。。。是不是哪里没弄好,请指教下,,主要代码如下
void LED_Init(void)
{
GPIO_InitTypeDef GPIO_InitStructure;
RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOF, ENABLE);//????GPIOF?±??
//GPIOF9,F10???????è??
GPIO_InitStructure.GPIO_Pin = GPIO_Pin_6 |GPIO_Pin_9 | GPIO_Pin_10;
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT;//???¨????????
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;//???ì????
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_100MHz;//100MHz
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;//????
GPIO_Init(GPIOF, &GPIO_InitStructure);//??????
GPIO_SetBits(GPIOF,GPIO_Pin_9 | GPIO_Pin_10);//GPIOF9,F10?è??????????
}
while(1)
{
GPIO_ResetBits(GPIOF,GPIO_Pin_6); //LED0????????GPIOF.6????
GPIO_SetBits(GPIOF,GPIO_Pin_6);//GPIOF9,F10?è??????????
}
还有,哪里有资料说明一些指令的周期,像操作IO口的、算术运算的,等
|
|