Top Banner
DRK College of Engineering & Technology DATA ACQUISITON USING ARM Project- 19-4-2012 Department of Electronics & Communication Engineering DATA ACQUISITON USING ARM
44

Data Acquisition Using ARM7

Apr 05, 2018

Download

Documents

Dushyanth Sai
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 1/44

DRK College of Engineering &Technology

DATA ACQUISITON USING ARM

Project-19-4-2012

Department of Electronics & CommunicationEngineering

DATA ACQUISITON USING ARM

Page 2: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 2/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

Data acquisition is the process of sampling signals that

measure real world physical conditions and converting theresulting samples into digital numeric values that can be

manipulated. Data acquisition systems abbreviated with

the acronym DAS or DAQ

Page 3: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 3/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

 The components of data acquisition systems include:

•Sensors

•Signal conditioning

•Analog-to-digital converters

•Display unit

Components of Data Acquisition System

Page 4: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 4/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

SIMPLE DAS

Page 5: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 5/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

ARM7

TDMI

LPC2148

Temperature

Sensor 

Humidity

Sensor 

Power Supply

16 X 2

LCD unit

MAX-232

IC

Computer 

Block Diagram

Page 6: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 6/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

230v ACmainssupply

12v DCRegulatedpowersupply

Power Sup

ply

Page 7: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 7/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

ARM

ARM is a 32-bit reduced instruction set computer (RISC)

Instruction set architecture (ISA) developed by ARM Holdings

It was named the Advanced RISC Machine and, before that, the Acorn RISC

Machine.

On April 26th, 1985, ARM was first developed by Acorn Computers

Page 8: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 8/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

Why ARM??

Core Performance-ARM 7 and ARM 9 support 300

MIPS (Million Instructions per Second)

Wide Support

Low Power Consumption

Various special features

Page 9: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 9/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

 ARM Versions

Architecture Family

 ARMv1 ARM1

 ARMv2 ARM2,ARM3

 ARMv3 ARM6,ARM7

 ARMv4 STRONG ARM, ARM7 TDMI, ARM9 TDMI

 ARMv5 ARM7EJ, ARM9E, ARM10E, XSCALE

 ARMv6 ARM11, ARM CORTEX-M

 ARMv7 ARM CORTEX-A, ARM CORTEX-M, ARM CORTEX-R

 ARMv8 No cores are available. Will supports 64-bit data and 

addressing 

Page 10: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 10/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

 ARM7 Family

Page 11: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 11/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

ARM7 TDMI

• The ARM7 TDMI is based on ARM7 Core

 – 3 Stage Pipeline

 – Von Neumann Architecture‐

 T –  Thumb instruction Sets

D – Includes debug extensions

M – Enhanced Multiplier, yield a full 64-bit resultI – Core has Embedded ICE logic extensions

Page 12: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 12/44Project-19-4-2012

BLOCK DIAGRAM

Page 13: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 13/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

PIN DIAGRAM

Page 14: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 14/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

Low Profile Quad Flat Pack (LQFP) packages

On-chip static RAM 32kB

On- chip Flash Program memory 512kB

Two 10-bit ADCs provide a total of 14 analog inputs, with conversion times as low as

2.44 μs per channel.

Two 32-bit timers/external event counters (with four capture and four compare

channels each)

USB 2.0 Full-speed compliant device

Features

Page 15: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 15/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

Interrupt controller 

10-bit DAC

Two UART’S

I2C –bus I/O Controller SPI controller 

SSP Serial I/O controller 

Watch Dog timer 

Real Time Clock PWM

Crystal Oscillator 1-25 MHz

Page 16: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 16/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

RM7 is a 32 bit architecture‐

a Paths and Instructions (ARM) are 32 bits wid

Von Neumann Architecture‐

 – Instructions and Data usesame bus

• Thumb Mode

 – Subset of 16 bit instructions‐

Page 17: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 17/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

Page 18: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 18/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

Processor Modes• Unprivileged Mode

• Most tasks run on this mode

• 

Entered when a high priority Interrupt is occurred

• 

Entered when a low priority interrupt (normal) is

occurred

• Entered on Reset

Page 19: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 19/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

• ARM has 37 registers all of which are 32 bits long1 dedicated Program Counter 

1 dedicated Current Program Status Register (CPSR)

5 dedicated Saved Program Status Register (SPSR)

30 General Purpose Register 

Registers

Page 20: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 20/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

Status Register 

Page 21: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 21/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

ADC

Page 22: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 22/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

Implements Binary search algorithm

Initially, DAC input set to midscale (MSB =1)

VIN < VDAC , MSB remains 1

VIN > VDAC , MSB set to 0

 Algorithm is repeated until LSB

End of algorithm, DAC [input] = ADC [output]

N cycles required for N-bit conversion

ADC

Page 23: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 23/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

FLOW CHART

Page 24: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 24/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

TEMPERATURE SENSOR

LM35

Features

Calibrated directly in ° Celsius (Centigrade)

Linear +10.0 mV/°C

Scale factor is 0.01V/ oC

Rated for full -55° to +150°C range

Less than 60 µA current drainLow self-heating, 0.08°C in still air 

Nonlinearity only ±¼°C typical

