beautypg.com

Texas Instruments MSC1210 User Manual

Page 184

background image

Hardware Configuration

15-2

15.1 Hardware Configuration

In addition to whatever amount of flash memory the specific MSC1210 part
contains (which may be partitioned between flash data memory and flash
program memory), the MSC1210 also includes 128 bytes of hardware
configuration memory. This memory is used to store two hardware
configuration registers and, optionally, up to 110 bytes of configuration data
that you may set at program time, and that may be used to store information
such as serial numbers, product codes, etc.

Note:

Hardware configuration memory, including the hardware configuration regis-
ters and the 110 bytes of configuration data, can only be set at program time.
They cannot be modified by your program at run time, once the firmware has
been downloaded to the MSC1210.

15.1.1 Hardware Configuration Registers

The MSC1210 has two hardware configuration registers, HCR0 and HCR1.
These registers are set at the moment the MSC1210 is programmed—be it in
parallel or serial mode—and are used to set various operating parameters of
the MSC1210.

When loading a program on the MSC1210, the HCR0 register is at code ad-
dress 807E

H

, whereas HCR1 is found at code address 807F

H

. In a typical as-

sembly language program, the HCR0 and HCR1 registers could be set by add-
ing the following code to the program:

CSEG AT 0807EH ;Address of HCR0

DB 0FCH

;HCR0:76:DBLSEL 54:ABLSEL 3:DAB 2:DDB 1:EGP0
;0:EGP23

DB 0FFH

;HCR1: 7:EPMA 6:PML 5:RSL 4:EBR 3:EWDR 210:DFSEL