beautypg.com

5 programming the board capability rom, Programming the board capability rom - 10, Rom command register bit map - 10 – Kontron CP382 User Manual

Page 52: Rom control register bit map - 10, Configuration cp382

background image

Configuration

CP382

Page 4 - 10

© 2002 PEP Modular Computers GmbH

ID 24208, Rev. 01

4.3.5

Programming the Board Capability ROM

The Board Capability ROM contains all the board data necessary to identify board, version, op-
tional features, etc., and to setup the basic software. The BCR is implemented using a 4 KBit
serial EEPROM of the type Microchip 93LC66.

(The contents list of the BCR is not described here.)

The serial interface of the device has been realized in hardware resulting in a very simple reg-
ister based programming interface with command, control, status and data registers. All proto-
col and serial timing specifications are resolved by hardware.

Programming of the BCR is undertaken as follows: The control word is written into the ROM
Control Register including command opcode and internal address. Then optional data (in case
of Write action) is written into the ROM Data Register. Command execution is started by setting
the Startbit in the ROM Command Register. Then Ready/Busy must be polled in the ROM Sta-
tus Register. After reaching Ready status, the next command can be set up and data (in case
of Read action) can be fetched from the ROM Data Register.

Table 4-10: ROM Command Register Bit Map

Bits

Type

Default

Function

31

r/w

0

Startbit

30-0

r/w

00

Reserved

Note...

The Startbit will be automatically reset as soon as an action is completed.

Table 4-11: ROM Control Register Bit Map

Bits

Type

Default

Function

31-19

r/w

0

Reserved

17-16

r/w

00

Opcode

15-8

r/w

00

Reserved

8-0

r/w

00

Internal address (A8..A0)

Note...

The commands READ, EWEN (Write Enable) and WRITE are sufficient for all
purposes.