DRK

Page 25: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 25/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

BLOCK DIAGRAM OF TEMPERATURE SENSOR

DRK

Page 26: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 26/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

DRK ll f i i

Page 27: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 27/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

HUMIDITY SENSOR

Capacitive type Humidity Sensor

SY-HC-01

DRK C ll f E i i &

Page 28: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 28/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

SPECIFICATION VALUE

Rated Voltage AC 1V max (at 1 KHz)Rated Power AC 0.26 mW

Operating Temperature 0-60ºC

Operating Humidity 20-95%RH

Storage Temperature -35 ~ 80 ºC

Humidity Accuracy ±5%RH(at 25ºC, 60%RH)

SY-HC-01

DRK C ll f E i i &

Page 29: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 29/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

OPERATING RANGE OF SENSOR

DRK C ll f E i i &

Page 30: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 30/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

UART

RDR TDR

RSR TSR 0

BAUD Rate

Generator 

Receiver 

Control

Transmitter 

Control

SCCR

SCSR

RxD

TD

RE

RD

RF PE FE

BClk

Ld

1

SEL

2

SEL

1

SEL

0TIE RIE

3

8Data Bus

8

Receiver 

Transmitter 

TxD

DRK C ll f E i i &

Page 31: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 31/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

UART Frame

Start Bit Always 0

Parity bit As per parity selected / None

Stop Bit Always 1

Data Bits 7 bits(with parity) / 8 bits (with no parity)

DRK C ll f E i i &

Page 32: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 32/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

Create in 1960 and up19-4-2012d in 1969

Logic 1 : -3 to -25 volt

Logic 0 : 3 to 25 volt

The baud rate of the must match with the baud

rate of the pc

PC standard baud rate (hyper terminal

configuration)

2400-4800-9600-14400-19200…….

1 DCD

2 RD

3 TD

4 DTR  

5 GND

6 DSR  

7 RTS

8 CTS

9 RI

RS232 Standard

RS-232 TTL Logic

-25V … -3V +2V … +5V High

+3V … +25V 0V … +0.8V Low

DRK C ll f E i i &

Page 33: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 33/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

MAX-232

RS-232 TTL Logic

-25V … -3V +2V … +5V High

+3V … +25V 0V … +0.8V Low

DRK C ll f E i i &

Page 34: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 34/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

LCD

DRK College of Engineering &

Page 35: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 35/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

LCD Pin No Function  Name

1 Ground (0V) Ground

2 Supply voltage; 5V (4.7V – 5.3V) Vcc

3 Contrast adjustment; through a variable resistor VEE

4 Selects command register when low; and data register when high Register Select

5 Low to write to the register; High to read from theregister 

Read/write

6 Sends data to data pins when a high to low pulse isgiven

Enable

7 8-bit data pins DB0

8 DB1

9 DB210 DB3

11 DB4

12 DB5

13 DB6

14 DB7

15 Backlight VCC (5V) Led+

16 Backlight Ground (0V) Led-

Schematic

Page 36: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 36/44

Project-19-4-2012

Schematic

Sta t

Flow chart

Page 37: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 37/44

Project-19-4-2012

Convert the data in to ASCIIDisplay the values of temperature in LCD

unit

Start

Initialize LCD and

UART

Acquire analog valuesfrom sensors and

convert them to digitalvalues

Transmit the data(ASCII) through UART1 to Serial Port of PC

Transmit the data(ASCII) through UART1 to Serial Port of PC

Flow chart

DRK College of Engineering &

Page 38: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 38/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

Software tools used

KEIL µ-VISION

FLASH MAGIC

HYPER TERMINAL

DRK College of Engineering &

Page 39: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 39/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

HYPERTERMINAL

DRK College of Engineering &

Page 40: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 40/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

 APPLICATIONS

General Research

Manufacturing Industries

Food Processing

Monitoring in Buildings

Automotive

Civil Engineering

Environmental Monitoring

Real Time observation

DRK College of Engineering &

Page 41: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 41/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

FUTURE SCOPE

 This project can be further implemented through wireless technology.

Wireless is one of the most promising technologies for data acquisition.

Monitoring and control can also be done by including buzzer alarm.

Remote Data acquisition and monitoring is possible.

DRK College of Engineering &

Page 42: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 42/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

CONCLUSION

This project is used for industrial applications for data acquisition and monitoring

of various parameters. By using this ARMLPC2148 microcontroller, this project is

successfully implemented.

It can be used in various industries for constant monitoring over a wide

range of temperature and humidity’s for various purposes. Data logging of 

values acquired from serial port to text file can also be done from Hyperterminal

where off-line analysis can be done further using the data acquired.

DRK College of Engineering &

Page 43: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 43/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Project-19-4-2012

Department of Electronics & CommunicationEngineering

?? QUERIES ??

DRK College of Engineering &

Page 44: Data Acquisition Using ARM7

8/2/2019 Data Acquisition Using ARM7

http://slidepdf.com/reader/full/data-acquisition-using-arm7 44/44

DRK College of Engineering &Technology

DATA ACQUISITION USING ARM7

Department of Electronics & CommunicationEngineering

 

THANK YOUTHANK YOU