SAF-C164SM Infineon Technologies, SAF-C164SM Datasheet - Page 55

no-image

SAF-C164SM

Manufacturer Part Number
SAF-C164SM
Description
16-Bit CMOS Microcontroller
Manufacturer
Infineon Technologies
Datasheet
An OTP programming/verify cycle is executed by a sequence of accesses to the
programming interface which emulate the externally controlled cycles (see example
below).
OTP Programming Example
The on-chip OTP memory is programmed in CHM executing the following procedure:
Note: The example below assumes segment 0 (RH3 = 00
MOV
MOV
MOV
MOV
BSET
CALL
PROG_OTP_WORD:
MOV
MOV
MOV
MOV
MOV
CALL
MOV
MOV
ALT_VERIFY:
BCLR
CALL
MOV
MOV
MOV
MOV
CMP
JMP
BSET
CALL
User’s Manual
R1, #OTP_START
R2, #DATA_BLOCK
R3, #0003H
DPP3:OPCTRL, R3
VPP_ENABLE
MICROSEC_010
DPP3:OPAD, R1
R0, [R2+]
DPP3:OPDAT, R0
R3, #0001H
DPP3:OPCTRL, R3
MICROSEC_100
R3, #0003H
DPP3:OPCTRL, R3
VPP_ENABLE
MICROSEC_010
R3, #0002H
DPP3:OPCTRL, R3
R3, #0003H
DPP3:OPCTRL, R3
R0, DPP3:OPDAT
cc_NE, PROG_FAILED
VPP_ENABLE
MICROSEC_010
;R1 = OTP pointer
;R2 = Source data pointer
;03H: enable module, cmd. idle
;Initially enable the OTP module
;External progr. voltage ON
;Let VPP settle for 10
;Select current address
;Move source data word …
;… to data register
;01H: enable module, WR active
;Select OTP module for write access
;Keep the write signal low for 100
;03H: enable module, cmd. idle
;Trailing edge of write signal
;This block only for alternating verify
;External progr. voltage Off
;Let VPP settle for 10
;02H: enable module, RD active
;Select OTP module for read access
;03H: enable module, cmd. idle
;Trailing edge of read signal
;Verify data reg. with original data
;External progr. voltage ON
;Let VPP settle for 10
3-17
H
).
Memory Organization
C164CM/C164SM
s
s
s
Derivatives
V1.0, 2002-02
s

Related parts for SAF-C164SM