📄 lcd1.lst
字号:
* R8C/Tiny SERIES ASSEMBLER * SOURCE LIST Thu Oct 14 17:32:26 2004 PAGE 001
SEQ. LOC. OBJ. 0XMSDA ....*....SOURCE STATEMENT....7....*....8....*....9....*....0....*....1....*....2....*....3....*....4
1 ;""FILE COMMENT""**************************************************************
2 ; System Name : for eduction (NO TRANSFERRING)
3 ; File Name : lcd1.a30
4 ; Contents : the low level program used by LCD(assembly language)
5 ; Model : for OAKS8-LCD Board
6 ; CPU : R8C/Tiny series
7 ; Assembler : as30(V.5.10.00)
8 ; Linker : ln30(V.5.10.0)
9 ; Programer : RENESAS Semiconductor Training Center
10 ; Note : for OAKS8-R5F21114FP(R8C/11 group,20MHz)
11 ; : for SC1602BS*B material
12 ;******************************************************************************
13 ; COPYRIGHT(C) 2004 RENESAS TECHNOLOGY CORPORATION
14 ; AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
15 ;******************************************************************************
16 ; History : ---
17 ;""FILE COMMENT END""**********************************************************
18
19 .include target.inc ; for M16C/60 series
20 1 ;""FILE COMMENT""**************************************************************
21 1 ; System Name : for eduction (NO TRANSFERRING)
22 1 ; File Name : targetiinc
23 1 ; Contents : SFR definition file(assembly language) for R8C/Tiny series
24 1 ; Model : for OAKS8-LCD Board
25 1 ; CPU : R8C/Tiny series
26 1 ; Assembler : as30(V.5.10.00)
27 1 ; Linker : ln30(V.5.10.01)
28 1 ; Programer : RENESAS Semiconductor Training Center
29 1 ; Note : for OAKS8-R5F21114FP(R8C/11 group,20MHz)
30 1 ;******************************************************************************
31 1 ; COPYRIGHT(C) 2004 RENESAS TECHNOLOGY CORPORATION
32 1 ; AND RENESAS SOLUTIONS CORPORATION ALL RIGHTS RESERVED
33 1 ;******************************************************************************
34 1 ; History : ---
35 1 ;""FILE COMMENT END""**********************************************************
36 1
37 1 ;******************************************************************************
38 1 ; define SFR symbol
39 1 ;******************************************************************************
40 1 ;------------------------------------------------------------------------------
41 1 ; processor mode register 0
42 1 ;------------------------------------------------------------------------------
43 00000004h 1 pm0 .equ 0004h
44 1 ;------------------------------------------------------------------------------
45 1 ; processor mode register 1
46 1 ;------------------------------------------------------------------------------
47 00000005h 1 pm1 .equ 0005h
48 1 ;------------------------------------------------------------------------------
49 1 ; system clock control register 0
50 1 ;------------------------------------------------------------------------------
51 00000006h 1 cm0 .equ 0006h
52 1 ;------------------------------------------------------------------------------
53 1 ; system clock control register 1
54 1 ;------------------------------------------------------------------------------
55 00000007h 1 cm1 .equ 0007h
56 1 ;------------------------------------------------------------------------------
57 1 ; protect register
58 1 ;------------------------------------------------------------------------------
59 0000000Ah 1 prcr .equ 000ah
60 1 ;
61 0,0000000Ah 1 prc0 .btequ 0,prcr ; bit for permitting writing
62 1 ; system clock control register 0, 1
* R8C/Tiny SERIES ASSEMBLER * SOURCE LIST Thu Oct 14 17:32:26 2004 PAGE 002
SEQ. LOC. OBJ. 0XMSDA ....*....SOURCE STATEMENT....7....*....8....*....9....*....0....*....1....*....2....*....3....*....4
63 1 ; oscillation stop detection register
64 1 ; high speed ring control register 0, 1
65 1,0000000Ah 1 prc1 .btequ 1,prcr ; bit for permitting writing
66 1 ; processor mode register 0, 1
67 2,0000000Ah 1 prc2 .btequ 2,prcr ; bit for permitting writing
68 1 ; port P0 direction register
69 1 ;------------------------------------------------------------------------------
70 1 ; oscillation stop detection register
71 1 ;------------------------------------------------------------------------------
72 0000000Ch 1 ocd .equ 000ch
73 1 ;------------------------------------------------------------------------------
74 1 ; port P1 register
75 1 ;------------------------------------------------------------------------------
76 000000E1h 1 p1 .equ 000E1H
77 1
78 6,000000E1h 1 p1_6 .btequ 6,000E1H; bit 6 of port P1
79 7,000000E1h 1 p1_7 .btequ 7,000E1H; bit 7 of port P1
80 1 ;------------------------------------------------------------------------------
81 1 ; port P1 direction register
82 1 ;------------------------------------------------------------------------------
83 000000E3h 1 pd1 .equ 000E3H ; port P1 direction register
84 1
85 1 ;------------------------------------------------------------------------------
86 1 ; port P4 register
87 1 ;------------------------------------------------------------------------------
88 000000E8h 1 p4 .equ 000E8H
89 5,000000E8h 1 p4_5 .btequ 5,000E8H; bit 5 of port P4(SW20 return input)
90 1
91 1 ;------------------------------------------------------------------------------
92 1 ; INT0 interrupt control register
93 1 ;------------------------------------------------------------------------------
94 0000005Dh 1 int0ic .equ 0005DH
95 3,0000005Dh 1 ir_int0ic .btequ 3,0005DH; INT0 interrupt request bit
96 1
97 1 ;******************************************************************************
98 1 ; end of file
99 1 ;******************************************************************************
100 ; SFR section definition file
101 ;==============================================================================
102 ; define symbol
103 ;==============================================================================
104 6,000000E1h p1_6_RS .btequ p1_6 ; RS port (bit 6 of port P1)
105 ; 0:command-reg, 1:data-reg
106 7,000000E1h p1_7_E .btequ p1_7 ; E port (bit 7 of port P1)
107 ; 1:strobe, falling edge:RW
108
109 000000C0h R .equ 11000000B ; the value to set for LCD
110 ; reading from LCD module to M16C
111 ; input only (the low 4 bits(DATA port),
112 ; MSB not be used)
113 000000CFh W .equ 11001111B ; the value to set for LCD
114 ; writing from M16C to LCD module
115 ; (output all, MSB not be used)
116 00000000h DEF_P1_DATA .equ 00000000B ; when not to operate LCD
117 ; port P1 register settings is as below
118 ; 00000000
119 ; ||||++++---- B3-0 = 0
120 ; |||+-------- B4(E) = L
121 ; ||+--------- B5(RW) = L(WRITE)
122 ; |+---------- B6(RS) = L(COMMAND)
123 ; +----------- B7 = L(OPEN)
124
* R8C/Tiny SERIES ASSEMBLER * SOURCE LIST Thu Oct 14 17:32:26 2004 PAGE 003
SEQ. LOC. OBJ. 0XMSDA ....*....SOURCE STATEMENT....7....*....8....*....9....*....0....*....1....*....2....*....3....*....4
125 ;""SUBR COMMENT""**************************************************************
126 ; ID : ---
127 ; subroutine name : void _lcd1__initial(void)
128 ; function : LCD control port initialization
129 ; input : none
130 ; output : none
131 ; subroutine used : none
132 ; stack : 0 byte
133 ; notice : only initialization, LCD can not display
134 ; History : ---
135 ;""SUBR COMMENT END""**********************************************************
136 .section program ; same section as the C program
137 .glb __lcd1__initial ; global definition
138 00000 __lcd1__initial:
139 00000 B7E100 Z mov.b #DEF_P1_DATA, p1 ; set data bus as status not be used
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -