Is it the SRAM also can be store the program code? If yes, then we can do the mapping 16kB for data and 16kB for code or we can use 64kB SRAM to increase the memory size then do the mapping for data and code...your 32kB SRAM in certain circumstances can be used to store program code..
What do you mean. Is it we have to write the code to 1st external RAM? How to write the code to 1st RAM? ( assume 1st SRAM is ROM? )To program it select the ram space and write to it as external ram.
After all the code is write to 1st SRAM(for ROM space) then the 2nd SRAM is for RAM space. But in our programing we have to do the memory switching am i rite?Then select rom space
Is it the 1st SRAM(ROM space) must have the battery backup? How it need battery to backup?need a battery to keep your program safe in the event of a power failure
.equ help_key, '?' ;help screen
.equ dir_key, 'M' ;directory
.equ run_key, 'R' ;run program
.equ dnld_key, 'D' ;download
.equ upld_key, 'U' ;upload
.equ nloc_key, 'N' ;new memory location
.equ jump_key, 'J' ;jump to memory location
.equ dump_key, 'H' ;hex dump memory
.equ intm_key, 'I' ;hex dump internal memory
.equ edit_key, 'E' ;edit memory
.equ clrm_key, 'C' ;clear memory
.equ erfr_key, 'Z' ;erase flash rom
; To set the baud rate, use this formula or set to 0 for auto detection
; baud_const = 256 - (crystal / (12 * 16 * baud))
.equ baud_const, 0 ;automatic baud rate detection
;.equ baud_const, 255 ;57600 baud w/ 11.0592 MHz
;.equ baud_const, 253 ;19200 baud w/ 11.0592 MHz
myPAULM2.hex is intel hex file of "myPAULM2.asm" and "myEXTRA.asm", modified version of PAULMON2 monitor program. The fancy editor was cut and the following functions were added;
1) return address to monitor by using 'JMP monitor' where monitor address was defined in myPAULM2.EQU and,
2) baud rate was fixed at 9600 8n1, this allows the use of C-52 EVB to be a dedicated controller by using Paul's concept of PROGRAM HEADER w/start-up method and a 32kB NVRAM. PAULMON2 Program Header describes four types of user program. With hardware start-up type and fixed baud rate, user program will run when power up after some initialization.
if SRAM address (0x0000) phisically strats from vector = (0x8000) you can always chang VECTOR and PGM to whatever you like (>8000) and leave some space for data ..I have another question. If currently i have some data which is using XBYTE send to SRAM. The data address is start from 0x0000. I would to know after we download the CODE to SRAM the CODE data will overwrite the XBYTE data, am i rite? How can we do the memory mapping for that?
That's the one ..There is the as31 file in the bin.
.equ pgm, 0x8000 ;default location for the user program
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?