Download user manual

Transcript
Xl2000 development system Shenzhen, China Xuelin Electronics Co., Ltd.
- 51 -
Experiment 18: experiment for 24C02 storing boot number
Connection methods:
1. connect P0 port(JP51) of CPU to data port(JP5) of digital tube with 8pin line.
2. connect P2 port(JP52) of CPU to display port(JP8) of digital tube with 8pin line.
3. connect P3.6/P3.7 port(JP53) of CPU to
control end(JP38) of 24C02. You will see the
number plus 1 at each press of reset.
XL2000 running photos
SDA24
EQU
P3.7
SETB SCLK24
SCLK24 EQU
P3.6
MOV C,SDA24
ORG
0000H
MOV ACC.0,C
AJMP MAIN
CLR SCLK24
ORG 0080H
DJNZ R7,RD000
MAIN:CLR P3.7
;Open write protection
RET
MOV
DPTR,#TAB
WT24: PUSH ACC;24C02 into process:
MOV
A,#00H
;Reading address
SETB SDA24