Microcontroller based system design Asst. Prof. Dr. Alper ŞİŞMAN.

Slides:



Advertisements
Similar presentations
Analog to digital converter
Advertisements

Jordan Barry Victor Brzeski
The Industry’s Smallest 16 Bit ADC’s
Chung-Ta King National Tsing Hua University
Digital Thermostat and Data Logger Brandon Wagner and David Southwick.
Microcontroller based system design Asst. Prof. Dr. Alper ŞİŞMAN.
Sistemi Elettronici Programmabili13-1 MULTI OSC + CLOCK FILTER LVD POWER SUPPLY CONTROL 8 BIT CORE ALU PROGRAM MEMORY RAM I2CI2C PORT A SPI PORT B 16-BIT.
ECE 265 – LECTURE 14 Analog Signal Acquisition The A/D converters 5/14/ ECE265.
Analog/Digital Subsystem
Analog Comparator Positive input chooses bet. PB2 and Bandgap Reference. Negative input chooses bet. PB3 and the 8 inputs of the A/D. ACME= Analog Comparator.
Oscilloscope Watch Teardown. Agenda History and General overview Hardware design: – Block diagram and general overview – Choice of the microcontroller.
AD Converter UNIT 19 로봇 SW 교육원 조용수. 학습 목표 AD Converter AD Converter Register 2.
Data acquisition and manipulation
Explain the introduction to ADC, ADC characteristics, Programming ADC using PIC18, Introduction to DAC and DAC interfacing with PIC18.
1 Analog-to-Digital Converter (ADC). 2 ADC Features (1/3) ADC conversion rate 1 MHz and 12-bit resolution – 1µs conversion time at 56 MHz – 1.17µs conversion.
Analog to Digital Converters (ADC)
H. Huang Transparency No.11-1 The 68HC11 Microcontroller Chapter 11: 68HC11 Analog to Digital Converter The 68HC11 Microcontroller Han-Way Huang Minnesota.
MS_uC / dnd / V RTC - Real Time Clock Programming Microcontroller ADC – Analog Digital Converter Autumn term K Byte Burst Flash 64K or 96K.
1 Project supervised by: Dr Michael Gandelsman Project performed by: Roman Paleria, Avi Yona 12/5/2003 Multi-channel Data Acquisition System Mid-Term Presentation.
Analog-to-Digital Converters
1 ECE 263 Embedded System Design Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System.
ASPPRATECH.
1 ARM University Program Copyright © ARM Ltd 2013 Analog Interfacing.
Embedded System Design Laboratory October 11, 2002Stanford University - EE281 Lecture #4#1 Lecture #4 Outline Announcements Project Proposal AVR Processor.
Digital to Analogue Converter
Lecture 13 A/D Converter & D/A Converter. Outline Basic Operation Single Scan Mode Continuous Scan Mode Group Scan Mode Interrupt Sources Registers D/A.
ELE2MIC Lecture 21 The AVR Sleep Modes ATMEGA128’s Analog to Digital Converter –Features –Block Diagram –Clock Source –Input Sources –Interrupts –BandGap.
Microcontroller based system design Asst. Prof. Dr. Alper ŞİŞMAN.
SIGMA-DELTA ADC SD16_A Sigma-Delta ADC Shruthi Sujendra.
Renesas Electronics Corporation © 2010 Renesas Electronics America Inc. All rights reserved. RX 12 Bit Analog-to-Digital Converter A Rev /1/10.
ECE/CS-352: Embedded Microcontroller Systems The Silicon Laboratories C8051F020 Enhanced 8051 Part 4 Timer3, Temperature Sensor, AD0WINT.
MCS51 - lecture 6. Lecture 6 1/32 Extending MCS51 system Built-in peripherals MCS51 family.
The Silicon Laboratories C8051F020
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose:  This course provides an overview of the serial communication.
Chapter 5 - Interrupts.
Comparators, DAC, and ADC
Lab 3: ADC.
ECE 2799 Electrical and Computer Engineering Design ANALOG to DIGITAL CONVERSION Prof. Bitar Last Update:
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions.
Analog to Digital Converter (ADC)
Digital-to-Analog Analog-to-Digital Week 10. Data Handling Systems  Both data about the physical world and control signals sent to interact with the.
Closed Loop Temperature Control Circuit with LCD Display Mike Wooldridge ECE 4330 Embedded Systems.
0808/0809 ADC. Block Diagram ADC ADC0808/ADC Bit μP Compatible A/D Converters with 8-Channel Multiplexer The 8-bit A/D converter uses successive.
ECE 101 Exploring Electrical Engineering Chapter 7 Data Acquisition Herbert G. Mayer, PSU Status 11/30/2015 Derived with permission from PSU Prof. Phillip.
ADC 1 Analog to Digital Converter. ADC 2 ADC Features n General Features -Supports 8 or 10-bit resolution Modes, -Track period fully programmable up to.
BITS Pilani Pilani Campus Pawan Sharma ES C263 Microprocessor Programming and Interfacing.
Renesas Electronics Europe GmbH A © 2010 Renesas Electronics Corporation. All rights reserved. RL78 AD converter.
By: Shivanshi pandya(30) Ayushi chourasia (3) Pranavi chhikniwala(6)
CEng3361 CENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT Spring 2011 Recitation 06.
Application Case Study Security Camera Controller
Chapter 12: Analog-to-Digital Converter
Environment Temperature Monitor
Workshop 3. Digital-to-analog and analog-to digital conversion
Analog Comparator An analog comparator is available on pins PE2(AIN0), PE3(AIN1) The comparator operates like any other comparator. -when (+) exceeds (-)
Microcontroller Applications
UNIT – Microcontroller.
Programming Microcontroller ADC – Analog Digital Converter
Reset Sources and Watchdog Timer
ADC, DAC, and Sensor Interfacing
Digital Theremin with LED
ADC, DAC, and Sensor Interfacing
PIC18F458 Analog-to-Digital
Lecture 13 A/D Converter & D/A Converter
ADC and DAC Data Converter
MSP432™ MCUs Training Part 6: Analog Peripherals
AVR – ATmega103(ATMEL) Architecture & Summary
Prof. Chung-Ta King Department of Computer Science
Embedded Systems Workshop 2
ADC and DAC Data Converter
PIC Microcontroller ADC interfacing Prof. Ashvini Kulkarni
Presentation transcript:

