📄 f34x_msd_msd.lst
字号:
C51 COMPILER V7.50 F34X_MSD_MSD 11/28/2006 10:54:20 PAGE 1
C51 COMPILER V7.50, COMPILATION OF MODULE F34X_MSD_MSD
OBJECT MODULE PLACED IN F34x_MSD_MSD.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\c51.exe F34x_MSD_MSD.c PW(80) SB LC OT(9,SI
-ZE) CD DB OE DF(__F340_VER__) LARGE
line level source
1 //----------------------------------------------------------------
--------------
2 // F34x_MSD_MSD.c
3 //----------------------------------------------------------------
--------------
4 // Copyright 2006 Silicon Laboratories, Inc.
5 // http://www.silabs.com
6 //
7 // Program Description:
8 //
9 // This module contains the crank function. This function is used
-to checking
10 // the request and preparing the response action for its. The fact
- that it's
11 // crank function means that in one cycle this function can make o
-nly one step.
12 // That means it can't check and response in this same cycle. It w
-orks more
13 // like state machine. One step can only repose for actual state a
-nd change
14 // this state to another. The response for other state occurs in n
-ext step.
15 //
16 //
17 //
18 // How To Test: See Readme.txt
19 //
20 //
21 // FID: 34X000046
22 // Target: C8051F34x
23 // Tool chain: Keil
24 // Command Line: See Readme.txt
25 // Project Name: F34x_USB_MSD
26 //
27 // Release 1.1
28 // -All changes by PKC
29 // -09 JUN 2006
30 // -No changes; incremented revision number to match project re
-vision
31 //
32 // Release 1.0
33 // -Initial Release
34 //
35
36 //----------------------------------------------------------------
--------------
37 // Includes
38 //----------------------------------------------------------------
--------------
39
40 #include "F34x_MSD_USB_Main.h"
1 =1 //----------------------------------------------------------------
--------------
2 =1 // F34x_MSD_USB_Main.h
C51 COMPILER V7.50 F34X_MSD_MSD 11/28/2006 10:54:20 PAGE 2
3 =1 //----------------------------------------------------------------
--------------
4 =1 // Copyright 2006 Silicon Laboratories, Inc.
5 =1 // http://www.silabs.com
6 =1 //
7 =1 // Program Description:
8 =1 //
9 =1 // Main header file for USB firmware. Includes function prototypes
-,
10 =1 // standard constants, and configuration constants.//
11 =1 //
12 =1 // FID: 34X000063
13 =1 // Target: C8051F34x
14 =1 // Tool chain: Keil
15 =1 // Command Line: See Readme.txt
16 =1 // Project Name: F34x_USB_MSD
17 =1 //
18 =1 // Release 1.1
19 =1 // -All changes by PKC
20 =1 // -09 JUN 2006
21 =1 // -No changes; incremented revision number to match project re
-vision
22 =1 //
23 =1 // Release 1.0
24 =1 // -Initial Release
25 =1 //
26 =1 // 11/22/02 - DM: 1. Updated function prototypes and added constan
-ts
27 =1 // to F34x_USB_Main.h with sample interrupt firmwar
-e.
28 =1
29 =1 //----------------------------------------------------------------
--------------
30 =1 // Header File Preprocessor Directive
31 =1 //----------------------------------------------------------------
--------------
32 =1
33 =1 #ifndef _USB_MAIN_H_
34 =1 #define _USB_MAIN_H_
35 =1
36 =1 #include "F34x_MSD_Definitions.h"
1 =2 //----------------------------------------------------------------
--------------
2 =2 // F34x_MSD_Definitions.h
3 =2 //----------------------------------------------------------------
--------------
4 =2 // Copyright 2006 Silicon Laboratories, Inc.
5 =2 // http://www.silabs.com
6 =2 //
7 =2 // Program Description:
8 =2 //
9 =2 // Header file with all definitions.
10 =2 //
11 =2 //
12 =2 // FID: 34X000032
13 =2 // Target: C8051F34x
14 =2 // Tool chain: Keil
15 =2 // Command Line: See Readme.txt
16 =2 // Project Name: F34x_USB_MSD
17 =2 //
18 =2 // Release 1.1
19 =2 // -All changes by PKC
C51 COMPILER V7.50 F34X_MSD_MSD 11/28/2006 10:54:20 PAGE 3
20 =2 // -09 JUN 2006
21 =2 // -Replaced SFR definitions file "c8051f320.h" with "c8051f340
-.h"
22 =2 //
23 =2 // Release 1.0
24 =2 // -Initial Release
25 =2 //
26 =2
27 =2 //----------------------------------------------------------------
--------------
28 =2 // Header File Preprocessor Directive
29 =2 //----------------------------------------------------------------
--------------
30 =2
31 =2 #ifndef __DEFINITIONS_H__
32 =2 #define __DEFINITIONS_H__
33 =2
34 =2 #define DEBUG_TIMEOUTS
35 =2 #include "c8051f340.h"
1 =3 //----------------------------------------------------------------
--------------
2 =3 // C8051F340.h
3 =3 //----------------------------------------------------------------
--------------
4 =3 // Copyright 2005 Silicon Laboratories, Inc.
5 =3 // http://www.silabs.com
6 =3 //
7 =3 // Program Description:
8 =3 //
9 =3 // Register/bit definitions for the C8051F34x family.
10 =3 //
11 =3 //
12 =3 // FID: 34X000002
13 =3 // Target: C8051F340, 'F341, 'F342, 'F343, 'F344, 'F345, '
-F346, 'F347
14 =3 // Tool chain: Keil
15 =3 // Command Line: None
16 =3 //
17 =3 // Release 1.0
18 =3 // -Initial Release (GP\PKC)
19 =3 // -13 DEC 2005
20 =3
21 =3 //----------------------------------------------------------------
--------------
22 =3 // Header File Preprocessor Directive
23 =3 //----------------------------------------------------------------
--------------
24 =3
25 =3 #ifndef C8051F340_H
26 =3 #define C8051F340_H
27 =3
28 =3 //----------------------------------------------------------------
--------------
29 =3 // Byte Registers
30 =3 //----------------------------------------------------------------
--------------
31 =3
32 =3 sfr P0 = 0x80; // Port 0 Latch
33 =3 sfr SP = 0x81; // Stack Pointer
34 =3 sfr DPL = 0x82; // Data Pointer Low
35 =3 sfr DPH = 0x83; // Data Pointer High
36 =3 sfr EMI0TC = 0x84; // EMIF Timing
C51 COMPILER V7.50 F34X_MSD_MSD 11/28/2006 10:54:20 PAGE 4
37 =3 sfr EMI0CF = 0x85; // EMIF Configuration
38 =3 sfr OSCLCN = 0x86; // Internal Low-Freq Oscill
-ator Control
39 =3 sfr PCON = 0x87; // Power Control
40 =3 sfr TCON = 0x88; // Timer/Counter Control
41 =3 sfr TMOD = 0x89; // Timer/Counter Mode
42 =3 sfr TL0 = 0x8A; // Timer/Counter 0 Low
43 =3 sfr TL1 = 0x8B; // Timer/Counter 1 Low
44 =3 sfr TH0 = 0x8C; // Timer/Counter 0 High
45 =3 sfr TH1 = 0x8D; // Timer/Counter 1 High
46 =3 sfr CKCON = 0x8E; // Clock Control
47 =3 sfr PSCTL = 0x8F; // Program Store R/W Contro
-l
48 =3 sfr P1 = 0x90; // Port 1 Latch
49 =3 sfr TMR3CN = 0x91; // Timer/Counter 3Control
50 =3 sfr TMR3RLL = 0x92; // Timer/Counter 3 Reload L
-ow
51 =3 sfr TMR3RLH = 0x93; // Timer/Counter 3 Reload H
-igh
52 =3 sfr TMR3L = 0x94; // Timer/Counter 3Low
53 =3 sfr TMR3H = 0x95; // Timer/Counter 3 High
54 =3 sfr USB0ADR = 0x96; // USB0 Indirect Address Re
-gister
55 =3 sfr USB0DAT = 0x97; // USB0 Data Register
56 =3 sfr SCON0 = 0x98; // UART0 Control
57 =3 sfr SBUF0 = 0x99; // UART0 Data Buffer
58 =3 sfr CPT1CN = 0x9A; // Comparator1 Control
59 =3 sfr CPT0CN = 0x9B; // Comparator0 Control
60 =3 sfr CPT1MD = 0x9C; // Comparator1 Mode Selecti
-on
61 =3 sfr CPT0MD = 0x9D; // Comparator0 Mode Selecti
-on
62 =3 sfr CPT1MX = 0x9E; // Comparator1 MUX Selectio
-n
63 =3 sfr CPT0MX = 0x9F; // Comparator0 MUX Selectio
-n
64 =3 sfr P2 = 0xA0; // Port 2 Latch
65 =3 sfr SPI0CFG = 0xA1; // SPI Configuration
66 =3 sfr SPI0CKR = 0xA2; // SPI Clock Rate Control
67 =3 sfr SPI0DAT = 0xA3; // SPI Data
68 =3 sfr P0MDOUT = 0xA4; // Port 0 Output Mode Confi
-guration
69 =3 sfr P1MDOUT = 0xA5; // Port 1 Output Mode Confi
-guration
70 =3 sfr P2MDOUT = 0xA6; // Port 2 Output Mode Confi
-guration
71 =3 sfr P3MDOUT = 0xA7; // Port 3 Output Mode Confi
-guration
72 =3 sfr IE = 0xA8; // Interrupt Enable
73 =3 sfr CLKSEL = 0xA9; // Clock Select
74 =3 sfr EMI0CN = 0xAA; // External Memory Interfac
-e Control
75 =3 sfr SBCON1 = 0xAC; // UART1 Baud Rate Generato
-r Control
76 =3 sfr P4MDOUT = 0xAE; // Port 4 Output Mode Confi
-guration
77 =3 sfr PFE0CN = 0xAF; // Prefetch Engine Control
78 =3 sfr P3 = 0xB0; // Port 3 Latch
79 =3 sfr OSCXCN = 0xB1; // External Oscillator Cont
-rol
80 =3 sfr OSCICN = 0xB2; // Internal Oscillator Cont
-rol
C51 COMPILER V7.50 F34X_MSD_MSD 11/28/2006 10:54:20 PAGE 5
81 =3 sfr OSCICL = 0xB3; // Internal Oscillator Cali
-bration
82 =3 sfr SBRLL1 = 0xB4; // UART1 Baud Rate Generato
-r Low
83 =3 sfr SBRLH1 = 0xB5; // UART1 Baud Rate Generato
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -