You are on page 1of 44

Department of Electronics & Communication Engineering

DATA ACQUISITON USING ARM

DATA ACQUISITON USING ARM

19-4-2012

Project-

Department of Electronics & Communication Engineering

DATA ACQUISITION USING ARM7

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

19-4-2012

Project-

Department of Electronics & Communication Engineering

DATA ACQUISITION USING ARM7

Components of Data Acquisition System
The components of data acquisition systems include: •Sensors •Signal conditioning •Analog-to-digital converters •Display unit
19-4-2012
Project-

Department of Electronics & Communication Engineering

DATA ACQUISITION USING ARM7

SIMPLE DAS

19-4-2012

Project-

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 Block Diagram Temperature Sensor ARM7 Humidity Sensor TDMI LPC2148 MAX-232 IC 16 X 2 LCD unit Computer Power Supply 19-4-2012 Project- .

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 Power Supply 12v DC Regulated power supply 230v AC mains supply 19-4-2012 Project- .

the Acorn RISC Machine. before that. ARM was first developed by Acorn Computers 19-4-2012 Project- . On April 26th. 1985.Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 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.

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 Why ARM?? Core Performance-ARM 7 and ARM 9 support 300 MIPS (Million Instructions per Second) Wide Support Low Power Consumption Various special features 19-4-2012 Project- .

Will supports 64-bit data and addressing Family 19-4-2012 Project- . XSCALE ARM11.Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 ARM Versions Architecture ARMv1 ARMv2 ARMv3 ARMv4 ARMv5 ARMv6 ARMv7 ARMv8 ARM1 ARM2. ARM9E.ARM3 ARM6. ARM9 TDMI ARM7EJ.ARM7 STRONG ARM. ARM CORTEX-R No cores are available. ARM CORTEX-M. ARM CORTEX-M ARM CORTEX-A. ARM7 TDMI. ARM10E.

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 ARM7 Family 19-4-2012 Project- .

yield a full 64-bit result I – Core has Embedded ICE logic extensions 19-4-2012 Project- .Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 ARM7 TDMI • The ARM7 TDMI is based on ARM7 Core – 3 Stage Pipeline T – Thumb instruction Sets – D – Includes debug extensions Von‐Neumann Architecture M – Enhanced Multiplier.

BLOCK DIAGRAM 19-4-2012 Project- .

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 PIN DIAGRAM 19-4-2012 Project- .

44 μs per channel.Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 Features Low Profile Quad Flat Pack (LQFP) packages On-chip static RAM 32kB On. Two 32-bit timers/external event counters (with four capture and four compare channels each) USB 2.chip Flash Program memory 512kB Two 10-bit ADCs provide a total of 14 analog inputs.0 Full-speed compliant device 19-4-2012 Project- . with conversion times as low as 2.

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 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 19-4-2012 Project- .

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 ARM7 is a 32‐bit architecture a Paths and Instructions (ARM) are 32 bits wide Von‐Neumann Architecture – Instructions and Data use  same bus • Thumb Mode – Subset of 16‐bit instructions 19-4-2012 Project- .

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 19-4-2012 Project- .

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 Processor Modes • Unprivileged Mode • Most tasks run on this mode • Entered when a high priority Interrupt is o ccurred • Entered when a low priority interrupt (nor mal) is  occurred 19-4-2012 • Entered on Reset Project- .

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 Registers • 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 19-4-2012 Project- .

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 Status Register 19-4-2012 Project- .

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 ADC 19-4-2012 Project- .

MSB remains 1 VIN > VDAC . DAC input set to midscale (MSB =1) VIN < VDAC .Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 ADC Implements Binary search algorithm Initially. MSB set to 0 Algorithm is repeated until LSB End of algorithm. DAC [input] = ADC [output] N cycles required for N-bit conversion 19-4-2012 Project- .

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 FLOW CHART 19-4-2012 Project- .

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 TEMPERATURE SENSOR LM35 Features Calibrated directly in ° Celsius (Centigrade) Linear +10.08°C in still air Nonlinearity only ±¼°C typical 19-4-2012 Project- .01V/ oC Rated for full -55° to +150°C range Less than 60 µA current drain Low self-heating. 0.0 mV/°C Scale factor is 0.

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 BLOCK DIAGRAM OF TEMPERATURE SENSOR 19-4-2012 Project- .

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 19-4-2012 Project- .

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 HUMIDITY SENSOR SY-HC-01 Capacitive type Humidity Sensor 19-4-2012 Project- .

60%RH) VALUE AC 1V max (at 1 KHz) 19-4-2012 Project- .26 mW 0-60ºC 20-95%RH -35 ~ 80 ºC ±5%RH(at 25ºC.Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 SY-HC-01 SPECIFICATION Rated Voltage Rated Power Operating Temperature Operating Humidity Storage Temperature Humidity Accuracy AC 0.

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 OPERATING RANGE OF SENSOR 19-4-2012 Project- .

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 UART Data Bus 8 RDR SCCR TIE RIE Ld SEL SEL SEL 2 1 0 TDR RxD RSR 3 BAUD Rate Generator 1 TSR 0 TxD Receiver Control Receiver TD RD RE RF BClk Transmitter Control SCSR PE FE 8 Transmitter 19-4-2012 Project- .

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 UART Frame Start Bit Parity bit Stop Bit Data Bits Always 0 As per parity selected / None Always 1 7 bits(with parity) / 8 bits (with no parity) 19-4-2012 Project- .

8V Logic High Low Project- 1 2 3 4 5 6 7 8 9 DCD RD TD DTR GND DSR RTS CTS RI 19-4-2012 .Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7      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……. RS-232 -25V … -3V +3V … +25V TTL +2V … +5V 0V … +0.

8V Logic High Low Project- 19-4-2012 .Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 RS-232 -25V … -3V +3V … +25V TTL +2V … +5V 0V … +0.

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 19-4-2012 Project- .

and data register when high Low to write to the register. 5V (4. through a variable resistor Selects command register when low.7V – 5.Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 Pin No Function 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Ground (0V) Supply voltage. High to read from the register Sends data to data pins when a high to low pulse is given 8-bit data pins Name Ground Vcc VEE Register Select Read/write Enable DB0 DB1 DB2 DB3 DB4 DB5 DB6 DB7 Led+ LedProject- Backlight VCC (5V) Backlight Ground (0V) 19-4-2012 .3V) Contrast adjustment.

Schematic 19-4-2012 Project- .

Flow chart Start Initialize LCD and UART Acquire analog values from sensors and convert them to digital values Display the values of temperature in LCD unit Convert the data in to ASCII Transmit the data (ASCII) through UART 1 to Serial Port of PC 19-4-2012 Project- .

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 Software tools used KEIL µ-VISION FLASH MAGIC HYPER TERMINAL 19-4-2012 Project- .

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 HYPERTERMINAL 19-4-2012 Project- .

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 APPLICATIONS General Research Manufacturing Industries Food Processing Monitoring in Buildings Automotive Civil Engineering Environmental Monitoring Real Time observation 19-4-2012 Project- .

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 FUTURE SCOPE This project can be further implemented through wireless technology. Wireless is one of the most promising technologies for data acquisition. Remote Data acquisition and monitoring is possible. Monitoring and control can also be done by including buzzer alarm. 19-4-2012 Project- .

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 CONCLUSION This project is used for industrial applications for data acquisition and monitoring of various parameters. 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. 19-4-2012 Project- . 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.

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 ?? QUERIES ?? 19-4-2012 Project- .

Department of Electronics & Communication Engineering DATA ACQUISITION USING ARM7 THANK YOU 19-4-2012 Project- .