📄 init_65.lst
字号:
C51 COMPILER V7.50 INIT_65 07/31/2006 17:17:18 PAGE 1
C51 COMPILER V7.50, COMPILATION OF MODULE INIT_65
OBJECT MODULE PLACED IN INIT_65.OBJ
COMPILER INVOKED BY: C:\software\keil\C51\BIN\C51.EXE INIT_65.c BROWSE DEBUG OBJECTEXTEND
line level source
1 #include <reg51x.h>
2 #include "78e65.h"
3 void Initialize78E65(void)
4 {
5 1 PCON = 0; //CPU in nomal condition
6 1 POR = 0; //P4 can't drive LED directly
7 1 P4CONA = 0; //P4 as general I/O port
8 1 P4CONB = 0;
9 1 P0 = 0xff; //data not confirmed
10 1 P1 = 0xff; //data not confirmed
11 1 P2 = 0xff; //data not confirmed
12 1 P3 = 0xcf; //data to be confirmed, WR,RD,INT1,INT0,TxD,RxD=1; T0,T1=0
13 1 P4 = 0xff; //data to be confirmed, P4.0,P4.1,INT2,INT3=1
14 1 CHPENR = 0x87; //enable CHPCON write attribution
15 1 CHPENR = 0x59;
16 1 CHPCON = 0x08; //disable AUX-RAM, fang 2005.1.8
17 1 CHPENR = 0; //disable CHPCON write attribution
18 1 SCON = 0; //clear transmition/receiving flag & disable receiving
19 1 WDTC = 0; //disable watch dog
20 1 AUXR = 1; //disable ALE output, fang 2005.1.8
21 1 PWMCON1 = 0; //disable all PWM fuction
22 1 PWMCON2 = 0;
23 1 TCON = 0; //stop t0, t1, and clear t0/t1 interrupt flag
24 1 TMOD = 0;
25 1 T2CON = 0; //stop t2 and clear t2 interrupt flag
26 1 T2MOD = 0;
27 1 }
28 //================w78e65 ROM(xdata) en==========
29 void OSAUX_RAM_EN(char data temp)
30 {
31 1 if(temp==1){
32 2 CHPENR=0x87;
33 2 CHPENR=0x59;
34 2 CHPCON=0x10;
35 2 CHPENR=0x00;
36 2 }
37 1 }
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 71 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -