rti-example - rti-example.asm * * RTI Interupt Example...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
rti-example.asm ************************************************************************** * RTI Interupt Example EEL-4744 EMS * ************************************************************************** ******************************************************** * Run a Single Process using the Real-Time Interrupt * Port B * $01-->$02-->$04-->$08-->$10-->$20-->$40-->$80-->$01. .. * Rotate the value in PORTB every 8.196 ms * Use Real-Time Interrupt as the time base * Assume a 4.0 MHZ Oscillator => E=2MHz * (NOTE: Simulator assumes a 16MHz Oscillator => E=8MHz) ******************************************************** * SYMBOL DEFINITIONS ******************************************************** * 68HCl2 REGISTERS PORTB EQU $0001 ; Output Port B DDRB EQU $0003 ; Data Direction Port B RTICTL EQU $0014 ; RTI Interrupt Control Register RTIFLG EQU $0015 ; RTI Interrupt Flag Register RAM EQU $0900 ; Start of Ram STK EQU $0A00 ; User Stack RAMPROG EQU $0970 ; Program space in RAM OUTPAT1 EQU $01 ;OUTPUT Pattern for PORTB
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/13/2011 for the course EEL 4744c taught by Professor Staff during the Fall '09 term at University of Florida.

Page1 / 2

rti-example - rti-example.asm * * RTI Interupt Example...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online