NUCLEO L053R8

All about boards manufactured by ST
Post Reply
carlo
Posts: 6
Joined: Fri May 29, 2020 4:47 pm

NUCLEO L053R8

Post by carlo »

Hi everyone, I have an STM NUCLEO L053R8
I ask if it is possible to set as output all the GPIOC pins
with MODER:
GPIO-> = MODER
Thanks

stas2z
Posts: 131
Joined: Mon Feb 24, 2020 8:17 pm
Answers: 8

Re: NUCLEO L053R8

Post by stas2z »

What is your problem?
According to reference manual you need to set GPIOC->MODER as 01010101010101010101010101010101 in binary to choose output mode for every port of GPIOC
in hex it will be 0x55555555

Code: Select all

GPIOC->MODER |= 0x55555555;

Post Reply

Return to “STM boards (Discovery, Eval, Nucleo, ...)”