Blame | Last modification | View Log | Download | RSS feed
ifndef __s12z_ftmrz_inc__s12z_ftmrz_inc equ 1savelisting off ; no listing over this file;****************************************************************************;* *;* AS 1.42 - File FTMRZ.INC *;* *;* Contains Bit & Register Definitions for S12Z Flash/EEPROM Controller *;* *;****************************************************************************FCLKDIV equ $0380 ; Flash Clock Divider RegisterFDIVLD s12zbit FCLKDIV,7 ; Clock Divider LoadedFDIVLCK s12zbit FCLKDIV,6 ; Clock Divider LockedFDIV s12zfld FCLKDIV,6:0 ; Clock Divider BitsFSEC equ $0381 ; Flash Security RegisterKEYEN s12zfld FSEC,2:6 ; Backdoor Key Security Enable BitsRNV s12zfld FSEC,4:2 ; Reserved Nonvolatile BitsSEC s12zfld FSEC,2:0 ; Flash Security BitsFCCOBIX equ $0382 ; Flash CCOB Index RegisterCCOBIX s12zfld FCCOBIX,3:0 ; Common Command Register IndexFPSTAT equ $0383 ; Flash Protection Status RegisterFPOVRD s12zbit FPSTAT,7 ; Flash Protection Override StatusWSTATACK s12zbit FPSTAT,0 ; Wait-State Switch AcknowledgeFCNFG equ $0384 ; Flash Configuration RegisterCCIE s12zbit FCNFG,7 ; Command Complete Interrupt EnableERSAREQ s12zbit FCNFG,5 ; Erase All RequestIGNSF s12zbit FCNFG,4 ; Ignore Single Bit FaultWSTAT s12zfld FCNFG,2:2 ; Wait State control bitsFDFD s12zbit FCNFG,1 ; Force Double Bit Fault DetectFSFD s12zbit FCNFG,0 ; Force Single Bit Fault DetectFERCNFG equ $0385 ; Flash Error Configuration RegisterSFDIE s12zbit FERCNFG,0 ; Single Bit Fault Detect Interrupt EnableFSTAT equ $0386 ; Flash Status RegisterCCIF s12zbit FSTAT,7 ; Command Complete Interrupt FlagACCERR s12zbit FSTAT,5 ; Flash Access Error FlagFPVIOL s12zbit FSTAT,6 ; Flash Protection Violation FlagMGBUSY s12zbit FSTAT,3 ; Memory Controller Busy FlagMGSTAT s12zfld FSTAT,2:0 ; Memory Controller Command Completion Status FlagFERSTAT equ $0387 ; Flash Error Status RegisterDFDF s12zbit FERSTAT,1 ; Double Bit Fault Detect FlagSFDIF s12zbit FERSTAT,0 ; Single Bit Fault Detect Interrupt FlagFPROT equ $0388 ; P-Flash Protection RegisterFPOPEN s12zbit FPROT,7 ; Flash Protection Operation EnableRNV6 s12zbit FPROT,6 ; Reserved Nonvolatile BitFPHDIS s12zbit FPROT,5 ; Flash Protection Higher Address Range DisableFPHS s12zfld FPROT,2:3 ; Flash Protection Higher Address SizeFPLDIS s12zbit FPROT,2 ; Flash Protection Lower Address Range DisableFPLS s12zfld FPROT,2:0 ; Flash Protection Lower Address SizeDFPROT equ $0389 ; EEPROM Protection RegisterDPOPEN s12zbit DFPROT,7 ; EEPROM Protection ControlDPS s12zfld DFPROT,6:0 ; EEPROM Protection SizeFOPT equ $038A ; Flash Option RegisterNV s12zfld FOPT,8:0 ; Nonvolatile BitsFRSV1 equ $038B ; Flash Reserved1 RegisterFCCOB0 equ $038C ; Flash Common Command Object Register 0 (16 bit)FCCOB0HI equ $038C ; Flash Common Command Object Register 0 MSBFCCOB0LO equ $038D ; Flash Common Command Object Register 0 LSBFCCOB1 equ $038E ; Flash Common Command Object Register 1 (16 bit)FCCOB1HI equ $038E ; Flash Common Command Object Register 1 MSBFCCOB1LO equ $038F ; Flash Common Command Object Register 1 LSBFCCOB2 equ $0390 ; Flash Common Command Object Register 2 (16 bit)FCCOB2HI equ $0390 ; Flash Common Command Object Register 2 MSBFCCOB2LO equ $0391 ; Flash Common Command Object Register 2 LSBFCCOB3 equ $0392 ; Flash Common Command Object Register 3 (16 bit)FCCOB3HI equ $0392 ; Flash Common Command Object Register 3 MSBFCCOB3LO equ $0393 ; Flash Common Command Object Register 3 LSBFCCOB4 equ $0394 ; Flash Common Command Object Register 4 (16 bit)FCCOB4HI equ $0394 ; Flash Common Command Object Register 4 MSBFCCOB4LO equ $0395 ; Flash Common Command Object Register 4 LSBFCCOB5 equ $0396 ; Flash Common Command Object Register 5 (16 bit)FCCOB5HI equ $0396 ; Flash Common Command Object Register 5 MSBFCCOB5LO equ $0397 ; Flash Common Command Object Register 5 LSBrestore ; re-enable listingendif ; __s12z_ftmrz_inc