DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

VRS1000 查看數據表(PDF) - Unspecified

零件编号
产品描述 (功能)
生产厂家
VRS1000 Datasheet PDF : 47 Pages
1 2 3 4 5 6 7 8 9 10 Next Last
VRS1000
VERSA
Datasheet Rev 1.6
IAP Flash Control Register
The VRS1000 IAP function operation is controlled by
the IAP Flash Control register, IAPFCTRL.
Setting the IAPSTART bit to 1, start the execution of
the IAP command specified by the IAPFCT[1:0] bit of
the IAP Flash Control register.
TABLE 9:IAP FLASH CONTROL REGISTER - SFR F7H
7
6
5
4
3
2
1
0
IAPFCTRL[15:8]
Bit Mnemonic Description
7
IAPSTART IAP Selected operation Start sequence
6
Unused
-
5
Unused
-
4
Unused
-
3
Unused
-
2
Unused
-
1
IAPFCT[1:0] Flash Memory IAP Function
0
The IAP sub-system handles four different functions.
The IAP function to perform is defined by the IAPFCT
bits value as shown below:
TABLE 10:IAP FUNCTIONS
IAPFCT[1:0] Bits value
00
01
10
11
IAP Function
Flash Byte Program
Flash Erase Protect
Flash Page Erase
Flash Erase
It is important to note that for security reasons the
IAPSTART bit of the IAPFCTRL register is configured
as read only by default.
In order to access the IAPSTART bit and to write a 1
into it the following operation sequence must be
performed first:
MOV IAPFDATA,#55h
MOV IAPFDATA,#AAh
MOV IAPFDATA,#55h
Then the IAPSTART bit can be set to 1.
Once the start bit is set to 1, the IAP sub-system will
read the content of the IAP Flash Address and Data
register and hold the VRS1000 program counter to its
current value until the IAP operation is completed.
When the IAP operation is complete, the IAPSTART bit
is cleared and the program continues its execution.
IAP Byte Program Function
The IAP byte program function is used to program a
byte into the specified Flash memory location under
the control of the IAP feature. The following program
example shows how to do it:
IAP_PROG: MOV
MOV
MOV
IAPFDATA,#55H
IAPFDATA,#0AAH
IAPFDATA,#55H
;Sequence to Enable Writing
; the IAPSTART bit
MOV
MOV
MOV
MOV
MOV
SYSCON,#04H
IAPFADHI, FADRSH
IAPFADLO,FADRSL
IAPFDATA,FDATA
IAPFCTRL,#80H
;ENABLE IAP FUNCTION
;Set MSB of address to program
;Set LSB of address to program
;Set Data to Program
;Set the IAP Start bit
;**The program Counter will stop until the IAP function is completed
IAP Page Erase Function
Using the IAP feature it is possible to perform Page
erase of the VRS1000 Flash memory at the exception
of the memory area occupied by the ISP boot program.
Each page is 512 Bytes in size.
To perform a given flash page erase, the page address
is specified by the XY (hex) value written into the
IAPFADHI register (The value 00h must be written into
the IAPFADLO registers)
If the “Y” portion of the IAPFADHI register represents
an even number, the page that will be erased
corresponds to the range XY00h to X(Y+1)FFh
If the “Y” portion of the IAPFADHI register represents
an odd number, the page that will be erased
corresponds to the range X(Y-1)00h to XYFFh
The following example program shows how to erase
the page corresponding to the address B000h-CFFFh
;** Erase Flash page located at address B000h to CFFFh.
PageErase: MOV
MOV
MOV
IAPFDATA,#55H
IAPFDATA,#0AAH
IAPFDATA,#55H
;Sequence to Enable Writing
; the IAPSTART bit
MOV
MOV
MOV
MOV
SYSCON,#04H
IAPFADHI, #0B0h
IAPFADLO,#00h
IAPFCTRL,#82H
;ENABLE IAP FUNCTION
;Set MSB of Page address to erase
;Set LSB of address = 00
;SET THE IAP START BIT
1134 Ste Catherine Street West, Suite 900, Montreal, Quebec, Canada H3B 1H4 Tel: (514) 871-2447 http://www.goalsemi.com
8

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]