The Cortex-M3 Embedded Systems: LM3S9B96 Microcontroller – System Control Refer to Chapter 6 in the reference book “Stellaris® LM3S9B96 Microcontroller.

Slides:



Advertisements
Similar presentations
Parul Polytechnic Institute
Advertisements

Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
MC68HC11 System Overview. System block diagram (A8 version)
Programmable Interval Timer
Chung-Ta King National Tsing Hua University
9/20/6Lecture 3 - Instruction Set - Al1 The Hardware Interface.
The 8085 Microprocessor Architecture
Refer to Chapter 6, 9 in the reference book
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
Lecture 21: LM3S9B96 Microcontroller – System Control.
BLDC MOTOR SPEED CONTROL USING EMBEDDED PROCESSOR
Clock Generation Module MTT CLOCK GENERATION MODULE (CGM)
1-1 SYS Module System Clocks FXTAL BCLK Reset Circuit Reset Conditions Bootstrap Initialization.
Lecture 27: LM3S9B96 Microcontroller – Inter- Integrated Circuit (I 2 C) Interface.
NS Training Hardware. System Controller Module.
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.
CE-2800: Embedded Systems Software I Watchdog Timers 1 The Watchdog timer.
Cortex-M3 Debugging System
Serial Peripheral Interface Module MTT M SERIAL PERIPHERAL INTERFACE (SPI)
Renesas Electronics Europe GmbH A © 2010 Renesas Electronics Corporation. All rights reserved. RL78 Clock Generator.
Lecture 29: LM3S9B96 Microcontroller – Pulse Width Modulator (PWM)
Lecture 23: LM3S9B96 Microcontroller - Interrupts.
System Clocks.
LPC2148 Programming Using BLUEBOARD
Parallel Ports, Power Supply and the Clock Oscillator Material to be covered  Parallel I/O ports  Interfacing external switches and LEDs  Clock Oscillator.
M Semiconductor Products Sector Computer Operating Properly Module Detail Slide #1 of 7 Tutorial Introduction PURPOSE -To explain how to configure and.
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).
Prepared by Eng. Musa Alyaman1 Chapter Seven Chapter Seven PIC16F87x.
Lecture 25: LM3S9B96 Microcontroller – Watchdog Timer.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an overview of the CPU architecture.
Lecture 11 Low Power Modes & Watchdog Timers
Chapter 2 Introducing the PIC Mid-Range Family and the 16F84A The aims of this chapter are to introduce: The PIC mid-range family, in overview The overall.
ARM Cortex-M0 August 23, 2012 Paul Nickelsberg Orchid Technologies Engineering and Consulting, Inc. CORTEX-M0 Structure Discussion.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
Conclusion Speech. Content Organization Pronunciation Handwriting.
The Cortex-M3 Embedded Systems: LM3S9B96 Microcontroller – Pulse Width Modulator (PWM) Refer to Chapter 21 in the reference book “Stellaris® LM3S9B96 Microcontroller.
System Integration Module MTT Motoola SYSTEM INTEGRATION MODULE (SIM)
Introduction to Microprocessors - chapter3 1 Chapter 3 The 8085 Microprocessor Architecture.
The Silicon Laboratories C8051F020
Device Overview 1.  The advantages of all PIC18Fxxxx microcontrollers:  High computational performance  High-endurance  Enhanced Flash program memory.
Lecture 4 General-Purpose Input/Output NCHUEE 720A Lab Prof. Jichiang Tsai.
Chapter 12 Some PIC Microcontroller Advances The aims of this chapter are to introduce: To introduce in overview two microcontrollers which show some enhanced.
Lecture 22: LM3S9B96 Microcontroller – SysTick and General-Purpose Timers.
The 8085 Microprocessor Architecture. What 8085 meant for? 80 - year of invention bit processor 5 - uses +5V for power.
The Cortex-M3 Embedded Systems: LM3S9B96 Microcontroller – Watchdog Timers Refer to Chapter 11 in the reference book “Stellaris® LM3S9B96 Microcontroller.
Computer Operating Properly Module MTT COMPUTER OPERATING PROPERLY MODULE (COP)
The Cortex-M3 Embedded Systems: LM3S9B96 Microcontroller – Interrupts Refer to Chapter 4 in the reference book “Stellaris® LM3S9B96 Microcontroller - DATA.
Components of a typical full-featured microcontroller.
Chapter 3. Advanced Hardware Fundamentals The various parts you will commonly find in an embedded-system circuit 발표일시 : 발표자 : 채화영.
NAM S.B MDLAB. Electronic Engineering, Kangwon National University 1.
HJD Institute of Technical Education & Research- Kera(Kutch) The 8051 Microcontroller architecture PREPARED BY: RAYMA SOHIL( )
Special Features. Device Configuration bits Revision Device Configuration bits Revision On-chip Power-on Reset (POR) Revision On-chip Power-on Reset (POR)
AT91 Hardware and Power considerations. Power Supply considerations.
10- Lock Bits, Fuse Bits and Boot Loader. Boot Loader Support – Read-While-Write Self- Programming: The Boot Loader Support provides a real Read-While-Write.
16F877A.
AT91 Power Management This training module describes the Power Management options provided by the AT91 family of microcontrollers. These options address.
HISTORY OF MICROPROCESSORS
HCS12 Exceptions Maskable Interrupts
Refer to Chapter 5 in the reference book
UNIT – Microcontroller.
Refer to Chapter 10 in the reference book
Reset Sources and Watchdog Timer
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Subject Name: Microcontroller Subject Code: 10ES42
Getting the Most Out of Low Power MCUs
Introducing the PIC Mid-Range Family and the 16F84A
전자의료시스템 및 실습 System Configuration/Interrupt
8051 Micro Controller.
Presentation transcript:

