ML51/ML54/ML56
Sep. 01, 2020
Page
86
of 719
Rev 2.00
ML
51
/ML
54
/ML
5
6 S
E
RI
E
S
TECHNI
CA
L
RE
F
E
R
E
NC
E
M
A
NU
A
L
ML51/M
L54
/M
L56
Series
Tec
hnical Reference
Manual
MOV DPTR,#0023H
;read from XRAM with address @0023H
MOVX A,@DPTR
C51:
unsigned char temp;
//define data variable
unsigned char xdata xtemp _at_ 0x23;
//define variable at xdata 0x23;
xtemp = 0x5B;
//write #5BH to XRAM with address @0023H
xtemp++;
temp = xtemp;
//read from XRAM with address @0023H
6.1.6
Config Bytes
The ML51/ML54/ML56 Series has several hardware configuration bytes, called CONFIG, those are
used to configure the hardware options such as the security bits, system clock source, and so on.
These hardware options can be re-configured through the parallel Writer, In-Circuit-Programming
(ICP), or In-Application-Programming (IAP). Several functions, which are defined by certain CONFIG
bits are also available to be re-configured by SFR. Therefore, there is a need to load such CONFIG
bits into respective SFR bits. Such loading will occur after resets. These SFR bits can be continuously
contro
lled via user’s software.
CONFIG bits marked as “-“should always keep un-programmed.