Microcontroller based system design Asst. Prof. Dr. Alper ŞİŞMAN

ADC Hardware Three 12-bit analog-to-digital converters are embedded and each ADC shares up to 16 external channels, performing conversions in the single-shot or scan mode. In scan mode, automatic conversion is performed on a selected group of analog inputs. The ADC can be served by the DMA controller. An analog watchdog feature allows very precise monitoring of the converted voltage of one, some or all selected channels. An interrupt is generated when the converted voltage is outside the programmed thresholds. To synchronize A/D conversion and timers, the ADCs could be triggered by any of TIM1, TIM2, TIM3, TIM4, TIM5, or TIM8 timer.

Temperature Sensor / VBat The temperature sensor has to generate a voltage that varies linearly with temperature. The temperature sensor is internally connected to the ADC1_IN16 input channel which is used to convert the sensor output voltage into a digital value.

ADC Hardware STM32F405xx/STM32F407xx Datasheet

ADC Characteristics

Tempereture/Battery Sensor Characteristics

ADC Registers Regular mode: SWSTART: ADCx->CR2 bit#30 Injected mode: JSWSTART: ADCx->CR2 bit#22 Activate ADC: ADON: ADCx->CR2 bit#0 End of conversion conntrol : EOC: ADCx->SR bit#1 End of conversion control : JEOC: ADCx->SR bit#2 Read the result when conversion ends: Regular Mode: İnjected Mode: Result DATA REGISTER: ADCx->DR Result DATA REGISTER: ADCx->JDR

Clock: ADC1: RCC->APB2ENR -> bit#8 ADC2: RCC->APB2ENR -> bit#9 ADC3: RCC->APB2ENR -> bit#10 ADC Prescaler: (if needed) ADC->CCR -> bit# 17:16

Regular mode: Sequence length: SQR1: ADCx->SQR1 bit#23:20 SQR1,SQR2,SQR3: give the sequence in the desired order Injected mode: Sequence length: JSQR: ADCx->JSQR bit#21:20 JSQR : give the sequence in the desired order

Enable temperature sensor: TSVREFE: ADC->CCR bit#23

Single conversion mode operation

Cont. conversion mode operation Continious conversion: CONT: ADCx->CR2 bit#1

Timing Diagram

Analog watchdog: ADCx->HTR: High threshold ADCx->LTR: Low threshold AWDEN: ADCx->CR1 bit#23 AWDSGL: ADCx->CR1: bit#9 AWDCH: ADCx->CR1 bit#4:0 Injected Channels: JAWDEN: ADCx->CR1 bit#22

SCAN: ADCx->CR1 bit#8

Channelx sampling time selection: ADCx->SMPR1 ADCx->SMPR2 ADCx->SMPR3 Wrıte the proper setting to the area of channel which will be set.