Professional Documents
Culture Documents
Exp 7
Exp 7
ALGORITHM:
1. Disables the watchdog timer.
2. Configure Port 1.0 as output.
3. Configure the Analog to digital converter.
4. Select the input channel.
5. Start sampling the analog input.
6. Compare the threshold.
7. Turn ON red LED.
8. Else turn off.
FLOW CHART
PROGRAM REQUIRED
#include <msp430.h>
int main(void)
{
while(1)
else
PROCEDURE
RESULT
PRECAUTIONS