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
NUCLEO L053R8
Re: NUCLEO L053R8
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
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;