📄 jb8-psu.lst
字号:
jb8-psu.ASM Assembled with CASM08Z 1/23/2003 9:57:47 PM PAGE 1
1 *********************************************************
********************
2 * Copyright (c)
Motorola 2002 *
3 * File Name: JB8-PSU.ASM
*
4 *
*
5 * Description: USB PS/2 keyboard demo program for
HC908JB8 *
6 *
*
7 *
*
8 * Assembler: CASM08Z (P&E Microcomputer Systems
Inc) *
9 * Version: 3.16
*
10 *
*
11 * Current Revision: 1.0
*
12 * Current Revision Release Date: 2002.08.10 by Derek
Lau *
13 *
*
14 * Updated History
*
15 * Rev YYYY.MM.DD Author
Description of Change *
16 * --- ----------- ------
--------------------- *
17 * 0.0 1999.10.30 Derek Lau
orginal release
*
18 * ACPI report ID
= 1 to pass Winkey *
19 *
extend PS2/USB detection to 10s
*
20 *
changed USB suspend time from
3->8ms*
21 * 0.4 2002.02.19 Derek Lau
fixed keyboard remote wakeup *
22 *
problem in some machines
*
23 * 1.0 2002.08.10 Derek Lau
general release
jb8-psu.ASM Assembled with CASM08Z 1/23/2003 9:57:47 PM PAGE 2
*
24 *********************************************************
********************
25 * This Program is a freeware to demonstrate the operation
of Motorola *
26 * Microcontroller. Motorola reserves the right to make
changes without *
27 * further notice to any product herein to improve
reliability, function, or *
28 * design. Motorola does not assume any liability
arising out of the *
29 * application or use of any product, circuit, or
software described herein; *
30 * neither does it convey any license under its patent
rights nor the rights *
31 * of others. Motorola products are not designed,
intended, or authorized *
32 * for use as components in systems intended for
surgical implant into the *
33 * body, or other applications intended to support life,
or for any other *
34 * application in which the failure of the Motorola
product could create a *
35 * situation where personal injury or death may occur.
Should Buyer purchase *
36 * or use Motorola products for any such intended or
unauthorized *
37 * application, Buyer shall indemnify and hold Motorola
and its officers, *
38 * employees, subsidiaries, affiliates, and distributors
harmless against *
39 * all claims, costs, damages, and expenses, and reasonabl
e attorney fees *
40 * arising out of, directly or indirectly, any claim of
personal injury or *
41 * death associated with such unintended or unauthorized
use, even if such *
42 * claim alleges that Motorola was negligent regarding
the design or *
43 * manufacture of the part. Motorola and the
Motorola logo* are registered *
44 * trademarks of Motorola Inc
*
45 *********************************************************
********************
46 * To be Done List:
47 *
48 *
49 * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * *
50 * Notes:
51 * - abbreviation
52 * i/p - input, o/p - output, i/o - input/output, o/d
- open-drain o/p
53 * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * *
54 * ====== Compile Options ================================
jb8-psu.ASM Assembled with CASM08Z 1/23/2003 9:57:47 PM PAGE 3
=================
TOTAL CYCLES = 0 decimal
0000 55 $BASE !10
56
57
58 * ------ Image of CONFIG Register -----------------------
-----------------
59
0000 60 K_CONFIG equ %00010011
61 * |||||+---------- 1-disable COP
62 * ||||+----------- 1-enable STOP inst.
63 * |||+------------ 0-COP timeout period
- 8k OSC cycle
64 * ||+------------- 0-Stop mode recovery
- 4096 OSC cycle
65 * |+-------------- 0-enable LVI
66 * +--------------- ;
0-USB Reset to generate reset signal
67
68
jb8-psu.ASM Assembled with CASM08Z 1/23/2003 9:57:47 PM PAGE 4
69 * ====== Include Files ==================================
=================
0000 70 $INCLUDE "JB8-EQS.H" ; JB8 Reg.
Equates & Variables
71
72
73
74 * ====== MACRO Defination ===============================
=================
0000 75 $INCLUDE "MACRO8.ASM"
76
jb8-psu.ASM Assembled with CASM08Z 1/23/2003 9:57:47 PM PAGE 5
77 * ====== New I/O Definations ============================
=================
78
79 * --- Port A --------------------------------------------
-----------------
80 * Key Matrix - Scan Row 0-7
81 *
82 *
83 * --- Port E --------------------------------------------
-----------------
0000 84 b_COL16 equ 0 ; Key Matrix - Scan
Column 16 [o/d]
0000 85 b_COL17 equ 2 ; Key Matrix - Scan
Column 17 [o/d]
0000 86 KBD_CLK equ 3 ; PS/2 serial clock (USB
D-) [o/d]
0000 87 KBD_DTA equ 4 ; PS/2 serial data (USB
D+) [o/d]
88 *
89 *
90 *
91 *
92 * --- Port B --------------------------------------------
-----------------
93 * Key Matrix - Scan Column 0-7
94 *
95 *
96 * --- Port C --------------------------------------------
-----------------
97 * Key Matrix - Scan Column 8-15
98
99
100
101
jb8-psu.ASM Assembled with CASM08Z 1/23/2003 9:57:47 PM PAGE 6
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -