Timer_Int_Lecture1

Timer_Int_Lecture1 - TMS320F28335 Real-Time Interrupts What...

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

View Full Document Right Arrow Icon
10/28/09 1 TMS320F28335 Real-Time Interrupts What is a Real-Time Interrupt? A Real-Time Interrupt is a segment of code that is executed at a set time interval. While this can be done using delays, we may want to have the program preforming other functions between the interrupts. A simple application for a Real-Time Interrupt is creating a blinking LED with a set period
Background image of page 1

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

View Full DocumentRight Arrow Icon
10/28/09 2 Important Registers We will be using CPU Timer1 for the RTI TIMER1TCR (0x0C0C) - Control Register TIMER1PRD (0x0C0A) - Period Register TIMER1PRDH (0x0C0B) - Period Register High TIMER1TPR (0x0C0E) - Prescale Register TIMER1TPRH (0x0C0F) - Prescale Register High TIMER1TIM (0x0C08) - Counter Register TIMER1TIMH (0x0C09) - Counter Register High Block Diagram
Background image of page 2
10/28/09 3 Timer Control Register Bit 15 (TIF) - Gets set on a Timer Interrupt, a write of '1' clears this flag. Bit 14 (TIE) - '1' Enables the Timer and will set
Background image of page 3

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

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

This document was uploaded on 07/11/2011.

Page1 / 5

Timer_Int_Lecture1 - TMS320F28335 Real-Time Interrupts What...

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

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