On the battery board for the eZ430 there are two points labeled 3.4 and 3.5 that come from the connector breakout. I assume that this means that those pins are connnect to the msp430BT5190; 3.4 to Port 3 bit 4 and 3.5 to Port 3 bit 5. So, I wrote a little program to test this but I did not get any results. Since these two pins can be used for general I/O, I assume that you SHOULD be able to put a logic "1" on either of these pins and read the voltage from the test pin to ground. Below is the code I wrote:
#include "msp430.h"int main(void){ WDTCTL = WDTPW + WDTHOLD; ///stop watch dog timer for (;;) { P3SEL = 0x30; P3DIR = 0X30; //set port 3 bits4 and 5 direction to output P3OUT = 0X30; //set bits 4 and 5 high P1DIR = 0x02; // Set P1.0 to output direction P1OUT = 0x02; // Turn blue LED on }
}
I also tried setting the pins to logic 0 in case they were active low but that didn't produce the result I was looking for either. Am I approaching this the right way?
Thanks
If you want use to use P3.4 and P3.5 for general I/O the following line should be removed:
Chris Kocuba P3SEL = 0x30;
The reason is setting P3SEL bits 4 and 5 selects P3.4 and P3.5 as module functions, rather than general I/O. See the Table 45. Port P3 (P3.0 to P3.7) Pin Functions in the MSP430BT5190 datasheet SLAS703
Thanks for the reply, Chester. However, upon removing that line or using P3SEL=0x00; to force all the pins to I/O, I still am not able to read a voltage at the test point on the battery board. Any further suggestions?
Based upon EZ430U USB Debugging I/F Connector Pinout I guess that:
a) What is labeled as "P3.4" on the battery board is connected to P10.4 on the MSP430BT5190
b) What is labeled as "P3.5" on the battery board is connected to P10.5 on the MSP430BT5190
(looks like the silkscreen on the battery board was originally for a different MSP)