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 PU for output, to do a basic LED blink function. I want to use both PU.0 and PU.1, and have the LED’s blink separately, controlled by two separate functions.
I am having problems initiating the Port PU.
I read the Data Sheet for my particular chip, but with my limited knowledge the information was not particularly helpful to me. Here is the Data Sheet Information:
To which I produced the following code:
PUSEL |= BIT0; //SEL set GPIO BIT0 sets as output
PUOPE |= BIT1;
PUOUT0 |= BIT1; //Sets PU.0 as High
PUOUT1 |= BIT1; //Sets PU.0 as High
After reading thought several Forums and MSP430 GPIO tutorials, I produced the following code to initiate the pins/ports.
PUSEL |= BIT0; //SEL set GPIO BIT0 sets as output
PUOPE |= BIT1;
PUOUT |= BIT0 | BIT1; //Sets PU.0 & PU.1 as High
Both Codes failed
For both codes I received the Errors:
“#138 expression must be modifiable lvalue” for lines PUSE, PUOPE, and PUOUT0/PUOUT1
“#20 identifier “PUOUT” is undefined” for line PUOUT.
I am not sure where to go from here. I have searched the web for code samples to initiate the pins/ports but most information is about the LDO and changing the output voltage.
I hope you can help me with this problem and inform me what I am doing wrong.