Blame | Last modification | View Log | Download | RSS feed
ifndef __52xxtmrinc ; avoid multiple inclusion__52xxtmrinc equ 1savelisting off ; no listing over this file;****************************************************************************;* *;* AS 1.42 - File 52XXUART.INC *;* *;* Contains SFR and Bit Definitions for ColdFire MCF52xx Timer *;* *;****************************************************************************__deftimer macro n,BaseTMR{n} equ Base+$00 ; Timer Mode Register (16b)PS cffield TMR{n},8,8 ; Prescaler ValueCE cffield TMR{n},6,2 ; Capture Edge and Enable InterruptOM cfbit TMR{n},5 ; Output ModeORI cfbit TMR{n},4 ; Output Reference Interrupt EnableFRR cfbit TMR{n},3 ; Free Run/RestartICLK cffield TMR{n},1,2 ; Input Clock Source for the TimerRST cfbit TMR{n},0 ; Reset TimerTRR{n} equ Base+$04 ; Timer Reference Register (16b)TCR{n} equ Base+$08 ; Timer Capture Register (16b)TCN{n} equ Base+$0c ; Timer Counter (16b)TER{n} equ Base+$11 ; Timer Event Register (8b)REF cfbit TER{n},1 ; Capture EventCAP cfbit TER{n},0 ; Output Reference Eventendmrestore ; re-enable listingendif ; __52xxtmrinc