Data Acquisition Using ARM
-
Upload
dushyanth-sai -
Category
Documents
-
view
153 -
download
2
Transcript of Data Acquisition Using ARM
DATA ACQUISITON USING ARM
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
DATA ACQUISITON USING ARM
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
Data acquisition is the process of sampling signals that measure real world physical conditions and converting the resulting samples into digital numeric values that can be manipulated. Data acquisition systems abbreviated with the acronym DAS or DAQ
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
The components of data acquisition systems include:•Sensors
•Signal conditioning
•Analog-to-digital converters
•Display unit
Components of Data Acquisition System
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
SIMPLE DAS
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
ARM7
TDMI
LPC2148
Temperature Sensor
Humidity Sensor
Power Supply
16 X 2
LCD unit
MAX-232
IC
Computer
Block Diagram
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
230v AC
mains supply
12v DC Regulated
power supply
Power Supply
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
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
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
Why ARM??
Core Performance-ARM 7 and ARM 9 support 300
MIPS (Million Instructions per Second)
Wide Support
Low Power Consumption
Various special features
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
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
ARMv8No cores are available. Will supports 64-bit data and addressing
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
ARM7 Family
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
ARM7 TDMI
• The ARM7 TDMI is based on ARM7 Core– 3 Stage Pipeline– Von Neumann Architecture‐T – Thumb instruction SetsD – Includes debug extensionsM – Enhanced Multiplier, yield a full 64-bit resultI – Core has Embedded ICE logic extensions
Project- Seminar
19-4-2012
BLOCK DIAGRAM
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
PIN DIAGRAM
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
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 comparechannels each)
USB 2.0 Full-speed compliant device
Features
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
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
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
• ARM7 is a 32 bit architecture‐• Data Paths and Instructions (ARM) are 32 bits wide
• Von Neumann Architecture‐– Instructions and Data use same bus
• Thumb Mode– Subset of 16 bit instructions‐
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
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• Entered on Software Interrupt
• To handle memory access violations
• To handle un defined instructions‐
• Privileged mode using the same registers as user mode
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
• ARM has 37 registers all of which are 32 bits long
1 dedicated Program Counter
1 dedicated Current Program Status Register (CPSR)
5 dedicated Saved Program Status Register (SPSR)
30 General Purpose Register
Registers
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
Status Register
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
ADC
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
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
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
FLOW CHART
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
TEMPERATURE SENSOR
LM35
FeaturesCalibrated 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 drain
Low self-heating, 0.08°C in still air
Nonlinearity only ±¼°C typical
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
BLOCK DIAGRAM OF TEMPERATURE SENSOR
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
HUMIDITY SENSOR
Capacitive type Humidity Sensor
SY-HC-01
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
SPECIFICATION VALUERated Voltage AC 1V max (at 1 KHz)
Rated Power AC 0.26 mWOperating Temperature 0-60ºCOperating Humidity 20-95%RH
Storage Temperature -35 ~ 80 ºC
Humidity Accuracy ±5%RH(at 25ºC, 60%RH)
SY-HC-01
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
OPERATING RANGE OF SENSOR
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
UART
RDR TDR
RSR TSR 0
BAUD Rate
GeneratorReceiver
Control
Transmitter
Control
SCCR
SCSR
RxD
TDRE
RDRF PE FE
BClk
Ld
1
SEL 2
SEL 1
SEL 0TIE RIE
3
8Data Bus
8Receiver
Transmitter
TxD
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
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)
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
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 DCD2 RD3 TD4 DTR5 GND6 DSR7 RTS8 CTS9 RI
RS-232 TTL Logic
-25V … -3V +2V … +5V High
+3V … +25V 0V … +0.8V Low
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
RS-232 TTL Logic
-25V … -3V +2V … +5V High
+3V … +25V 0V … +0.8V Low
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
Pin No Function Name
1 Ground (0V) Ground2 Supply voltage; 5V (4.7V – 5.3V) Vcc3 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 the register
Read/write
6 Sends data to data pins when a high to low pulse is given
Enable
7
8-bit data pins
DB08 DB19 DB2
10 DB311 DB412 DB513 DB614 DB715 Backlight VCC (5V) Led+16 Backlight Ground (0V) Led-
Project- Seminar
19-4-2012
Schematic
Project- Seminar
19-4-2012
Convert the data in to ASCIIDisplay the values of temperature in LCD
unit
Start
Initialize LCD and UART
Acquire analog values from sensors and
convert them to digital values
Transmit the data (ASCII) through UART 1 to Serial Port of PC
Flow chart
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
Software tools usedKEIL µ-VISION
FLASH MAGIC
HYPER TERMINAL
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
HYPERTERMINAL
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
APPLICATIONS
General Research
Manufacturing Industries
Food Processing
Monitoring in Buildings
Automotive
Civil Engineering
Environmental Monitoring
Real Time observation
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
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.
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
CONCLUSIONThis 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.
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
?? QUERIES ??
DATA ACQUISITION USING ARM7
Project- Seminar
19-4-2012
Department of Electronics & Communication Engineering
THANK YOU THANK YOU