Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: RE: Keypad for Msp430g2553

$
0
0
In your current code, you are not setting P2 pins in a way that could cause contention. The code is okay in that respect. But I think the way you read the P1 input is incorrect. for example, your have: if ((P1IN & BIT7)) row row_sel|=0x08; This line should have been: if ((P1IN & BIT7)==0) row row_sel|=0x08;

Viewing all articles
Browse latest Browse all 62309

Trending Articles



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