Notes on the ez430-RF2500. Sources

Slides:



Advertisements
Similar presentations
Lab 1 I/O, timers, interrupts on the eZ430-RF2500 Thomas Watteyne EE290Q – Spring 2010
Advertisements

Outline MSP430 LaunchPad MSP430 Microcontroller
Interrupts, Low Power Modes and Timer A (Chapters 6 & 8)
Chung-Ta King National Tsing Hua University
Chung-Ta King National Tsing Hua University
Microprocessor and Microcontroller
I/O Unit.
ECE 447 Fall 2009 Lecture 9: TI MSP430 Interrupts & Low Power Modes.
Introduction of Holtek HT-46 series MCU
ECE 372 – Microcontroller Design Parallel IO Ports - Interrupts
Introduction to Computer Engineering by Richard E. Haskell Interrupts Module M17.3 Sections 11.3, 14.1.
CS4101 嵌入式系統概論 Timers and Clocks 金仲達教授 國立清華大學資訊工程學系 Materials from MSP430 Microcontroller Basics, John H. Davies, Newnes, 2008.
The 8051 Microcontroller and Embedded Systems
Chung-Ta King National Tsing Hua University
Timers. Range of timers Watchdog timer: Included in all devices (watchdog timer+). Its main function is to protect the system against malfunctions but.
The Texas Instruments MSP430
LAB 7: WDT+ and Low-Power Optimization
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose:  This training module provides a technical description of Renesas.
MSP430 Mixed Signal Microcontroller – Parte 2 Afonso Ferreira Miguel Source: slau056d – Texas instruments.
Revised: Aug 1, ECE 263 Embedded System Design Lessons 23, 24 - Exceptions - Resets and Interrupts.
CPE 323 Introduction to Embedded Computer Systems: Watchdog Timer, Timer A Instructor: Dr Aleksandar Milenkovic Lecture Notes.
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).
Week 16.
Lecture 11: TI MSP430 Timers Compare Modes
Ultra-low Power Motion Detection using the MSP430F2013.
Atmel Atmega128 Overview ALU Particulars RISC Architecture 133, Mostly single cycle instructions 2 Address instructions (opcode, Rs, Rd, offset) 32x8 Register.
Instructor: Dr Aleksandar Milenkovic Lecture Notes
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
Microprocessor. Interrupts The processor has 5 interrupts. CALL instruction (3 byte instruction). The processor calls the subroutine, address of which.
WISP.
1 © Unitec New Zealand Interrupt Lecture 6 Date: - 20 Sept, 2011 Embedded Hardware ETEC 6416.
IO Subsystem IV Ports and peripherals. IO Subsystem (1) All devices connected to the system buses, other than memory and CPU – Input and output ports.
ECE 447 Fall 2009 Lecture 7: MSP430 Polling and Interrupts.
Network and Systems Laboratory nslab.ee.ntu.edu.tw.
Week 7 Low-Power Modes MSP430 Teaching Materials Hacettepe University Copyright 2009 Texas Instruments All Rights Reserved.
MICRO-CONTROLLER MOTOROLA HCS12 Interrupts Mechatronics Department Faculty of Engineering Ain Shams University.
EE/CS-352: Embedded Microcontroller Systems Part V The 8051 Assembly Language Interrupts.
Interrupt-Driven I/O There are different types of interrupts –Hardware Generated by the 8259 PIC – signals the CPU to suspend execution of the current.
UNIT 2. CPUXV2 20-bit addressing User-definable Boot Strap Loader RAM starts at 0x1C00 Beginning of MAIN flash moves according to RAM Vector table starts.
Recall the Container Thermometer
Introduction to MSP430G2553 and MPU6050
Introduction Why low power?
Introduction Why low power?
Lecture 8: TI MSP430 Interrupts, ISRs
CPE/EE 421 Microcomputers: The MSP430 Introduction
CS4101 嵌入式系統概論 Interrupts Prof. Chung-Ta King
Lesson Outline Interrupts Admin Assignment #9 due next lesson
CS4101 Introduction to Embedded Systems Lab 6: Low-Power Optimization
CS4101 嵌入式系統概論 Interrupts Prof. Chung-Ta King
Timer and Interrupts.
Chapter 6 General Purpose Input/Output
MSP430 Teaching Materials
Prof. Chung-Ta King Department of Computer Science
ECE 3430 – Intro to Microcomputer Systems
Chapter 5 Device Systems and Operating Modes
Instructor: Dr Aleksandar Milenkovic Lecture Notes
Interrupt Source: under
The Arduino Microcontroller: Atmel AVR Atmega 328
Subject Name: Microcontroller Subject Code: 10ES42
CS4101 Introduction to Embedded Systems Lab 4: Interrupt
I/O PORTS : MSP430x5xx devices have up to 12 digital I/O ports :
ECE 3430 – Intro to Microcomputer Systems
ECE 3430 – Intro to Microcomputer Systems
전자의료시스템 및 실습 System Configuration/Interrupt
Lecture 9: TI MSP430 Interrupts & Low Power Modes
8051 Micro Controller.
CS4101 Introduction to Embedded Systems Lab 2: Basic IO and Timer
Prof. Chung-Ta King Department of Computer Science
MSP430 Clock System and Timer
ECE 3567 Microcontrollers Lab
Presentation transcript:

