[SOLVED] Working on STM32 these days.

Status
Not open for further replies.

HsiueMingLee

Newbie level 5
Joined
Jan 1, 2014
Messages
10
Helped
1
Reputation
2
Reaction score
1
Trophy points
3
Location
China
Visit site
Activity points
50
Hello everyone, I am new here .My major is Microcontroller , and work on stm32f103 recently , but meet some problems in my project , and i would like to knw that is anyone here learning or using this embeded microcontroller ?
 

well, i am learning the the EXTI and NVIC , if i wanna config the PA0 as a External interrupt port , how do i config the EXTI and NVIC , i am frustrated now .

- - - Updated - - -



when i press the key(connected to GND), nothing ocurred ,and cant get into the interrupt service function .
 

Hi, have patience if you are new to this device. This happens when the hardware architecture and documentation is not fully read/understood. Any how, Read the following web pages. I hope they will help you out.

HTML:
http://www.embedds.com/stm32-interrupts-and-programming-with-gcc/
HTML:
http://hertaville.com/2012/09/29/external-interrupts-on-the-stm32f0/
HTML:
http://www-micrel.deis.unibo.it/LABARCH/slidecorso2013/Lab3_2013.pdf
HTML:
http://www.k-space.org/Class_Info/STM32_Lec4.pdf


Enjoy!!!
 

thanks , i made it ,i havent reference the ST PM0056 before i solved it . the reason why it has no response ,because i didnt config the" Interrupt Set Enable Register ",above these 2 functons , add the "NVIC->ISER[0] |= 1 << 7; //interrupt set enable, EXTI line 1",it will work !!!
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…