Part Number: MSP430G2553
Hi,
I am really new to the MSP430 MCU and to microcontrollers in general (some experience with Arduino). I am trying to do something fairly simple, yet, I can't get it to work... I searched the internet for simple example but couldn't find one that worked for me. I know that I am asking a lot but...Could someone provide me with a simple code example of how I can do the following?
I want to read the analog value of a pin (doesn't matter which one as long as it can read analog) that is linked to a Hall effet sensor. If the value hits a threshold, then I want to turn off a led (connected to one of the pin). The led is normally on.
The code needs to be written in c because I want to integrate with other pieces of code that are written in C.
Thanks in advance for the example or for the cues.
Pierre-Luc