beautypg.com

1 power-up, 2 initial register set-up, Power-up – PNI SENtral MandM User Manual

Page 15: Initial register set-up, On 4.1, Ons 4.2

background image

PNI Sensor Corporation

Doc #1020129 revE

SENtral M&M Technical Datasheet

Page 14

4.1 Power-Up

After powering up or issuing a ResetReq command, SENtral automatically initializes the

registers and loads the SENtral Configuration File from the onboard EEPROM, as indicated

in Figure 4-1. The Configuration File contains information specific to the particular SENtral

M&M flavor, and is discussed more thoroughly in the SENtral Motion Coprocessor

Technical Datasheet. Once the upload is complete, SENtral enters Initialized State and waits

for instructions from the host.

Table 4-1: Configuration File Upload from EEPROM Registers

Register Name

Address Register Value

SentralStatus

0x37

[0] EEPROM. 1 = EEPROM detected

[1] EEUploadDone. 1 = EEPROM upload completed

[2] EEUploadError. 1 = Calculated CRC of EEPROM is

incorrect. Only valid when EEUploadDone = 1.

[3] Idle. 1 = Device in Unprogrammed or Initialized state.

[4] NoEEPROM. 1 = No EEPROM detected.

ResetReq

0x9B

[0] ResetRequest. 1 = Emulate a hard power down/power up.

The host should confirm a successful EEPROM upload by following the steps below:

Read the value from the SentralStatus register.

Check bit [0], the EEPROM bit, to ensure an EEPROM is detected by SENtral.

Check bit [1], the EEUploadDone bit. If this is ‘0’ then the Configuration File upload
is not complete, and reread the SentralStatus register until bit [1] = 1.

Once bit [1] = 1, check bit [2], the EEUpload Error bit. If this is ‘0’, then the upload
was successful.

If the Configuration File upload failed, send a Reset command by writing 0x01 to the

ResetReq register or power off/power on the device. If the issue persists, refer to the SENtral

Motion Coprocessor datasheet for debugging hints.

4.2 Initial Register Set-Up

After the initialization process is complete, it is necessary to configure a few of SENtral’s

registers before running in Normal Operation. These registers are given in Table 4-2.