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.

Slides:



Advertisements
Similar presentations
Analog to digital converter
Advertisements

MC68HC11 System Overview. System block diagram (A8 version)
4-1 Timers Timers can be used for  timing  event counting  pulse width measurement  pulse generation  frequency multiplication There are 8 Timers.
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.
Introduction of Holtek HT-46 series MCU
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)
IO Controller Module Arbitrates IO from the CCP Physically separable from CCP –Can be used as independent data logger or used in future projects. Implemented.
Infineon Technologies Corp. June 99 1 HOT167-1 Version 2.0 F PWMmax = x 50ns = 78 kHz Pulse Width Modulation Unit (PWM) (20 MHz)  4 independent.
ST7 MICROCONTROLLER TRAINING
HT46 A/D Type MCU Series Data Memory (Byte) Program Memory HT46R22 (OTP) HT46C22 (Mask) 2Kx Kx16 4Kx HT46R23 (OTP) HT46C23 (Mask) HT46R24.
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
1 ECE 263 Embedded System Design Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System.
1.  8051 Timers “count up,” incrementing the Timer’s respective “count register” each time there is a triggering clock pulse. 2  When the “count register”
1-1 SYS Module System Clocks FXTAL BCLK Reset Circuit Reset Conditions Bootstrap Initialization.
NS Training Hardware. System Controller Module.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
The 8051 Microcontroller architecture
Renesas Electronics Europe GmbH A © 2010 Renesas Electronics Corporation. All rights reserved. RL78 Clock Generator.
7/23 Timers in Coldfire Processor Computer Science & Engineering Department Arizona State University Tempe, AZ Dr. Yann-Hang Lee (480)
ARM Timers.
16F877A. Timer 0 The Timer0 module timer/counter has the following features: –8-bit timer/counter –Readable and writable –8-bit software programmable.
Clock Options and Sleep Modes. Clock Sources Flash Fuse bits can be programmed to choose one of the following Clock sources: 1. External RC Osc. f = 1/(3RC).
DLS Digital Controller Tony Dobbing Head of Power Supplies Group.
AT91 Embedded Peripherals
MCU: Interrupts and Timers Ganesh Pitchiah. What’s an MCU ?
ELE2MIC Lecture 21 The AVR Sleep Modes ATMEGA128’s Analog to Digital Converter –Features –Block Diagram –Clock Source –Input Sources –Interrupts –BandGap.
ECE 447 Fall 2009 Lecture 10: TI MSP430 Timers and Capture Modes.
Timers.
1 General Purpose and Alternate Function I/O (GPIO and AFIO)
ELE22MIC Lecture 18 The AVR Sleep Modes The ATMEGA128’s Timer System
MICROCONTROLLER SYSTEMS Part 1. Figure 1.1Elements of a digital controller CPU Central Processing Unit Input Peripherals Output Peripherals ROM Read Only.
Atmel Atmega128 Overview ALU Particulars RISC Architecture 133, Mostly single cycle instructions 2 Address instructions (opcode, Rs, Rd, offset) 32x8 Register.
1 68HC11 Timer Chapter HC11 Timer Subsystem Several timing functions: Basic timing Basic timing Real time interrupts Real time interrupts Output.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Module Introduction Purpose  This training module provides an overview of the analog interfaces.
8254 Timer.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose:  This course provides an overview of the Direct Memory.
1 68HC11 Timer HC11 or HC12: Chapter HC11 Timer Subsystem  Several timing functions: Basic timing Basic timing Real time interrupts Real time.
Microcontroller based system design Asst. Prof. Dr. Alper ŞİŞMAN.
Lab 3: ADC.
Device Overview 1.  The advantages of all PIC18Fxxxx microcontrollers:  High computational performance  High-endurance  Enhanced Flash program memory.
ECE 371 Microprocessor Interfacing
#1 of 10 Tutorial Introduction PURPOSE -To explain how to configure and use the Timer Interface Module in common applications OBJECTIVES: -Identify the.
Timer 1 and 2 operation, PWM Principles. Timer 1 Operation.
Seth Schwiethale James Crosetto James Ellison.  square pulse of ms, repeats every 20 ms  It is the same for both steering and acceleration 
Closed Loop Temperature Control Circuit with LCD Display Mike Wooldridge ECE 4330 Embedded Systems.
HJD Institute of Technical Education & Research- Kera(Kutch) The 8051 Microcontroller architecture PREPARED BY: RAYMA SOHIL( )
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.
DEPARTMENT OF ELECTRONICS ENGINEERING V-SEMESTER MICROPROCESSOR & MICROCONTROLLER 1 CHAPTER NO microcontroller & programming.
Renesas Electronics Europe GmbH A © 2010 Renesas Electronics Corporation. All rights reserved. RL78 AD converter.
USING TV REMOTE AS A CORDLESS MOUSE FOR THE COMPUTER
CORDLESS MOUSE FEATURES BY TV REMOTE USING PIC MICROCONTROLLER
Application Case Study Christmas Lights Controller
Why are Timer Functions Important?
Lecture 10: TI MSP430 Timers and Capture Modes
Application Case Study Security Camera Controller
Analog Comparator An analog comparator is available on pins PE2(AIN0), PE3(AIN1) The comparator operates like any other comparator. -when (+) exceeds (-)
8051 Timers Timers are the peripherals of the 8051 Microcontroller.
Programming Microcontroller ADC – Analog Digital Converter
AVR Addressing Modes Subject: Microcontoller & Interfacing
Timer/Counter Modified from Dr. Lam Phung’s Slides.
Introduction to Microprocessors and Microcontrollers
MSP432™ MCUs Training Part 6: Analog Peripherals
AVR – ATmega103(ATMEL) Architecture & Summary
Timer/Counter Timer/Counter 0 Timer/Counter 1 Timer/Counter 2 8 bit
Programmable Interval Timer
ADC and DAC Data Converter
Presentation transcript:

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 TIMER A PORT C 8-BIT ADC 16-BIT TIMER B WATCHDOG INTERNAL CLOCK ADDRESS AND DATA BUS OSC1 OSC2 VDD VSS nRESET PA7..0 (8 bits) PB7..0 (8 bits) PC5..0 (6 bits) ST7: Block Diagram

