cancel
Showing results for 
Search instead for 
Did you mean: 

STM8S003F3 & GPIOA

Posted on January 19, 2012 at 10:27

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

 

#stm8s-discovery
0 REPLIES 0