timer_ex1 - timer_ex1.asm 24 Mar 2011 Rev 1 Original Author...

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

View Full Document Right Arrow Icon

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

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

Unformatted text preview: ;******************************************************** ; timer_ex1.asm 24 Mar 2011 Rev. 1 ; ; Original Author: Adam Mills ; Editted by: Dr. Schwartz ;******************************************************** ;* Flashes the LED on our board. Example using Timer1. ;******************************************************* GPAMUX1 .set 0x6F86 GPATOGGLE .set 0x6FC6 GPADIR .set 0x6F8A GPADAT .set 0X6FC0 INT13_VECT .set 0x00001A ;Vector for Timer1 interrupt, VMAP = 0 TIMREGPG .set 0xC00>>6 ;start of timer register page TIMER1PRD .set 0x0C0A ;holds period of counter TIMER1PRDH .set 0x0C0B ;holds period of counter [high] TIMER1TCR .set 0x0C0C ;timer control register TIMER1PR .set 0x0C0E ;msb current prescaler count, prescale amount [low bytes] TIMER1PRH .set 0x0C0F ;msb current prescaler count, prescale amount [high bytes] PERIODL .set 0xFFFF ;16-bit lower count value PERIODH .set 0x000F ;16-bit upper count value PRESCALEL .set 0x3 ;8-bit lower prescale value PRESCALEH .set 0x00 ;8-bit upper prescale value...
View Full Document

This document was uploaded on 02/15/2012.

Page1 / 2

timer_ex1 - timer_ex1.asm 24 Mar 2011 Rev 1 Original Author...

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