Microcontrollers and Embedded System
Embedded Systems are a combination of
Hardware (microcontrollers) and Software
(developed in assembler, c, c++…) designed to
perform a specific function
An embedded product uses microcontrollers to
do one task and one task only.
1
Microcontroll
Ext int
er
interrupt
Address Bus (Uni dirctional)
CPU
Data Bus (Bi directional)
Control Lines
OSC
2
Microcontroll
Ext int
er
interrupt
Timer0
Timer1
ROM RAM
CPU
Bus 4 I/o Serial
control ports port
OSC
3
Microcontroller Manufacturing Companies
There are FOUR major companies manufacturing
8 bit controllers
1. Motorola (6811)
2. Intel (8051 MCS51)
3. Zilog (Z8)
4. PIC (16X____) Microchip
4
Port Assignments
Port 0 : Input/Output Port & AD0-AD7 for ext memory
Port 1 : Input/Output Port
Port 2 : Input/Output Port & A8-A15 for ext Memory
Port 3 : Input/Output Port
P3.0 : RxD
P3.1 : TxD
P3.2 : INTO’
P3.3 : INT1’
P3.4 : T0
P3.5 : T1
P3.6 : WR’
P3.7 : RD’
5
Interactive Vehicle Tracking System
It is a system which can track the vehicles for its movement
through out the trip with GPS And GPRS.
The data collected at different data points are stored at the vehicle
itself and in the computers of respective data points then to the
server.
The Data are
vehicle number, started time, stop time, Fuel at, Date, Fuel
type, Qty, Amount, Balance, Driver ID …..
The Data Points are
the places where the interactive RF transmitter and
receivers are fixed say BPCL fuel stations.
6
At the data points
GPS & GPRS based RF transmitter and receivers (RF System) are
connected to a computers
GPS system is capable of interacting over area of 1 square metre
The GPS will transmit the data in
a periodic interval continuously
from the data point
7
Server
Block diagram of data locker
Receiver Memory
D i s p l a y
GPS & GPRS
Micro
Controller
Transmitter
sensors
Start/stop alarm
Load
Fuel
8
Block diagram of data point
Server
Receiver
GPS & GPRS SMS
Micro
Controller Printer
Transmitter
Pump
Pump link
circuit 9
Advantages
• Compatible with any SMART cards
• Data is stored at data point (fuel station computer) and at the vehicle
•Vehicle owners can verify trip data from their office
• Data can be online with server
• Data can be on auto SMS from vehicle(GSM/CDMA/GPRS)
• Owners of the vehicles and dealers are not at the dark, but given with lot of
information about their vehicles for analysis
• 100% automated system
10