Page 1 of 1

NUCLEO L053R8

Posted: Mon Jun 01, 2020 6:52 pm
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

Re: NUCLEO L053R8

Posted: Mon Jun 01, 2020 8:04 pm
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;