Appendix D D-Bug12 Customization Data - Motorola M68EVB912B32 User Manual

Table of Contents

Advertisement

The customization data area, located in Flash EEPROM from $FC60 to $F6FF, allows users
to change default data parameters used by D-Bug12. The data contained in this area is described
by C data structure. The CustomData typedef is shown below. For those unfamiliar with C,
an assembly language equivalent is also shown. The purpose of each field is explained in the
following paragraphs.
C Format
typedef struct {
Byte UserCCR;
Byte UserB;
Byte UserA;
Address UserX;
Address UserY;
Address UserPC;
Address UserSP;
unsigned long SysClk;
Address IOBase;
unsigned int SCIBaudRegVal; /* Initial SCI BAUD reg. value
Address EEBase;
unsigned int EESize;
void (*Delay)(void);
int AuxCmdCount;
CmdTblEntryP AuxCmdTableP;
} CustomData;
Assembly Format
org
;
CustData
equ
UserCCR
dc.b
UserB
dc.b
UserA
dc.b
UserX
dc.w
UserY
dc.w
UserPC
dc.w
UserSP
dc.w
SysClk
dc.l
IOBase
dc.w
SCIBaudRegVal
dc.w
EEBase
dc.w
EESize
dc.w
EEDelay
dc.w
AuxCmdCount
dc.w
AuxCmdTableP
dc.w
;
68EVB912B32UM/D
APPENDIX D
D-BUG12 CUSTOMIZATION DATA
$F6C0
*
$90
; User CPU Condition Code Register
$00
; User CPU B-accumulator
$00
; User CPU A-accumulator
$0000
; User CPU X-index register
$0000
; User CPU Y-index register
$0000
; User CPU Program Counter
$0A00
; User CPU Stack Pointer
8000000
; System Clock frequency (in Hz)
$0000
; Base address of the I/O registers
52
; Initial SCI BAUD register value
$0D00
; Base address of the on-chip EEPROM
768
; size of the on-chip EEPROM
_EEDelay ; address of EEPROM program/erase delay routine
0
; number of commands in auxiliary command table
$0000
; pointer to the auxiliary command table
D-BUG12 CUSTOMIZATION DATA
/* User CPU Condition Code Register */
/* User CPU B-accumulator */
/* User CPU A-accumulator */
/* User CPU X-index register */
/* User CPU Y-index register */
/* User CPU Program Counter */
/* User CPU Stack Pointer */
/* System Clock frequency (in Hz) */
/* Base address of I/O registers */
/* Base address of on-chip EEPROM */
/* Size of the on-chip EEPROM */
/* Pointer to EEPROM delay routine */
/* No. of commands in aux cmd table */
/* Pointer to auxiliary cmd table */
*/
D-1

Advertisement

Table of Contents
loading

Table of Contents