
利用BD6221F驱动直流电机,但是电机一直不转,就直接给两个输入端设置高低电平,还是不转,为什么? } GPIO_Init(GPIOC,&GPIO_InitStructure); GPIO_InitStructure.GPIO_Mode =GPIO_Mode_Out_PP; GPIO_InitStructure.GPIO_Speed =GPIO_Speed_50MHz; GPIO_InitStructure.GPIO_Pin =GPIO_Pin_9; GPIO_InitStructure.GPIO_Pin =GPIO_Pin_8; //GPIO_ResetBits(GPIOC, 9); //GPIO_SetBits(GPIOC, 8); RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC,ENABLE);//ʹÄÜÍâÉèʱÖÓ GPIO_InitTypeDef GPIO_InitStructure;//ÉùÃ÷io½á¹¹Ìå{void Moto_Init(void)//³õʼ»¯µç»úÒý½Å |
什么原因啊,说来听听
评分
查看全部评分