Example 17 SCI Receive Interrupts

Slides:



Advertisements
Similar presentations
Starting Out with C++, 3 rd Edition 1 Chapter 10 – Characters, Strings, and the string Class.
Advertisements

Review: Interrupts & Timers
ECE 447 Fall 2009 Lecture 9: TI MSP430 Interrupts & Low Power Modes.
Serial Communication Interface
ARMSim# and SWIInstructions Plug-in
C and Assembler Subroutines: Using the LCD. Outline Basic structure of CW-created C programs for the HC12 How to incorporate assembly code How to use.
Example 11 Analog-to-Digital Converter Lecture L5.1.
C Language Programming. C has gradually replaced assembly language in many embedded applications. Data types –C has five basic data types: void, char,
6/21/20151 One-Wire Bus Digital Thermometer Example.
Programming I/O for Embedded System. Page 2 Overview Basis: A DE2 Computer Architecture Parallel I/O 7-Segment Display Basic Manipulating 7-Segment Display.
Character Input and Output
1 4-Integrating Peripherals in Embedded Systems. 2 Introduction Single-purpose processors  Performs specific computation task  Custom single-purpose.
Revised: Aug 1, ECE 263 Embedded System Design Lessons 23, 24 - Exceptions - Resets and Interrupts.
The miniDragon+ Board and CodeWarrior Lecture L2.1.
FREQUENCY COUNTER USING Silicon Labs C8051F020 microcontroller
Arch1 LCD Lab Eric Freudenthal. Topics Score Demo LCD Panel Geometry Utilities to draw to the display Drawing characters Buttons Nuisance: multiple versions.
GameBoy Advance Programming Sound. Sound Basics The Digital Process A / D Fs D / A Sound pressure fluctuations Analog voltage Digital voltage Sampling.
4.3 Logic Part Trouble Power Power-On Trouble
NT Kernel CS Spring Overview Interrupts and Exceptions: Trap Handler Interrupt Request Levels and IRT DPC’s, and APC’s System Service Dispatching.
ECE 371 – Unit 9 Interrupts (continued). Example Set up Two Interrupt Request Inputs: –Port H[0] Set Interrupt Flag on “0” to “1” transition (rising edge)
Serial Communication Interface Ta Kim Nicholas Earnhart Razid Ahmad ME 6405 – Fall 2008 November 6, 2008.
Example 11 Analog-to-Digital Converter Lecture L5.1.
Example 12 Pulse-Width Modulation (PWM): Motors and Servos Lecture L8.1.
4.3.1 Power Circuit Diagram Power-On Trouble +2.6V MSMP2 U Logic Part Trouble U V_ MSMC +2.6V_ MSMP2 +1.8V_ MSMP1 +2.9V_ RX0 +2.8V_.
The Serial Communication Interface (SCI) MC9S12-C32
Serial Communications Interface Module Slide #1 of 19 MC68HC908GP20 Training PURPOSE -To explain how to configure and use the Serial Communications Interface.
Real Time Interrupts Section Real-Time Interrupt (RTI) Most operating systems (OS) require an interrupt every T seconds by the RTI RTI interrupts.
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Configuring CodeWarrior V5.1 for the HCS12.
Ryan Hansgen. General System Design  MC9S08QE64CFT 24MHz Bus Frequency 64 K byte Flash EEPROM, 4.0 K byte RAM  Memory required 8 K bytes ROM 2 K bytes.
WIFI design Guide based PW620-I b/g ----Hardware section Orin.Zhu August 31 st, 2007.
System Software Design Dan Sweet May 6 th, 2008 Western Washington University Bicycle Power Meter.
Examples Lecture L2.2. // Example 1a: Turn on every other segment on 7-seg display #include /* common defines and macros */ #include /* derivative.
Electronics Status New DCM daughter card works. –Three cards has been assembled. –One daughter card has been send to Jamie yesterday by FedEx overnight.
Vishwakarma government engineering college Prepare by. Hardik Jolapara( ) LCD Interfacing with ATmega16.
Module 8 Tutorial  An 8086 system is used for controlling the speed of a motor. The motor can operate at 5 different speeds (1- 5).  The speed.
충북인력개발원 전자과 공학박사 강원찬 2. Interrupt & LCD. uP AVR (Atmega128) - 2 -
Tiva C TM4C123GH6PM UART Embedded Systems ECE 4437 Fall 2015 Team 2:
Lecture 9 Scheduling. Scheduling Policies Preemptive Priority Scheduling.
Mixing C and ASM Programs
Serial Peripheral Interface
Peripherals – Keypad The Keypad provides a simple means of numerical data or control input. The keys can be attributed whatever data or control values.
Display Devices 16 x 2 lcd display.
Cortex-M0 MCU Clocks & Pins
Chapter 5- Assembling , Linking, and Executing Programs
Example 14 Real-time Interrupts
Interrupt-Driven Serial Communication
CS4101 Introduction to Embedded Systems Lab 12: Task Synchronization
LCD.
4-Integrating Peripherals in Embedded Systems
Example 19 Measuring Pulse Widths Using Interrupts
4-Integrating Peripherals in Embedded Systems
CS4101 Introduction to Embedded Systems Lab 9: NuMaker ADC and LCD
Example 10 ASCII String to Binary Conversion
Example 5 Pushbutton Switches: S1 and S2
and Executing Programs
Example 9 Binary to ASCII String Conversion
Example 6 Hex Keypad Lecture L3.2.
Example 15 Interrupt-Driven Controller
CSE 171 Lab 11 Digital Voltmeter.
Interrupts in C Programs
Example 16 Circular Queue
Example 13 The Serial Peripheral Interface (SPI)
Example 7 Liquid Crystal Display
Lecture 9: TI MSP430 Interrupts & Low Power Modes
ECE 477 Senior Design Group 14  Spring 2006
ECE 477 Senior Design Group 3  Spring 2011
Example 18 Pulse Train Using Interrupts
Observed CE/RE Failures in the Display Product CE(Conducted Emission )
LCD.
ECE 3567 Microcontrollers Lab
Presentation transcript:

Example 17 SCI Receive Interrupts Lecture L7.3

// Example 17: SCI using receive interrupts #include <hidef.h> /* common defines and macros */ #include <mc9s12dp256.h> /* derivative information */ #include "queue.h" #include "main_asm.h" /* interface to the assembly module */ #pragma LINK_INFO DERIVATIVE "mc9s12dp256b" // SCI0 receive Interrupt Service Routine void interrupt 20 handler(){ qstore(read_SCI0_Rx()); }

void main(void) { char c; PLL_init(); // set system clock frequency to 24 MHz lcd_init(); // enable lcd SCI0_int_init(9600); // initialize SCI0 at with interrupts while(1){ while(qempty() != 0){ // empty the queue c = getq(); // and display on lcd data8(c); // write it to the LCD outchar0(c); // echo it back }

Use host.exe to download any text file to the miniDragon+ board