IIIT Chittoor
April 3, 2017
1 / 24
Course Contents
2 / 24
Contents....
3 / 24
Preferred Textbooks and References
4 / 24
Grading Policy
5 / 24
Timers
6 / 24
Timers
(b) (c)
7 / 24
Timers - Prescaler
8 / 24
Timers - Postscaler
9 / 24
The Programmable Interval Timer 8253
10 / 24
The Programmable Interval Timer 8253
11 / 24
8253 Operating Modes
12 / 24
The Programmable Interval Timer 8253
13 / 24
The Programmable Interval Timer 8253 - Mode0
Mode 0 Interrupt on terminal count
I The output goes high after the terminal count is reached.
I The counter stops if the Gate is low..
14 / 24
The Programmable Interval Timer 8253 - Mode1
Mode 1 Programmable one shot
I The output goes low with the Gate pulse for a predetermined
period depending on the counter.
I The counter is disabled if the GATE pulse goes momentarily
low.
15 / 24
The Programmable Interval Timer 8253 - Mode2
Mode 2 Rate Generator
I The output goes high for a period that equals the time of count down
I output goes low exactly for one clock period before it is high again.
I Periodic operation.
16 / 24
The Programmable Interval Timer 8253 - Mode3
17 / 24
The Programmable Interval Timer 8253 - Mode4
Mode 4 Software triggered strobe
I count is loaded by the processor the count down starts.
I The output goes low for one clock period after the count down is complete.
I The count down can be suspended by making the GATE low.
I This is also called a software triggered strobe as the count down is initiated by a
program.
18 / 24
The Programmable Interval Timer 8253 - Mode5
19 / 24
Watchdog Timer and Watchdog Circuit
20 / 24
Serial Protocols
21 / 24
SPI
22 / 24
SPI - Master to Slave and Slave to Master
23 / 24
SPI with Arduino
24 / 24
SPI
I SPI is used when Master and slave are not interchanged
I I2C is used when Multiple master ans slaves with intercheable
roles
I No Addressing scheme in SPI
I No ACK for SPI
25 / 24
I2C - Inter-Integrated Circuit
26 / 24
I2C
27 / 24
I2C - Protocol
28 / 24
I2C - Protocol
29 / 24
I2C - Protocol
30 / 24
I2C - Protocol
31 / 24
Communicating with Embedded device
Multiple ways
I Network protocols
I Universal Serial Bus - USB
I USB - serial protocol
I Single pair of wires for data transfer in differential
I connection for power
32 / 24
USB - Intro
33 / 24
USB - Intro
I USB peripherals are slaves responding to commands
I Attached to N/W - identity and discovery device driver - Enumeration
I No multi-master
I standalone device - single function
I Compound device - Ex: both audio and video sharing a single USB
I USB Hubs - can be tree of HUB with multiple peripherals
I one upstream and multiple down stream connections
34 / 24
USB
35 / 24
USB - Endpoint
36 / 24
Enumeration
37 / 24
USB hubs
38 / 24
Intelligent Systems
I Sense:
Different types of sensors
I Communicate:
Wired or Wireless Networks
I Automate to Optimize:
Controllers and Actuators
Sensors: a device that detects and responds to some type of input
from the physical environment
Communicate: Sensed/monitored data should be transported to
local/central gateway
Controllers and Actuators: Using Sensor data to arrive at control
strategies for better utlization of resources using Actuators.
39 / 24
Sensors - Example - Temperature
40 / 24
Sensors - Example - Light Dependent Resistor
graph.jpg
41 / 24
Sensors - Measure or Monitor
42 / 24
Actuators
() Robotics
43 / 24
Communication Aspects - Short Range
44 / 24
Communication Aspects - Wide Area
45 / 24
Smart Cities
()
46 / 24
Wide Area Applications
(a) (b)
(c) (d)
47 / 24
Example - Transportation
48 / 24
Personal Area Networks - Wi-Fi, Bluetooth and ZigBee
49 / 24
Wi-Fi - IEEE 802.11 a/b/g/n
50 / 24
Bluetooth - IEEE 802.15.1
I Cable replacement
I Low cost
I Low power
I Small size
I For mobile devices
51 / 24
ZigBee - IEEE 802.15.4
I Low power consumption
I Simple Design
I low costs
52 / 24
Single stage and Multi-stage Networks -Wireless Sensor
Networks(WSN)
I MAC (Medium Access Control) layer provides communication for star, mesh,
and cluster tree-based topologies
I The transmission range of the nodes is assumed to be 10 to 100m with data
rates of 20 to 250 kbps
53 / 24
ZigBee - IEEE 802.15.4
54 / 24
Cellular
55 / 24
Assignment 2
56 / 24