參數(shù)資料
型號(hào): SAB88C166-5M
廠商: SIEMENS A G
元件分類(lèi): 微控制器/微處理器
英文描述: 16-Bit CMOS Single-Chip Microcontrollers with/without oscillator prescaler with 32 KByte Flash EPROM
中文描述: 16-BIT, FLASH, 20 MHz, MICROCONTROLLER, PQFP100
文件頁(yè)數(shù): 25/58頁(yè)
文件大小: 611K
代理商: SAB88C166-5M
SAB 88C166(W)
Semiconductor Group
24
G
Enter writing mode via unlock sequence
(prerequisite for any programming or erase
operation).
MOV
MOV
CALL
FCR, Rw
n
[Rw
n
], Rw
n
cc_UC, WAIT_10
; Dummy write to the FCR
; Both operands use the same GPR
; Delay for 10
μ
s
G
Program the FCR register
with a value that selects erase mode. Note that this does not yet start
the erase operation itself.
MOV
R15, #1000 00XX 0110 0011B
; #xxxx xxxx xxxx xxx1: FWE=’1’:
; #xxxx xxxx xxxx xx1x: FEE=’1’:
; #xxxx xxxx x11x xxxx: CKCTL=’11’:
; #xxxx xxXX xxxx xxxx: BE=’xx’:
; #1xxx xxxx xxxx xxxx: FWMSET=’1’:
DPP1:pof FCR, R15
Enable Flash write operations
Select erase mode
10 ms erase pulse (fCPU = 20 MHz)
Select the desired bank (3...0)
Stay in writing mode
; Write Value to the FCR using 16-bit access
MOV
G
Initialize target pointer
with the start address of the selected Flash memory bank. The Flash
memory must be accessed indirectly and uses the pointer FLASH_PTR. This pointer will apply
to DPP0 or DPP1, which are expected to select data pages 4 or 5, respectively.
G
Test for correct V
PP
margin at pin V
PP
/EBC1
before an erase operation is started. If bit
VPPREV reads ‘1’, the erase voltage is correct and the algorithm can be continued. Otherwise,
the erase routine could wait in Flash writing mode until V
PP
reaches its correct value and resume
erasing then, or it could exit writing mode.
MOV
JB
Vpp_OK2:
R15, DPP1:pof FCR
R15.4, Vpp_OK2
; Read FCR contents using 16-bit access
; Test V
PP
via bit VPPREV (= FCR.4)
; VPPREV=’0’: Exit erase procedure
; VPPREV=’1’: Test Okay! Continue
G
Initialize loop counter
(PCOUNT) with the maximum number of erase trials (ENmax) to be
performed before exiting the routine with a failure. Each trial means applying a pulse of 10 ms to
the selected Flash memory bank. According to the maximum cumulated erase time of 30 s
allowed per cell, ENmax must be ‘3000’ here.
G
Erase selected Flash memory bank
by writing to a Flash memory location using the target
address as write data.
MOV
[FLASH_PTR], FLASH_PTR
; Write address to Flash, starts erasing
G
Wait until erase time elapsed
, which depends on bit field CKCTL in the FCR register and on the
CPU clock frequency (10 ms in this example). End of erasing is detected by polling the FBUSY
flag in the FCR register. The Flash memory switches to EVM mode automatically.
相關(guān)PDF資料
PDF描述
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
SAFC167CR-16F 16-Bit CMOS Single-Chip Microcontroller with 128KByte Flash EPROM
SAF-C503 8-Bit CMOS Microcontroller
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
SAB88C166EVAL 制造商:Siemens 功能描述:
SAB88C166W-5M 制造商:INFINEON 制造商全稱:Infineon Technologies AG 功能描述:16-Bit CMOS Single-Chip Microcontrollers with/without oscillator prescaler with 32 KByte Flash EPROM
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