Escolar Documentos
Profissional Documentos
Cultura Documentos
Execution:
Note: After Loading corresponding Examples Hex file located in OUT Folder to
the microcontroller kit, press RST Button, user program now executes.
Execution:
Note: After Loading corresponding Examples Hex file located in OUT Folder to
the microcontroller kit, press RST Button, user program now executes.
10
11
Execution:
Note: After Loading corresponding Examples Hex file located in OUT Folder to
the microcontroller kit, press RST Button, user program now executes.
12
13
14
15
16
17
18
19
20
21
25
26
27
28
30
31
32
33
35
36
37
38
39
40
42
43
44
#define INIT 0
#define UART 1
#define UART_SEND 2
#define LCD_INIT 3
#define KEY_OUT 4
#define KEY_IN 5
code unsigned char msg0[] = ("ELEVATOR SIMULATION "); //serial communi msg
code unsigned char msg[] = (" RTX-51 BASED );
//Display the message
code unsigned char msg1[] = (" ELEVATOR SIMUL ");
code unsigned char msg2[] = ("OPEN ");
//lcd/uart msg
code unsigned char msg3[] = ("CLOSE");
45
46
48
50
52
54
57
59