Professional Documents
Culture Documents
CAT-1
PART-A (10×2=20marks)
PART-B (5×13=65marks)
(or)
b.) With a neat diagram explain the working of Direct Memory Access with architecture and
timing diagram. (13)
Direct memory access is a bus operation that allows reads and writes not controlled by
CPU.
A DMA transfer is controlled by a DMA controller, which requests control of the bus
from the CPU.
Data transfer occurs efficiently between the I/O devices and system memory with the
least processor intervention when using DMAC.
(i) Hardware Unit:
Power source:
A power supply or a charge pump is essential in every system.
Clock oscillator circuit and clocking units:
For processing units, a highly stable oscillator is required and the processor clock-out signal
provides the clock for synchronizing all system units with the processor.
System Timers and Real-Time Clocks:
To schedule the various tasks and for real-time programming, a RTC or system clock is
needed. The clock also drives the timers for various timing and counting needs in a system.
Reset circuit, Power-up Reset and Watchdog Timer Reset:
When a program executes the program counter increments or changes. An important circuit
that associates a system is its reset circuit that can change the program counter to a power
default value.
(ii) Software Unit.
The architecture depletion tells what components are needed. The component design efforts
build those components in conformance to the architecture and specifications. The
components include both software and hardware modules.
Some the components will be readymade.
(or)
b.) Explain in detail about the timer and counter devices in Embedded system. (13)
A counter/timer devices provide a variety f measurement solutions, including measuring a
number of time-related quantities.
Timing devices or Timer:
A timer device is a device that counts the regular interval of clock pulses at its input.
The counts are stored and incremented on each pulse.
It has output bits for the period of counts.
All microcontroller units have timers as one of its peripherals.
A timer is a dedicated hardware for timing events, to generate waveforms and so on.
Once a timer is started, the CPU does not have to interface, as the timer hardware will
take care of it.
A number of registers may be associated with timers, but basically there is a timer count
register and a mode register to decide between different options.
Counting devices or Counter:
A counting device is a device that counts the input for events that may occur at irregular
or regular intervals.
The counts give the number of input events or pulses since it was last read.
In timing application, the reference clock is taken from the processor clock.
But there is another duty for timer units are to get it to act as a counter.
It is necessary to know the details of individual MCUs for understanding it completely.
15.a.) Explain in detail about the serial peripheral interface (SPI) with neat sketches. (13)
The SPI bus was developed by Motorola.
The name SPI suggests it is a serial data transfer protocol, which is synchronous and full
duplex, between a microcontroller unit and a peripheral.
When the master does this, data transfer occurs in both the directions simultaneously.
There are four wires for the bus: the clock generated by the master; which carries data
from the slave to the master; and SS, the slave select signal.
The SPI Protocol:
The transfer of data using on SPI interface can be thought of a large shift register shared
between the master and slave device.
Data is clocked IN at the same time as it is clocked OUT of the devices.
In addition, there should be a transmit buffer, so that whenever the master sends a byte to
the slave, the slave sends a byte back to the master.
The length of the shift registers is decided by the manufacturer of the SPI controller.
Similarly, the received data should be copied and saved at the receiver side.
This processor can continue until the required block of data is transferred.
(or)
b.) Explain in detail about the features of Input-Output ports in embedded system. (13)
A bus is a collection of wires which carry electrical signals. The electrical signals may be
defined in terms of voltage level or current values.
The address bus carries the IO addresses which the processor wants to access.
The data bus carries data coming from or going to the processor. It is bidirectional bus.
The control bus which transports control and synchronization signals.
Processor-memory Bus:
The bus connecting the processor and memory is now called the processor-memory bus.
It is also designated by terms such as internal bus, main bus, system bus, etc.
Peripheral Buses:
Processor also need to communicate with peripherals, that is external input and output
devices, and this data pathway is called the I/O bus or peripheral bus.
All these also necessitate an extra “controller” or an interfacing chip between the
processor and the peripheral.
Embedded processor:
Embedded processor are designated to act as a single chip computer, and it’s contain
memory and I/O controllers internal to the chip.
The processor-memory bus is internal to the chip, and there is no need for an external
peripheral bus.
The embedded systems have become big, complex and the resource available inside the
processor chip may not be sufficient.
Extra memory and more peripheral controllers must be needed.
PART-C (15×1=15marks)