hi, i using the ez430-rf2500 target board to measure the voltage of a solar panel and control a mppt circuit.
i have been trying to test the output of the target board pins by using the following code without success.
i do understand that i'll have to set the direction of the port to digital output first and then give it a high signal.
here is my code using ccs v4:
void main(void)
{
// INITIALISE BOARD
halBoardInit();
// RESET RF-CHIP CC2500
halRfResetChip();
// POWER DOWN CC2500
halRfStrobe(CC2500_SPWD);
// STOP WATCHDOG TIMER
WDTCTL = WDTPW + WDTHOLD;
// RESET PORTS
P3DIR = 0xFF; // All P3.x outputs
P3OUT = 0; // All P3.x reset
P4DIR = 0xFF; // All P4.x outputs
P4OUT = 0; // All P4.x reset
while(1)
{
P4OUT |= 0x08; // ON P4.3
P4OUT |= 0x10; // ON P4.4
P4OUT |= 0x20; // ON P4.5
P4OUT |= 0x40; // ON P4.6
P3OUT |= 0x04; // ON P3.2
P3OUT |= 0x08; // ON P3.3
P3OUT |= 0x01; // ON P3.0
P3OUT |= 0x02; // ON P3.1
}
}
i managed to get 6 out of the pins to display a high output but 3.2 and 3.3 still registered a low output.
can someone help me with this?
thanks!