Part Number: MSP430F5529
Hi! I'm starting in microcontroller class and we made the LED (P1.0) light up when the push button (P2.1) is pressed. Everything works fine, I just have the doubt, why in "bis.b # BIT1, & P2OUT" the resistance is put in pull-up? At the beginning we had it in pull-down since as I understand it as long as the push is not pressed button the LED will be in a low state (0) and when we press it to turn on with a high state, I asked the teacher but he didn't even know what to answer me.
bis.b #BIT0, &P1DIR
bic.b #BIT1, &P2DIR
bis.b #BIT1, &P2REN
bis.b #BIT1, &P2OUT
inicio bit.b #BIT1, &P2IN
jnz off
bis.b #BIT0, &P1OUT
jmp inicio
nop
off bic.b #BIT0, &P1OUT
jmp inicio
nop
Thank you.