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).

Slides:



Advertisements
Similar presentations
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Advertisements

Lizard Labs Peripheral Reflex System
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.
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
8-Bit Timer/Counter 0 Counter/Timer 0 and 2 (TCNT0, TCNT2) are nearly identical. Differences: -TCNT0 can run off an external 32Khz clock (Tosc) or the.
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.
External & internal Interrupts. Interrupt Sources There are 21 different interrupts and each one has its own vector located in a predefined location at.
MSP Ultra-Low Power | High Integration | Easy-to-Use “How To” Series: Clock System.
The Cortex-M3 Embedded Systems: LM3S9B96 Microcontroller – System Control Refer to Chapter 6 in the reference book “Stellaris® LM3S9B96 Microcontroller.
Clock Generation Module MTT CLOCK GENERATION MODULE (CGM)
NS Training Hardware. System Controller Module.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
SENIOR DESIGN 10/3.
The 8051 Microcontroller architecture
Lecture – 6 PIC18 Family Hardware Specifications 1.
3-1 System peripherals & Bus Structure Memory map of the LPC2300 device is one contiguous 32-bit address range. However, the device itself is made up of.
Microprocessor based Design for Biomedical Applications MBE 3 – MDBA II : The ATmega8 Basic Features (1)
Renesas Electronics Europe GmbH A © 2010 Renesas Electronics Corporation. All rights reserved. RL78 Clock Generator.
1 Chapter 4 Timer Operation (I. Scott MacKenzie).
System Clocks.
1 AVR Session 2 Master : Dr.jafari Authors: M.H Edrisi, hadi.edrisi yyyy aaaa hhhh oooo oooo.... cccc oooo mmmm.
16F877A. Timer 0 The Timer0 module timer/counter has the following features: –8-bit timer/counter –Readable and writable –8-bit software programmable.
MSP430 Mixed Signal Microcontroller – Parte 2 Afonso Ferreira Miguel Source: slau056d – Texas instruments.
Timers The timers of the PIC16C7X microcontroller can be briefly described in only one sentence. There are three completely independent timers/counters.
AT91 Embedded Peripherals
Prepared by Eng. Musa Alyaman1 Chapter Seven Chapter Seven PIC16F87x.
بسمه تعالي AVR Microcontrollers. The ATmega8 Basic Features -1.
ELE22MIC Lecture 18 The AVR Sleep Modes The ATMEGA128’s Timer System
Atmel Atmega128 Overview ALU Particulars RISC Architecture 133, Mostly single cycle instructions 2 Address instructions (opcode, Rs, Rd, offset) 32x8 Register.
Low Power Modes MTT48 V LOW POWER OPERATION.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
INTRODUCTION TO PIC MICROCONTROLLER. Overview and Features The term PIC stands for Peripheral Interface Controller. Microchip Technology, USA. Basically.
DsPIC30F4011 Fall DIP Switches  The upper four switches of SW1 are used to enable LEDs connected to PORTB/C, PORTA/D, PORTE and PORTF. For example,
Device Overview 1.  The advantages of all PIC18Fxxxx microcontrollers:  High computational performance  High-endurance  Enhanced Flash program memory.
Features of the PIC18 microcontroller - 8-bit CPU - 2 MB program memory space (internal 32KB to 128KB) bytes to 1KB of data EEPROM - Up to 4096 bytes.
Lecture 4 General-Purpose Input/Output NCHUEE 720A Lab Prof. Jichiang Tsai.
Chapter Microcontroller
Components of a typical full-featured microcontroller.
Product Overview 박 유 진박 유 진.  Nordic Semiconductor ASA(Norway 1983)  Ultra Low Power Wireless Communication System Solution  Short Range Radio Communication(20.
GROUP MEMBERS: SUMEET HOODA. RAJDEEP PATRE. DHIRAJ GAONKAR. LIVE HUMAN DETECTION USING WIRELESS REMOTE CONTROLLED ROBOT.
NAM S.B MDLAB. Electronic Engineering, Kangwon National University 1.
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.
Special Features. Device Configuration bits Revision Device Configuration bits Revision On-chip Power-on Reset (POR) Revision On-chip Power-on Reset (POR)
STM32 및 개발보드 소개 Jang Hyunsung Embedded Systems Lab. Dept. of CSE, PNU
Mobile phone keypad sensed password entry for door opening.
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
16F877A.
AT91 Power Management This training module describes the Power Management options provided by the AT91 family of microcontrollers. These options address.
CC2430 module Jinho Son Real-Time System Lab.
C. K. Pithawalla College of Engineering and Technology, Surat
Power Management and Sleep Modes
Analog Comparator An analog comparator is available on pins PE2(AIN0), PE3(AIN1) The comparator operates like any other comparator. -when (+) exceeds (-)
Power Management and Sleep Modes
BITS EDU. CAMPUS , VARNAMA
Reset Sources and Watchdog Timer
8-Bit Timer/Counter 0 Counter/Timer 0 and 2 (TCNT0, TCNT2) are nearly identical. Differences: -TCNT0 can run off an external 32Khz clock (Tosc) or the.
میکرو کنترلر های AVR مدرس: بهمن پور
The Arduino Microcontroller: Atmel AVR Atmega 328
Subject Name: Microcontroller Subject Code: 10ES42
Introduction to Microprocessors and Microcontrollers
Introduction to the Atmel AVR Butterfly
Lecturer: Reza Arjmandi Autumn 2015
전자의료시스템 및 실습 System Configuration/Interrupt
Fuse Bits And Clock Sources
AVR – ATmega103(ATMEL) Architecture & Summary
Presentation transcript:

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). C should be at least 22 pF.

