beautypg.com

Table a1-2: configuration file data structure – PNI SENtral User Manual

Page 41

background image

PNI Sensor Corporation

Doc #1018049 R03

SENtral Technical Data Sheet

Page 40

Table A1-2: Configuration File Data Structure

Byte Index Content

Note

0x00

Signature Lower Byte

Value is 0x8B. Can be used to locate

the data structure within the image.

0x01

Signature Upper Byte

Value is 0xC8. Can be used to locate

the data structure within the image.

0x02 to 0x07

Reserved

0x08 & 0x09

RAM Version

Firmware version number

0x0A

Version

Configuration Structure Version

0x0B

Boot Protocol

Used for standalone applications

0x0C to 0x13

PinSelection

Bit 0-3 Host IRQ pin selection

Others

– reserved

0x14 to 0x1B

PullSelection

Bit 0 & 1 GPIO0 pull selection

0=no pulls, 1=pull-down, 2=pull-up,

3=keep defaults

Bit 2 & 3 GPIO1 pull selection

Bit 4 & 5 GPIO2 pull selection

Bit 6 & 7 GPIO3 pull selection

Bit 8 & 9 GPIO4 pull selection

Bit 10 & 11 GPIO5 pull selection

Bit 12 & 13 GPIO6 pull selection

Others

– reserved

0x1C to 0x2B

Device Name

16 character string

When uploading the Configuration File from a dedicated EEPROM, SENtral first checks the

Magic Number upper and lower bytes to ensure they match the expected values. If they do, then

the upload will commence, and during the upload SENtral calculates the CRC32 value over the

incoming data. At the end of the upload process, the calculated CRC32 value is compared with

the valued stored in the header. If they match the Configuration File has been successfully

uploaded. If the the EEPROMExec bit is set to ‘0’, then the SENtral algorithm automatically

will execute and move SENtral in Initialized state, as shown in Figure 5-1.