Unit 3 | Lecture 4 | AVR Assembly and C Programming: AVR IO Port Programming in ALP

preview_player
Показать описание
Topics Covered:
AVR IO Port Programming in ALP

L J INSTITUTES OF ENGINEERING & TECHNOLOGY
SUBJECT: - MICROPROCESSOR AND MICROCONTROLLER
UNIT 3:- AVR ASSEMBLY AND C PROGRAMMING
TOPIC NAME: - AVR IO PORT PROGRAMMING IN ALP
IMPORTANT QUESTIONS / MCQS

1. There are a total of _____ ports in the ATmega32.
a) 4
b) 2
c) 8
d) 16

2. All of the ATmega32 ports have _____ pins.
a) 4
b) 3
c) 8
d) 16

3. To make Port B an output port, we must place _______ in register _______

4. _______ register is used to send data out to AVR pins.
a) PORTx
b) PINx
c) DDRx
d) Not Mentioned

5. _______ register is used to bring data into the CPU from AVR pins.
a) PORTx
b) PINx
c) DDRx
d) Not Mentioned

6. Explain the role of DDRx and PORTx in I/O operations.

7. Upon reset, all the bits of ports are configured as _______ (input, output).
Рекомендации по теме