2. External Clock: An external clock source is connected to XTAL1 pin and a stability better than 2% is needed. Fuse bits CKSEL3..0 = Crystal Osc: Either a quartz crystal or a ceramic resonator may be used. 4. Calibrated Internal RC-Osc: nominal values at 5V and 25°C are 1.0 / 2.0 / 4.0 / 8.0 MHz no external components are needed. during Reset the RC Oscillator is calibrated to give a frequency within ± 3% of the nominal frequency

Using the AVR-Studio, the clock can be selected, accordingly internal fuse settings will be programmed.

► The AVR Clock Control Unit generates and distributes different clock signals to various resources, namely: ► clkI/O to General I/O Modules (like Timer/Counters, Communication system and also the External Interrupt module and Asynchronous Timer/Counter. ► clkADC to A/D. ► clkCPU to CPU Core and RAM. ► clkFLASH to Flash and EEPROM. ► In different sleep modes some of these clock signals are inactive. ► The Asynchronous Timer oscillator allows the Asynchronous Timer/Counter 2 to be clocked directly from an external kHz clock crystal. This allows using this Timer/Counter as a real-time counter even when the device is in sleep mode. Clock Distribution

Clock Distribution (contd.)

Sleep Modes_Power Management Functions The AVR provides six sleep modes allowing the user to save power, they namely shut down unused modules in the μC. the file sleep.h, located in the.\INC subdirectory. must be #included before using the functions. #include To enable sleep modes the following function is used: sleep_enable() And to leave the sleep modes use the function: sleep_disable() * only available with external crystals. FunctionSleep Mode idle()Idle powerdown()Power-down powersave()Power-save standby()Standby * extended_standby()Extended Standby *

Sleep Modes_Power Management Functions (continued) idle In this mode the CPU is stopped, but the SPI, USART, Analog Comparator, ADC, Two wire Serial Interface, Timer/Counters, Watchdog, and the interrupt system continue operating; whereby the CPU can wake up from external triggered interrupts as well as internal ones. This sleep mode basically halts clkCPU and clkFLASH powerdown the External Oscillator is stopped, while the External interrupts, the Two- wire Serial Interface address match, and the Watchdog continue operating. Only an External Reset, a Watchdog Reset, a Brown-out Reset, a Two-wire Serial Interface address match interrupt, an External level interrupt on INT0 or INT1, or an External interrupt on INT2 can wake up the MCU. This sleep mode basically halts all generated clocks, allowing operation of asynchronous modules only.

Sleep Modes_Power Management Functions (continued) powersave If Timer/Counter2 is clocked asynchronously, Timer/Counter2 will run during sleep. The device can wake up from either Timer2 Overflow or Output Compare event. standby If an external crystal is used. This mode is identical to Power-down with the exception that the Oscillator is kept running. From Standby mode, the device wakes up in six clock cycles. extended_standby If an external crystal is used. This mode is identical to Power-save mode with the exception that the Oscillator is kept running. From Extended Standby mode, the device wakes up in six clock cycles..

Effect of Sleep Modes on Clock Domains and Wake Up Sources If an enabled interrupt or a reset occurs while the μC is in a sleep mode, the μC wakes up. 1.If external Crystal is used 2.If Timer/Counter2 is clocked asynchronously 3. Only INT2 or level interrupt INT1 and INT0.

Notes: Analog to Digital Converter If enabled, the ADC will be enabled in all sleep modes. To save power, the ADC should be disabled before entering any sleep mode. Analog Comparator When entering Idle mode, the Analog Comparator should be disabled if not used. When entering ADC Noise Reduction mode, the Analog Comparator should be disabled. In the other sleep modes, the Analog Comparator is automatically disabled. Brown-out Detector If the Brown-out Detector is not needed in the application, this module should be turned off. If the Brown-out Detector is enabled by the BODEN Fuse, it will be enabled in all sleep modes. In the deeper sleep modes, this will contribute significantly to the total current consumption.

Watchdog Timer If the Watchdog Timer is not needed in the application, this module should be turned off. If the Watchdog Timer is enabled, it will be enabled in all sleep modes. In the deeper sleep modes, this will contribute significantly to the total current consumption. Port Pins When entering a sleep mode, all port pins should be configured to use minimum power. The most important thing is then to ensure that no pins drive resistive loads. In sleep modes where both the I/O clock (clkI/O) and the ADC clock (clkADC) are stopped, the input buffers of the device will be disabled. This ensures that no power is consumed by the input logic when not needed. In some cases, the input logic is needed for detecting wake-up conditions, and it will then be enabled.