AnsweredAssumed Answered

STM8S003F3 & GPIOA

Question asked by pottier.thierry.001 on Jan 19, 2012
Hello.
I am new for this CPU. I use the discovery board to test my SW.
I use 3 pin on GPIOA pin 1 2 and 3:
GPIO_Init(THRUSTER_STATE, BOW_STATE , GPIO_MODE_IN_PU_IT);     
// PullUp input with interrupt
GPIO_Init(THRUSTER_STATE, STERN_STATE , GPIO_MODE_IN_PU_IT);     
// PullUp input with interrupt
GPIO_Init(RF_BUTTON_PORT, RF_BUTTON_PIN , GPIO_MODE_IN_PU_IT);     // PullUp input with interrupt
EXTI_SetExtIntSensitivity(EXTI_PORT_GPIOA, EXTI_SENSITIVITY_FALL_ONLY);     
pull-up is ok
but when I run debugg it seam at interrupt work low only? Why I have done wrong? 
and it seans at pin 1 of GPIOA not working.. perhaps it used on this board already.

Thierry


 

Outcomes