Sistemi Elettronici Programmabili13-2 ST Package

Sistemi Elettronici Programmabili13-3 ST72254 Memory Map

Sistemi Elettronici Programmabili13-4 ST72254 – Interrupt Vector

Sistemi Elettronici Programmabili13-5 ST72254 Registers (1)

Sistemi Elettronici Programmabili13-6 ST72254 Registers (2)

Sistemi Elettronici Programmabili13-7 ST72254 Registers (IO)

Sistemi Elettronici Programmabili13-8 ST72254 Registers (Timer)

Sistemi Elettronici Programmabili13-9 ST72254 Registers (ADC)

Sistemi Elettronici Programmabili13-10 IO Port: Block Diagram

Sistemi Elettronici Programmabili13-11 IO Port Configurations - Input

Sistemi Elettronici Programmabili13-12 IO Port Configurations – Output Opendrain

Sistemi Elettronici Programmabili13-13 IO Port Configurations – Output Push Pull

Sistemi Elettronici Programmabili13-14 IO Port: Registers

Sistemi Elettronici Programmabili13-15 ADC: Overview (1) 8-BIT SUCCESSIVE APPROXIMATIONS CONVERTER WITH UP TO 8 ANALOG CHANNELS FEATURE : –Accuracy : 1 LSB –Total Unajusted Error MAX : 1 LSB –Conversion time : 24 CPU cycle ie 3µs at full speed (8MHz) FLAGS –COCO : end of conversion (Status flag) –ADON : ADC on/off bit (to reduce power consumption)

Sistemi Elettronici Programmabili13-16 ADC: Overview (2) LOW CONSUMPTION MODES –Wait mode doesn't affect the ADC –Halt mode stops the ADC. HARDWARE –ST72334 and ST725xx : Vdda and Vssa must be connected externally respectivelly to Vdd and Vss through decoupling capacitors. –ST72254 : connection done internally RATIOMETRIC In the Functionnal Range –If analog voltage input > Vdd : converted result = FFh (no overflow indication) –If analog voltage input < Vss : converted result = 00h (no underflow indication)

Sistemi Elettronici Programmabili13-17 ADC: Block Diagram

Sistemi Elettronici Programmabili13-18 ADC: Registers

Sistemi Elettronici Programmabili13-19 Timer: Block Diagram

Sistemi Elettronici Programmabili13-20 Timer: Block Diagram (H)

Sistemi Elettronici Programmabili13-21 Timer: Block Diagram (L)

Sistemi Elettronici Programmabili13-22 Timer: Read Sequence

Sistemi Elettronici Programmabili13-23 Timer: Input Capture

Sistemi Elettronici Programmabili13-24 Timer: Output Compare

Sistemi Elettronici Programmabili13-25 TIMER: PWM Mode Automatic generation of a Pulse Width Modulated signal Period &pulse lenght set by software: –The first Output Compare Register OC1R contains the length of the pulse –The second Output Compare Register OCR2 contains the period of the pulse Resolution up to 100 steps at 20 KHz (fCPU =4 MHz): 1% of accuracy on the duty cycle t T

Sistemi Elettronici Programmabili13-26 Timer: PWM Flow When the free running counter reaches OC2R register value When the free running counter reaches OC1R register value l Free running counter is initialized to FFFCh l OLVL2 bit level is applied on the OCMP1 pin l ICF1 bit is set l OLVL1 bit level is applied on the OCMP1 pin

Sistemi Elettronici Programmabili13-27 Timer: PWM Counter OCMP1 Ouput Compare pin Timer output FFFFh Compare h Compare 2 FFFCh Ttimer × Tmax = OLVL1=0 OLVL2= 1 FREE RUNNING COUNTER VALUE time

Sistemi Elettronici Programmabili13-28 Timer: CR1

Sistemi Elettronici Programmabili13-29 Timer: CR2

Sistemi Elettronici Programmabili13-30 Timer: SR

Sistemi Elettronici Programmabili13-31 Schmitt Trigger: Caratteristica Inverter Sistemi Elettronici Programmabili13-31 t t Vin Vout

Sistemi Elettronici Programmabili13-32 Schmitt Trigger: Caratteristica Vin Vout

Sistemi Elettronici Programmabili13-33 Schmitt Trigger: Inverter - Commutazioni Spurie t t Vin Vout

Sistemi Elettronici Programmabili13-34 Schmitt Trigger: Commutazione t t Vin Vout