Tool/software: Code Composer Studio
I am new to the MSP430 software, I am using the MSP430F5528 with the MSP-TS430RGC64USB breakout board for testing.
I am trying to configure Port P5 for output, to do a basic LED blink function. I want to use both P5.2 and P5.3, and have the LED’s blink separately, controlled by two separate functions.
I am having problems initiating the Port P5.
I read the Data Sheet for my particular chip, but with my limited knowledge the information was not particular helpful to me. Here is the Data Sheet Information:
After reading thought several Forums and MSP430 GPIO tutorials, I produced the following code to initiate the pins/ports.
P5SEL |= BIT0; //SEL set GPIO BIT0 sets as output
P5DIR |= BIT2 | BIT3; //DIR set Direction BIT2 & BIT3 sets as output
P5OUT |= BIT2 | BIT3; //Sets P5.2 & P5.3 as High
But it was not successful to send power to the LEDs.
I used a similar code to initiate Port P4 and had success. I know the Port Functions are different between the P4 and P5 ports.
I hope you can help me with this problem and inform me what I am doing wrong.
