參數(shù)資料
型號: SAB88C166W-5M
廠商: SIEMENS A G
元件分類: 微控制器/微處理器
英文描述: 16-Bit CMOS Single-Chip Microcontrollers with/without oscillator prescaler with 32 KByte Flash EPROM
中文描述: 16-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP100
文件頁數(shù): 26/58頁
文件大?。?/td> 611K
代理商: SAB88C166W-5M
SAB 88C166(W)
Semiconductor Group
25
WAIT_ERASE:
MOV
JB
; Polling Loop to check bit FBUSY
; Read FCR contents using 16-bit access
; Loop while bit FBUSY (FCR.2) is ‘1’
; Continue in EVM mode, when FBUSY is ‘0’
R15, DPP1: pof FCR
R15.2, WAIT_ERASE
G
Verify V
PP
validity during erasing
to make sure V
PP
did not exceed its valid margins during the
erase operation. Otherwise erasing may have not been performed properly. The FCVPP flag is
set to ‘1’ in case of this error condition. If FCVPP reads ‘1’, the erase routine can abort, when V
PP
still fails, or repeat the erase operation, when V
PP
proves to be stable now.
G
Perform Erase-Verify operation and compare with ‘FFFF
H
in order to check whether an
erase operation was performed correctly. EVM reading consists of two identical Flash read
instructions with 4
μ
s delay in between. This example uses CMP instructions to access the Flash
memory. In case of a mismatch the erase routine repeats the erase cycle provided that the
maximum number of attempts was not yet reached.
MOV
CMP
CALL
CMP
JMP
. . .
R15, ONES
R15, [FLASH_PTR]
cc_UC, WAIT_4
R15, [FLASH_PTR]
cc_NZ, ERASE_FAILED
; Load auxiliary GPR with anticipated value
; 1st step of EVM read
; Delay for 4
μ
s
; 2nd step of EVM read
; Re-erase on mismatch, if (PCOUNT) > 0
; Erasing was OK. Go on with next step.
G
Check number of erase attempts
to decide, if another erase attempt is allowed. PCOUNT is
decremented by ‘1’ upon each unsuccessful erase attempt. If it expires, the failing Flash memory
bank is classified as unerasable. This failure is very unlikely to occur. However, it should be
checked for safe erasing.
Note:
This step is taken only in case of a erase verify mismatch.
G
Check for last word and increment pointers
to decide, if another cell must be verified. The
target pointer (FLASH_PTR) is incremented to the next word to be verified and checked against
the upper limit of the respective bank. If the target pointer exceeds the bank limit, the erase
routine is exited successfully.
G
Disable erase operations and exit routine
, when the Flash memory bank was erased
successfully or when a failure occurred. In either case bit FWE of the FCR is reset to ‘0’ and the
erase routine is exited. This means that the Flash non-verify mode is entered again, where the
FCR stays accessible but Flash memory locations can be read normally again using indirect
addressing. For returning to the Flash standard mode, bit FWMSET of the FCR must be reset to
‘0’ by the calling routine. The erase routine may return an exit code that indicates correct erasing
or identifies the type of error.
相關PDF資料
PDF描述
SAB88C166 16-Bit CMOS Single-Chip Microcontrollers with/without oscillator prescaler with 32 KByte Flash EPROM
SAB88C166-5M 16-Bit CMOS Single-Chip Microcontrollers with/without oscillator prescaler with 32 KByte Flash EPROM
SAE 81C90 16-Bit Microcontroller(16位微控制器)
SAE 81C91 16-bit microcontrollers(16位微控制器)
SAF-C167CR-16F 16-Bit CMOS Single-Chip Microcontroller with 128KByte Flash EPROM
相關代理商/技術參數(shù)
參數(shù)描述
SAB9075H 制造商:PHILIPS 制造商全稱:NXP Semiconductors 功能描述:Picture-in-Picture PIP controller for NTSC
SAB9075HB-S 制造商:未知廠家 制造商全稱:未知廠家 功能描述:Picture-in-Picture Circuit
SAB9076H 制造商:PHILIPS 制造商全稱:NXP Semiconductors 功能描述:Picture-In-Picture PIP controller
SAB9077 制造商:PHILIPS 制造商全稱:NXP Semiconductors 功能描述:Picture-In-Picture PIP controller
SAB9077H 制造商:PHILIPS 制造商全稱:NXP Semiconductors 功能描述:Picture-In-Picture PIP controller