No, not trimmer... or timmer .... I really need to get a dictionary
Timer as in TMRO.
Many times we will at the beginning of a new project to make sure things are setup correctly we will do a simple "blinky" just like we tell the newbees to do. I will a lot of times leave it running as a "heart beat" type of thing. But if you do this using pauses to blink the LED the pauses will maybe get in the way.
So now comes a basic interrupt based on time.
This may or may not be correct for your chip so verify with the data sheet.
Code:INTCON.5 = 1 'ENABLE TMR0 OPTION_REG = %10000101 '16BIT 1:64 PRESCALE ON INTERRUPT GOTO TLOOP MAINLOOP: 'MAIN CODE GOES HERE GOTO MAINLOOP DISABLE TLOOP: INTCON.2=0:TOGGLE PORTD.4 RESUME: ENABLE






Bookmarks