在线时间0 小时
UID148334
ST金币0
蝴蝶豆0
注册时间2009-9-2
新手上路
- 最后登录
- 1970-1-1
|
a0a.1 0b0c
hardware connect
port configuration
//--------------------------initinal rotate coder
//PF4,PF5,PF6,PF7
GPIO_Init(GPIOF,GPIO_Pin_4,GPIO_Mode_In_FL_IT );
GPIO_Init(GPIOF,GPIO_Pin_5,GPIO_Mode_In_FL_No_IT );
GPIO_Init(GPIOF,GPIO_Pin_6,GPIO_Mode_In_FL_IT );
GPIO_Init(GPIOF,GPIO_Pin_7,GPIO_Mode_In_FL_No_IT );
EXTI_SelectPort(EXTI_Port_F);
EXTI_SetHalfPortSelection(EXTI_HalfPort_F_MSB,ENABLE);
EXTI_SetPortSensitivity(EXTI_Port_F,EXTI_Trigger_Rising_Falling);
ITC_SetSoftwarePriority(EXTI4_IRQn,ITC_PriorityLevel_2);
ITC_SetSoftwarePriority(EXTI6_IRQn,ITC_PriorityLevel_2);
problem descrtiption:
when the PF6,PF7 is low level, the PF4 cant triggle the external internal, when PF6, PF7 is high level ,the interrupt is work normally.
how to resolve this problem , need your help.
PF4 and PF6 use as external interrupt the PF5 and PF7 use as input port. |
|