cancel
Showing results for 
Search instead for 
Did you mean: 

Usage of RCC and NVIC functions in GPIO files

sabasit2006
Associate II
Posted on November 14, 2008 at 05:58

Usage of RCC and NVIC functions in GPIO files

2 REPLIES 2
sabasit2006
Associate II
Posted on May 17, 2011 at 12:52

Dear All,

can anyone tell me that why RCC and NVIC firmware functions are used in toggling the any bit of any port.

I want to make a program which toggles the GPIOF_Pin6, but I found that there are RCC and NVIC functions used in the Firmware Examples files ''Firmware\examples\gpio\IOtoggles''

I need a simple program which just toggle the gpio bits without using RCC and NVIC.

Also tell me how I configure GPIO registers, what are the steps?

reply.

Abdul Basit

paulsmitton9
Associate II
Posted on May 17, 2011 at 12:52

You must enable the GPIO clock in the RCC. NVIC is for interrupts.

Enable the relevent GPIO clock in the RCC.

Set the GPIO configuration register (to output, probably push-pull)

Toggle the GPIO output data register.

There are quite a few threads about this already:

http://www.st.com/mcu/forums-cat-7495-23.html

(you can search the forum for others)

Perhaps we need a how-to-toggle-a-port sticky.