system guide1: simple eight-way Marquee case 8: 74LS14 reverser experiment  15: infrared remote control experiment 23: hardware counter  with NE555 oscillator 
Each interface module definition2: 8-way controller lantern  9: 74LS138 3-8 decoder experiment  16: Chinese characters display case 24: real-time clock experiment with DS1302
Quick Start3: 8-way DIP switch state display with 8 indicators 10: 74LS164 serial in parallel out control  17: 8155 experiment . 25: PS2 keyboard experiment
USB interface installation4: Digital Tube display with static scanning 11: 74LS165 parallel in serial out control  18: 24C02 store the number of booting  26: SD card SPI mode experiment
ISP downloading part5: LED number display with dynamic scanning. 12: D/A conversion  with DAC0832 19: step motor experiment 27: 485 communication experiment
simulating operation guide6: key button detecting (number show) 13: A/D conversion  with ADC0804 20: 93c46 demonstration program  28: 12864 LCD display “A”
single chip system Experiments 7: Matrix keypad recognition technology 14: alarm with small speaker case  22: digital temperature display  with 18B20 Chapter VII frequently asked questions and answers

Introduction of XL2000 experimental system    

user manual download:quickstart download:XL2000 Experimental part of the schematic XLISP Applications software download:

ebay store     Shipped by UPS/ to USA/worldwide, (about 3-5 days)

Chapter VI of the single-chip experiment with examples

Limited by the space of this manual, here we provide several typical c51 application examples. To facilitate the novice to learn programming C51, we will show the source code, running photo, line connection method and principle schema for each examples. Of course, XL2000 is not limited by the examples presented here, thanks for the module design of this experimental instrument, user can configure the hardware modules with most flexibility and program against the configuration. By this way, user can have a comprehensive of C51 programming and designing.

   For more asm and C sources, please refer to the examples in the CD shipped with the package, as well as the latest update at: www.8951.com!

Experiment 1: The simplest eight way marquee program

In this experiment, delay subroutines, clr, lcall, ajmp instrunctions will be used. Over these program elements, we can see eight lights flashing in turn through P1.0 to P1.7 port. User can learn from this example and have a initial grasp of the IO port programming.

Practice 1: How to make the time of delay subroutine a bit shorter or longer?
Practice 2: How to use P0, P2 and P3 ports to implement the same control of 8-way lights?
Practice 3: how to implement different patterns in the light flashing?

Related schema:

reference program

org   0000h  ;start

ajmp LOOP; jump to LOOP label

org 0080h; get to 0030h to reserve some space

LOOP:

mov p1,#0ffh; turn off all lights

clr p1.0    ;turn on light at p1.0

lcall delay  ;delay for a while

clr p1.1   ;turn on light at p1.1

lcall delay

clr p1.2    ;

lcall delay

clr p1.3    ;

lcall delay

clr p1.4    ;

lcall delay

clr p1.5   ;

lcall delay

clr p1.6    ;

lcall delay

clr p1.7    ;

lcall delay

AJMP LOOP; jump to LOOP and restart to run

delay:        mov r5,#20 ; delay number

d1:   mov r6,#40

d2:    mov r7,#248

         djnz r7,$

         djnz r6,d2

         djnz r5,d1

         ret

end

  Connection methods:  connect P1 port (JP44) of the CPU with eight-way lights(JP32) with one 8PIN cable. The connecting and program running photo like below: (8 lights turn on/off one by one).
 

SHEN ZHEN XUELIN ELECTRONIC TECHNOLOGY CO.,LTD.

ADD:A302,XingJingYuan ,NanKeng,BanTian,SHENZHEN,GUANGDONG P.R.CHINA
Postalcode: 518129  TEL:86-755-89603537    FAX:86-755-89956892
E-Mail:51C51@163.COM