Blame | Last modification | View Log | Download | RSS feed
ifndef __timer1inc ; avoid multiple inclusion__timer1inc equ 1savelisting off ; no listing over this file;****************************************************************************;* *;* AS 1.42 - File TIMER1.INC *;* *;* contains common SFR and Bit Definitions for ST62xx Timer1 *;* *;****************************************************************************__deftimer macro BASE,NUM__NS eval "\{NUM}"PSCR{__NS} sfr BASE+0 ; Prescaler RegisterTCR{__NS} sfr BASE+1 ; Downcounter RegisterTSCR{__NS} sfr BASE+2 ; Status Control RegisterTMZ{__NS} bit 7,TSCR{__NS} ; Timer Zero BitETI{__NS} bit 6,TSCR{__NS} ; Enable Timer InterruptPSI{__NS} bit 3,TSCR{__NS} ; Prescaler Initialize BitPS{__NS} bfield TSCR{__NS},0,3 ; Prescaler Mux. Selectendmrestoreendif ; __timer1inc