Hi
Im testing my msp430fg439 with a simple code. In my design I require t use Pins on port 3 from Pin 0 to Pin 3 for the peripheral functions, i this case the SPI interface, and pin 4 to pin 7 like for the I/ functions. After a couple of tests and no signal on pins 7,6,5,0 I decided to us just a simple code (see below) just to test the msp pins. I loaded and executed the software and I got no signals. I thought the ms was not working , so I replaced with a new one and ... still no signals. Could somebody help me to see what is the "basic" or simple mistake tha Im doing. With this code I only got signals on pins 4,3,2,1. I am using mspgcc with Ubuntu.
Thanks
(This is a simple code that changes the outpput of pin 3 in MSP430FG439)
#include #include
/* prototype for wait() */
int main() { WDTCTL=WDTPW + WDTHOLD;
/* main function, called by startup-code */ P3SEL=0xF0;
P3DIR= 0xFF; while (1){ P3OUT=0xFF; P3OUT=0x00; P3OUT=0xAA; P3OUT=0x00; P3OUT=0xA1; P3OUT=0x00;
P3OUT=0xA2; P3OUT=0x00;
P3OUT=0xA3; P3OUT=0x00; P3OUT=0xA4; P3OUT=0x00;
P3OUT=0xB5; P3OUT=0x00;
P3OUT=0xB6; P3OUT=0x00; P3OUT=0xB7; P3OUT=0x00;
P3OUT=0xB8; P3OUT=0x00;
P3OUT=0xB9; P3OUT=0x00; P3OUT=0xCC; P3OUT=0x00;
P3OUT=0xC1; P3OUT=0x00;
P3OUT=0xC2; P3OUT=0x00; P3OUT=0xC3; P3OUT=0x00;
P3OUT=0xC4; P3OUT=0x00;
P3OUT=0xC5; P3OUT=0x00; P3OUT=0xD6; P3OUT=0x00;
P3OUT=0xD7; P3OUT=0x00;
P3OUT=0xD8; P3OUT=0x00; P3OUT=0xD9; P3OUT=0x00;
P3OUT=0xEE; P3OUT=0x00;
} }