Question
F446 Bitwise operator MODER & PUPDR
Hello.. i m programming F446 using registers, and i found from F446 reference manual to configure PA1 as both input and pull-down mode. i don't understand , can anyone advise how could
1. MODER &= ~(3<<2) is to set MODER1 as 00 input?
2. PUPDR |= (1<<3); is to set as 10 pull-down mode?? isn't that mean bit 3 set to '1' ??
GPIOA->MODER &= ~(3<<2); // 7.4.1 Bits (3:2) = 0:0 --> PA1 in Input Mode
GPIOA->PUPDR |= (1<<3); // 7.4.4 Bits (3:2) = 1:0 --> PA1 is in Pull Down mode
}
