Pages created and updated by 
Terry Sturtevant 
	 Date Posted: 
	 
	 May 12, 2017
	 
	 
Setup and test a base program that:
Note: this program has no interrupts and should be a simple reconfiguration of work done in previous labs. Program must be working before you get to the lab.
Demonstration - demonstrate the base program
To be done in your lab notebook.
ten_ms: btfss INTCON,TMR0IF bra ten_msmovff INTCON,INTCON_copy bcf INTCON,GIEHmovff TMR0L,tmr_l movff TMR0H,tmr_h movlw low time_adj addwf tmr_l,F movlw high time_adj addwfc tmr_h,F movff tmr_h,TMR0H movff tmr_l,TMR0Lmovf INTCON_copy,W andlw b'10000000' iorwf INTCON,F bcf INTCON,TRM0IFreturn
Demonstration - Explain your results for the above questions.

 
	 
	 
 

Wilfrid Laurier University
© 2019 Wilfrid Laurier University