IanP
Advanced Member level 7
- Joined
- Oct 5, 2004
- Messages
- 7,929
- Helped
- 2,311
- Reputation
- 4,624
- Reaction score
- 531
- Trophy points
- 1,393
- Location
- West Coast
- Activity points
- 66,416
I'm using many 32kB SRAM and ls157 driver on the system because i wanna to achieve 128kB memory as 8051_ExpCard1.JPG show.. Another reason hope can know how to store more CODE in SRAM.I am just curious: what do you need so many SRAMs for :?:
Don't have...Now that you have designed hardware, do you have firmware (monitor-like software) to run it :?:
DS1210 only have one /CEO chip enable output. What do you mean PG0-PG4 should be combined with BANK1 /RD and /WR ?the DS1210 should control all 4 /CE pins , and therefore PG0-PG4 should be combined with BANK1 /RD and /WR ..
It will generate the slc_v3.BIN file but the file is empty file. 0kBC:\>hex2bin slc_v3.hex slc_v3.bin
HEX2BIN Version 1.06
Copyright (c) 1995 Prog....
.....
...
Status: Creating binary file.
Status: HEX to BIN conversion was successful.
Connect /CEO to all 4 /CE and produce /[PG0 AND WR], /[PG0 AND RD] for U11, /[PG1 AND WR], /[PG1 AND RD] for U12 and so on ..DS1210 only have one /CEO chip enable output. What do you mean PG0-PG4 should be combined with BANK1 /RD and /WR ?
I have no idea how to write the program. I'm using C language. Please can you guide me how to write the program to interface the BANK0 1st? I'm using KEIL's. This compiler provided the Bank Switching function L51_BANK.A51. May be you can have a look..As one of the options in the SLC_V3 allows you to execute program in BANK1, write a simple program that allows you to jump back to the MONITOR in BANK0 ..
Di_Cont1: CJNE A, #52h, Di_Cont2 ; Was it 'R'
LCALL Screen_Cls
LJMP Switch_Bank_0
Di_Cont2: CJNE A, #72h, Di_Cont3 ; or 'r'
LCALL Screen_Cls
LJMP Switch_Bank_0
//$NOPAGING
//$MOD252
$MOD51
I would like to confirm again, the /EA on MCU is connected to GND or Vcc?
$NOPAGING causes the LST file to be in one piece, without numbering pages - it's really not important ..I have delete the line-1 and line-2 then add $MOD51. What's the line-1 $NOPAGING mean? Is it important?
It checks which hex number has come from SBUF (serial port) to ACC ..May i know what is the code doing?
IanP said:One of options in the MONITOR program is to [E]xecute program from RAM (BANK1) and when you press [E] the P1.6 pin is cleared, P1.6 = 0 ..
....
; ====================================================================
;[R]e-start from Bank1 ..
Switch_0_1:
LCALL Screen_Cls
LCALL Ret_Mess
M_Di2: DB R, LF, 'press [e] or [E] to execute code in Bank1', ESC
Loop_0:
LCALL Ser_In
Ei_Cont1: CJNE A, #45h, Ei_Cont2 ; Was it 'E'
LJMP Switch_Bank_1
Ei_Cont2: CJNE A, #65h, Ei_Cont3 ; or 'e'
LJMP Switch_Bank_1
Ei_Cont3: LJMP Loop_0
.....
; ====================================================================
; Switch to BANK_1
ORG 0FFFEh
Switch_Bank_1: CLR P1.6
; and program starts from address 0000h in BANK_1 ..
; ====================================================================
...
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?