Download Rabbit 4000 Microprocessor Designer`s Handbook

Transcript
int
int
long
int
int
int
long
char
char
char
num2Sectors;
flash2Speed;
ramID;
ramSize;
ramSpeed;
cpuID;
crystalFreq;
macAddr[6];
serialNumber[24];
productName[30];
//
//
//
//
//
//
//
//
//
//
number of sectors
in nanoseconds, 2nd flash *
Rabbit part #
in 1000h pages *
in nanoseconds *
CPU type ID *
in Hertz *
Media Access Control (MAC) address **
device serial number
NULL-terminated string
// Begin new version 5 System ID block member structure.
SysIDBlockType2 idBlock2; // idblock
// End new version 5 System ID block member structure.
char reserved[1];
// reserved for later use - size can grow
long idBlockSize;
// number of bytes in the SysIDBlock struct **
unsigned userBlockSize; // User block size, in bytes (right below ID block)**
unsigned userBlockLoc; // offset in bytes of start of User block from this one**
int idBlockCRC;
// CRC of this block (when this field is set to 0) **
char marker[6];
// should be 0x55 0xAA 0x55 0xAA 0x55 0xAA**
} SysIDBlock;
Rabbit 4000 Designer’s Handbook
rabbit.com
23