Subversion Repositories pentevo

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1186 savelij 1
		ifndef	__s12z_ftmrz_inc
2
__s12z_ftmrz_inc	equ	1
3
 
4
		save
5
		listing	off	; no listing over this file
6
 
7
;****************************************************************************
8
;*                                                                          *
9
;*   AS 1.42 - File FTMRZ.INC                                               *
10
;*                                                                          *
11
;*   Contains Bit & Register Definitions for S12Z Flash/EEPROM Controller   *
12
;*                                                                          *
13
;****************************************************************************
14
 
15
FCLKDIV		equ	$0380		; Flash Clock Divider Register
16
FDIVLD		s12zbit	FCLKDIV,7	;  Clock Divider Loaded
17
FDIVLCK		s12zbit	FCLKDIV,6	;  Clock Divider Locked
18
FDIV		s12zfld	FCLKDIV,6:0	;  Clock Divider Bits
19
FSEC		equ	$0381		; Flash Security Register
20
KEYEN		s12zfld	FSEC,2:6	;  Backdoor Key Security Enable Bits
21
RNV		s12zfld	FSEC,4:2	;  Reserved Nonvolatile Bits
22
SEC		s12zfld	FSEC,2:0	;  Flash Security Bits
23
FCCOBIX		equ	$0382		; Flash CCOB Index Register
24
CCOBIX		s12zfld	FCCOBIX,3:0	;  Common Command Register Index
25
FPSTAT		equ	$0383		; Flash Protection Status Register
26
FPOVRD		s12zbit	FPSTAT,7	;  Flash Protection Override Status
27
WSTATACK	s12zbit	FPSTAT,0	;  Wait-State Switch Acknowledge
28
FCNFG		equ	$0384		; Flash Configuration Register
29
CCIE		s12zbit	FCNFG,7		;  Command Complete Interrupt Enable
30
ERSAREQ		s12zbit	FCNFG,5		;  Erase All Request
31
IGNSF		s12zbit	FCNFG,4		;  Ignore Single Bit Fault
32
WSTAT		s12zfld	FCNFG,2:2	;  Wait State control bits
33
FDFD		s12zbit	FCNFG,1		;  Force Double Bit Fault Detect
34
FSFD		s12zbit	FCNFG,0		;  Force Single Bit Fault Detect
35
FERCNFG		equ	$0385		; Flash Error Configuration Register
36
SFDIE		s12zbit	FERCNFG,0	;  Single Bit Fault Detect Interrupt Enable
37
FSTAT		equ	$0386		; Flash Status Register
38
CCIF		s12zbit	FSTAT,7		;  Command Complete Interrupt Flag
39
ACCERR		s12zbit	FSTAT,5		;  Flash Access Error Flag
40
FPVIOL		s12zbit	FSTAT,6		;  Flash Protection Violation Flag
41
MGBUSY		s12zbit	FSTAT,3		;  Memory Controller Busy Flag
42
MGSTAT		s12zfld	FSTAT,2:0	;  Memory Controller Command Completion Status Flag
43
FERSTAT		equ	$0387		; Flash Error Status Register
44
DFDF		s12zbit	FERSTAT,1	;  Double Bit Fault Detect Flag
45
SFDIF		s12zbit	FERSTAT,0	;  Single Bit Fault Detect Interrupt Flag
46
FPROT		equ	$0388		; P-Flash Protection Register
47
FPOPEN		s12zbit	FPROT,7		;  Flash Protection Operation Enable
48
RNV6		s12zbit	FPROT,6		;  Reserved Nonvolatile Bit
49
FPHDIS		s12zbit	FPROT,5		;  Flash Protection Higher Address Range Disable
50
FPHS		s12zfld	FPROT,2:3	;  Flash Protection Higher Address Size
51
FPLDIS		s12zbit	FPROT,2		;  Flash Protection Lower Address Range Disable
52
FPLS		s12zfld	FPROT,2:0	;  Flash Protection Lower Address Size
53
DFPROT		equ	$0389		; EEPROM Protection Register
54
DPOPEN		s12zbit	DFPROT,7	;  EEPROM Protection Control
55
DPS		s12zfld	DFPROT,6:0	;  EEPROM Protection Size
56
FOPT		equ	$038A		; Flash Option Register
57
NV		s12zfld	FOPT,8:0	;  Nonvolatile Bits
58
FRSV1		equ	$038B		; Flash Reserved1 Register
59
FCCOB0		equ	$038C		; Flash Common Command Object Register 0 (16 bit)
60
FCCOB0HI	equ	$038C		; Flash Common Command Object Register 0 MSB
61
FCCOB0LO	equ	$038D           ; Flash Common Command Object Register 0 LSB
62
FCCOB1		equ	$038E		; Flash Common Command Object Register 1 (16 bit)
63
FCCOB1HI	equ	$038E           ; Flash Common Command Object Register 1 MSB
64
FCCOB1LO	equ	$038F           ; Flash Common Command Object Register 1 LSB
65
FCCOB2		equ	$0390		; Flash Common Command Object Register 2 (16 bit)
66
FCCOB2HI	equ	$0390           ; Flash Common Command Object Register 2 MSB
67
FCCOB2LO	equ	$0391           ; Flash Common Command Object Register 2 LSB
68
FCCOB3		equ	$0392		; Flash Common Command Object Register 3 (16 bit)
69
FCCOB3HI	equ	$0392           ; Flash Common Command Object Register 3 MSB
70
FCCOB3LO	equ	$0393           ; Flash Common Command Object Register 3 LSB
71
FCCOB4		equ	$0394		; Flash Common Command Object Register 4 (16 bit)
72
FCCOB4HI	equ	$0394           ; Flash Common Command Object Register 4 MSB
73
FCCOB4LO	equ	$0395           ; Flash Common Command Object Register 4 LSB
74
FCCOB5		equ	$0396		; Flash Common Command Object Register 5 (16 bit)
75
FCCOB5HI	equ	$0396           ; Flash Common Command Object Register 5 MSB
76
FCCOB5LO	equ	$0397           ; Flash Common Command Object Register 5 LSB
77
 
78
		restore			; re-enable listing
79
 
80
		endif			; __s12z_ftmrz_inc