Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Thainguyen University of Technology

Division of English-tauch Electrical Engineering


and Computer Science
Student name: …………………………………………………

Class: …………………………………………………………...

ECEN321
Microcomputer principles and applications
Midterm exam #5
Problem. Write a program in order to make a single sample on A2 with reference to AVcc. If A2 >
0.5*AVcc, P1.6 is set, else reset.

MSP430G2553
-----------------
/|\| XIN|-
| | |
--|RST XOUT|-
| |
>---|P1.2/A2 P1.6|--> LED

Solution: ………………………………………………………………………………………………………………………

……………………………………………………………………………………………………………………………………

……………………………………………………………………………………………………………………………………

……………………………………………………………………………………………………………………………………

……………………………………………………………………………………………………………………………………

……………………………………………………………………………………………………………………………………

……………………………………………………………………………………………………………………………………

……………………………………………………………………………………………………………………………………

……………………………………………………………………………………………………………………………………

……………………………………………………………………………………………………………………………………

……………………………………………………………………………………………………………………………………

……………………………………………………………………………………………………………………………………

……………………………………………………………………………………………………………………………………

……………………………………………………………………………………………………………………………………

……………………………………………………………………………………………………………………………………

……………………………………………………………………………………………………………………………………

……………………………………………………………………………………………………………………………………

……………………………………………………………………………………………………………………………………

……………………………………………………………………………………………………………………………………

You might also like