The Cortex-M3 Embedded Systems: LM3S9B96 Microcontroller – System Control Refer to Chapter 6 in the reference book “Stellaris® LM3S9B96 Microcontroller - DATA SHEET”

High-Level Block Diagram

System Control zSystem control configures the overall operation of the device and provides information about the device. zreset control zNMI operation zpower control zclock control zlow-power modes

Reset Sources zThe LM3S9B96 microcontroller has six sources of reset zPower-on reset (POR) zThe internal POR circuit monitors the power supply voltage VDD and generates a reset signal to all of the internal logic including JTAG when the power supply ramp reaches a threshold value. zExternal reset input pin (RST) assertion zThe external reset pin (RST) resets the microcontroller including the core and all the on-chip peripherals except the JTAG TAP controller zInternal brown-out (BOR) detector zbrown-out detection circuit that triggers if the power supply VDD drops below a brown-out threshold voltage

Reset Sources zSoftware-initiated reset zThe entire microcontroller including the core can be reset by software by setting the SYSRESETREQ bit in the Cortex-M3 Application Interrupt and Reset Control register zOn-chip peripherals can be individually reset by software via three registers (see the SRCRn registers) zA watchdog timer reset condition violation zA watchdog timer can be configured to generate an interrupt to the microcontroller on its first time-out and to generate a reset on its second time-out zMOSC failure zThe LM3S9B96 microcontroller provides a main oscillator verification circuit that generates an error condition if the oscillator is running too fast or two slow

z After the processor exits reset, it will read two words from memory: y Address 0x : default value of R13 (MSP) y Address 0x : y If the data at 0x is not 0xFFFFFFFF, load the Reset vector (the starting address of startup program) y Otherwise, the core executes the ROM Boot Loader Cortex-M3: Reset Sequence

Power Control zWithin the MCU, an integrated LDO regulator is used to provide power to the majority of the MCU's internal logic zVoltage output can be programmed zbetween 2.25 V and 2.75 V

Clock Control zFundamental Clock Sources zPrecision Internal Oscillator (PIOSC): on-chip clock source, 16MHz + 1%, used by the microcontroller during POR  Main Oscillator (MOSC): an external crystal is connected across the OSC0 input and OSC1 output pins; if PLL is being used, crystal frequency range from MHz to MHz (inclusive); if not, between 1 MHz and MHz zInternal 30-kHz Oscillator: on-chip clock source, 30kHz + 50%, used during Deep-Sleep power-saving modes zThe internal system clock can be derived from all above clock sources and the output of PLL and PIOSC divided by four (4MHz + 1%)

Clock Configuration The Run-Mode Clock Configuration (RCC) and Run- Mode Clock Configuration 2 (RCC2) registers provide control for the system clock zSource of clocks in sleep and deep-sleep modes zSystem clock derived from PLL or other clock source zEnabling/disabling of oscillators and PLL zClock divisors zCrystal input selection

Register 7: Run-Mode Clock Configuration (RCC), offset 0x060

Register 10: Run-Mode Clock Configuration 2 (RCC2), offset 0x070 when the USERCC2 bit is set, allowing the extended capabilities of the RCC2 register to be used

Main Clock Tree

Configuration on PLL zThe PLL is configured using direct register writes to the RCC/RCC2 register zThe steps required to successfully change the PLL-based system clock are:  1. Bypass the PLL and system clock divider by setting the BYPASS bit and clearing the USESYS bit in the RCC register  2. Select the crystal value ( XTAL ) and oscillator source ( OSCSRC ), and clear the PWRDN bit in RCC/RCC2.  3. Select the desired system divider ( SYSDIV ) in RCC/RCC2 and set the USESYSDIV bit in RCC  4. Wait for the PLL to lock by polling the PLLLRIS bit in the Raw Interrupt Status (RIS) register  5. Enable use of the PLL by clearing the BYPASS bit in RCC/RCC2

System Control zFor power-savings purposes, the RCGCn, SCGCn, and DCGCn registers control the clock gating logic for each peripheral or block in the system while the microcontroller is in Run, Sleep, and Deep- Sleep mode, respectively. zRun mode: the microcontroller actively executes code. The processor and all of the peripherals that are currently enabled by the RCGCn registers operate normally. zSleep mode: (entered by executing a WFI (Wait for Interrupt) instruction), peripherals enabled by the SCGCn (when auto-clock gating is enabled) registers are clocked, but the processor and the memory subsystem are not clocked. zDeep Sleep mode: (entered by first writing the Deep Sleep Enable bit in the NVIC system control register and then executing a WFI instruction), only peripherals enabled by the DCGCn (when auto- clock gating is enabled) registers are clocked.

Register 27: Run Mode Clock Gating Control Register 0 (RCGC0), offset 0x100 zEach bit controls a clock enable for a given interface, function, or module. If set, the module receives a clock and functions. Otherwise, the module is unclocked and disabled (saving power). If the module is unclocked, reads or writes to the module generate a bus fault. All functional modules are disabled after reset.

Register 30: Run Mode Clock Gating Control Register 1 (RCGC1), offset 0x104 zEach bit controls a clock enable for a given interface, function, or module. If set, the module receives a clock and functions. Otherwise, the module is unclocked and disabled (saving power). If the module is unclocked, reads or writes to the module generate a bus fault. All functional modules are disabled after reset.

Register 33: Run Mode Clock Gating Control Register 2 (RCGC2), offset 0x108 zEach bit controls a clock enable for a given interface, function, or module. If set, the module receives a clock and functions. Otherwise, the module is unclocked and disabled (saving power). If the module is unclocked, reads or writes to the module generate a bus fault. All functional modules are disabled after reset.