Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Pin 2.0 not working properly?

$
0
0

Hello,

I am trying to make a very simple program using the MSP4305739 exp board. Here is my code:

#include <msp430.h>

int main(void)
{
PJDIR = BIT3;
PJOUT = BIT3;
P2DIR &= ~BIT0;
P2REN = BIT0;
P2OUT &= ~BIT0;
while(1){}

}

When I compile and run, then probe pin 2.0 I get 2.49V. It should be 0V since it is hooked up to a pull down.

Any idea why this is happening?

Thanks,

Omri


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>