Notes on the ez430-RF2500

Sources

Gotchas int: 2 bytes, default: signed, to WDTCTL = WDTPW + WDTHOLD;

Operators ~A A | B A & B A ^ B A |= B A &= ~B A ^=B A=A<<2;

Clocks Clocks: LFXT1CLK (Low Frequency Crystal Clock), external DCO (Digitally Controlled Oscillator), stable in less than 2us at 1MHz. – BCSCTL1-RSELx[3-0]: frequency range – DCOCTL-DCOx[7-5]: frequency inside a given range – DCOCTL-MODx[4-0]: modulator VLOCLK (Very low power, low frequency oscillator), internal, 12kHz – Replaces LFXT1CLK when BCSCTL3-LFXT1Sx[5-4]=0b10 or 0b11 and BCSCTL1-XTS[6]=0 – Don’t forget to clear the OFIFG flag (IFG1 &= ~0x02), make sure it remains cleared Clock lines: MCLK (Master Clock) for CPU, default on DCO – BCSCTL2-SELMx[7-6]: select source – BCSCTL2-DIVMx[5-4]: divider – SR-CPUOFF[4]: turn on/off SMCLK (Submaster Clock) for peripherals, default on DCO – BCSCTL2-SELS [3]: select source – BCSCTL2-DIVSx[2-1]: divider – SR:SCGx [7-6]: turn on/off ACLK, always on LFXTCLK, used for interrupts – BCSCTL1-DIVAx[5-4]: divider

Registers PxDIR (x=1,2,3,4) PxIN PxOUT PxSEL (select role of the register) SR (Status Register), for branching Basic Clock System Control Register 2 (BCSCTL2)

Interrupt Flags PORIFG: Power On Reset RSTIFG: Reset Reset vector at 0xFFFE points to 0x8000

Interrupts Interrupt priorities 8 - non-maskable: External Reset, Power-up, Watchdog Timer Reset, Flash Key Violation, NMI 7 - non-maskable: Oscillator Fault, Flash Memory Access Violation 6 - maskable: Watchdog Timer 5 - maskable: Timer A Capture Compare Register 0 (CCR0) interrupt 4 - maskable: Timer A Capture Compare Register 1 (CCR1) Interrupt 3 - maskable: Sigma/Delta 16 bit (SD16) Converter Interrupt 2 - maskable: Universal Serial Interface (USI) Interrupts 1 - maskable: Port 2 I/O Interrupts 0 - maskable: Port 1 I/O Interrupts Steps to execute interrupt (6 cycles) 1.PC to stack 2.SR to stack 3.Highest priority interrupt selected 4.IFL reset for single source interrupts only 5.SR cleared, except SR-SCG0 (no LPM, no GIE) 6.Interrupt vector to PC Steps to leave interrupt (5 cycles) Pop stack to SR Pop stack to PC

SR, Status Register __bix_SR_register __get_SR_register __bix_SR_register_on_exit __get_SR_register_on_exit

LEDS (red:P1.0, green :P1.1) Direction P1DIR |= 0x03; On P1OUT |= 0x01; Off P1OUT &= ~0x01; Toggle P1OUT ^= 0x01;

Low Power Modes

Addressing Modes

Instructions

Timer_A

Timer_B

USI

USCI

ADC10