參數(shù)資料
型號(hào): 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
文件頁(yè)數(shù): 22/58頁(yè)
文件大?。?/td> 611K
代理商: SAB88C166W-5M
SAB 88C166(W)
Semiconductor Group
21
G
Perform Program-Verify operation and compare with source data
in order to check whether
a programming operation was performed correctly. PVM 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 programming routine repeats the programming cycle
provided that the maximum number of attempts was not yet reached. PVM reading and data
comparison must be performed on both words of the double word to be tested.
CMP
DATAWR1, [FLASH_PTR]
CALL
cc_UC, WAIT_4
CMP
DATAWR1, [FLASH_PTR]
JMP
cc_NZ, PROG_FAILED
MOV
R15, FLASH_PTR
ADD
R15, #0002H
CMP
DATAWR2, [R15]
CALL
cc_UC, WAIT_4
CMP
DATAWR2, [R15]
JMP
cc_NZ, PROG_FAILED
. . .
; 1st step of PVM read (low word)
; Delay for 4
μ
s
; 2nd step of PVM read (low word)
; Reprogram on mismatch, if (PCOUNT) > 0
; Auxiliary pointer to upper word of doubleword
; 1st step of PVM read (high word)
; Delay for 4
μ
s
; 2nd step of PVM read (high word)
; Reprogram on mismatch, if (PCOUNT) > 0
; Programming was OK. Go on with next step.
G
Check number of programming attempts
to decide, if another programming attempt is
allowed. PCOUNT is decremented by ‘1’ upon each unsuccessful programming attempt. If it
expires, the failing Flash cells are classified as unprogrammable and should be left out. This
failure is very unlikely to occur. However, it should be checked for safe programming.
Note:
This step is taken only in case of a program verify mismatch.
G
Check for last doubleword and increment pointers
to decide, if another programming cycle is
required. The auxiliary counter DWCOUNT is decremented by ‘1’ after each successful double
word programming. If it expires, the complete data block is programmed and the programming
routine is exited successfully. Otherwise source and target pointers (SRC_PTR and
FLASH_PTR) are incremented to the next doubleword to be programmed.
G
Disable Flash programming operations and exit routine
, when the Flash memory block was
programmed successfully or when a failure occurred. In either case bit FWE of the FCR is reset
to ‘0’ and the programming 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 programming routine may return an exit
code that indicates correct programming or identifies the type of error.
相關(guān)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
相關(guān)代理商/技術(shù)參數(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