This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to control GPIO?

Hi,

I'm using the STM32F103ZE uC on the MCBSTM32E development board.
I tried the example programs, they all compile and download and run fine, but they are NOT SIMPLE. They use a lot of Library files etc, etc, etc.
I just try to make some ports go high or low.

The example GPIO program states:
- Enable the clock signal for the GPIO.
- Configure the Alternate Function to use a GPIO (usually standard after reset).
- Configure the GPIO pins as input or output.
- Set remaining parameters like speed, pull-up/down.
- Enable the GPIO.
- Read from or write to the GPIO.

Can someone give me a simple (and I mean REALLY SIMPLE) program to control just one single GPIO port?

My questions to activate some port:
- do I need something to know about internal clock signals?
- do I need some startup file?

Thanks,

Henk

Parents
  • Andy,

    I can't seem to get "stm32f10x_stdperiph_lib_um.chm" working. I'm not familiar with the help 'books' within uVision.

    I tried adding it to the 'books' but that didn't work. Any suggestions?

    Yes, I'm trying to utilize STMicro's "new" StdPeriph_Lib_V3.30 libraries, and the help files -- I'm just guessing -- will come in handy.

    --Cpt. Vince Foster
    2nd Cannon Place
    Fort Marcy Park, VA

Reply
  • Andy,

    I can't seem to get "stm32f10x_stdperiph_lib_um.chm" working. I'm not familiar with the help 'books' within uVision.

    I tried adding it to the 'books' but that didn't work. Any suggestions?

    Yes, I'm trying to utilize STMicro's "new" StdPeriph_Lib_V3.30 libraries, and the help files -- I'm just guessing -- will come in handy.

    --Cpt. Vince Foster
    2nd Cannon Place
    Fort Marcy Park, VA

Children