6 years, 9 months ago.

MODER

I am looking at the data sheet for stm32f303vc in the dpio section the MODER register have the following values +----++----+

MODER 1 [1:0]MODER 0 [1:0]

+----++----+

RWRWRWRW

+----++----+

what is this [1:0] means here?

1 Answer

6 years, 9 months ago.

Good question... If I had to guess it might be an indication which of the two bits is the high bit, and which is the low bit given that MODER registers are two bits.

Thank you for replying. for example can it be other way too? instead of MODER0[1:0], i can also use MODER0[0:1]?

posted by Mian Ismail 03 Aug 2017

in addition to the above is it necessary to set these modes each time i have to output/input to a pin? I am also confused about the BSRR Register, can i simply use BSRR for outputting, or the port still needs to be configured.

Is there a step by step guide to activate all peripherals?

Best Regards

posted by Mian Ismail 03 Aug 2017