Professional Documents
Culture Documents
UNIT- 2
1. Write short notes on RISC?
Ans: RISC stands for reduced instruction set computing. As the name implies, all risc
processors/microcontrollers having less number of instructions with range of 30 to 40.
Risc processors are comfortable since he/she needs to learn only a few instructions.
Atmel AVR microcontroller is an example for a Risc processor and its instruction set
contains only 32 instructions.
2. Write short notes on CISC?
Ans: CISC stands for complex instruction set computing. From the definition, the
instruction set is complex and instructions are high in number. For a Cisc processor
she/he needs to learn more number of instruction and should understand the of usage
of each instruction. The original version of 8051 microcontroller is a Cisc controller
and its instruction set contains 255 instructions.
3. Write the differences between CISC and RISC
Ans:
CISC (Complex Instruction Set RISC (Reduced Instruction Set Computing)
Computing)
Many instructions Few instructions
Instructions have varying lengths Instructions have fixed lengths
Instructions execute in varying times Instructions execute in 1 or 2 bus cycles
Many different types of addressing modes Limited number of addressing modes. E.g., Thumb
has register, immediate, and indexed.
Atmel AVR microcontroller is an example The original version of 8051 microcontroller is
for a RISC processor and its instruction set a CISC controller
contains only 32 instructions.
UNIT IV
1. Explain the fundamentals of microcontroller.
Ans: A microcontroller (MCU for microcontroller unit or UC for μ-controller) is a small
computer on a single integrated circuit. A microcontroller contains one or more CPUs
(processor cores) along with memory and programmable input/output peripherals.
2. Write a short note on basic programming for microcontroller.
Ans: Microcontrollers are typically programmed in higher-level languages such as C++
or Java. One of the essential tools needed to program a microcontroller is an integrated
development environment (IDE).
3. List the pull up/down registers for microcontroller.
Ans: Pull-up and Pull-down resistors are used to maintain proper logic levels at the input
pins of microcontroller under all conditions. In TM4C123GH6PM Microcontroller two
registers are there.
GPIO Pull-up resistor (GPIOPUR) to select pull-up resistors
GPIO Pull-down resistor (GPIOPDR) to select pull-down resistors
4. Define I/O pin multiplexing.
Ans: When working with a microcontroller processor, the number of input and output
lines is often a very limiting factor when designing hardware and software for the
microcontroller. Many elaborate systems and schemes have been devised to reduce the
number of I/O pins required, and one of the simplest and most elegant is a multiplexing
system.
5. What is the basic function of GPIO control?
Ans: GPIO stand for General Purpose Input/Outputs, meaning that it is a module capable
of receiving and transmitting signals. The 'normal' function would refer to GPIO, General
Purpose Input/ Output. In this case, we can use these pins directly by writing to and
reading from the relevant registers.
3) Define API.
API means Application programming interface. It is an interface into the main
network management system (NMS) providing the tools and services necessary to allow
various third party applications to interact with the main NMS.
The API acts as an interface between various applications and allows developers
to share data and services without actually getting into or understanding the underlying
code or software of the applications.