ADUC7124 Analog Devices, ADUC7124 Datasheet - Page 45

no-image

ADUC7124

Manufacturer Part Number
ADUC7124
Description
Precision Analog Microcontroller, 12-Bit Analog I/O, Large Memory, ARM7TDMI MCU with Enhanced IRQ Handler
Manufacturer
Analog Devices
Datasheet

Specifications of ADUC7124

Mcu Core
ARM7 TDMI
Mcu Speed (mips)
40
Sram (bytes)
32000Bytes
Gpio Pins
30
Adc # Channels
12

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ADUC7124BCPZ126
Manufacturer:
AD
Quantity:
349
Part Number:
ADUC7124BCPZ126
Manufacturer:
Analog Devices Inc
Quantity:
10 000
Part Number:
ADUC7124BCPZ126-RL
Manufacturer:
Analog Devices Inc
Quantity:
10 000
dongle can be purchased from Analog Devices, Inc. This board
connects to the USB port of a PC and to the I
ADuC7126. The part number is USB-I2C/LIN-CONV-Z.
The
downloading via the I
JTAG Access
The JTAG protocol uses the on-chip JTAG interface to facilitate
code download and debug.
To access the part via the JTAG interface, the P0.0/BM pin must
be set high.
When debugging, user code should not write to the P0.1, P0.2,
and P0.3 pins. If user code toggles any of these pins, JTAG debug
pods are not able to connect to the ADuC7124/ADuC7126.
If this happens, mass erase the part using the UART/I
downloader.
FLASH/EE MEMORY SECURITY
The 126 kB of Flash/EE memory available to the user can be
read and write protected. Bit 31 of the FEE0PRO/FEE0HID
MMR protects the 126 kB from being read through JTAG and in
UART programming mode. The other 31 bits of this register
protect writing to the Flash/EE memory; each bit protects four
pages, that is, 2 kB. Write protection is activated for all access types.
FEE1PRO and FEE1HID, similarly, protect the second 64 kB
block. All 32 bits of this are used to protect four pages at a time.
Three Levels of Protection
Sequence to Write the Key
1.
2.
3.
4.
5.
To remove or modify the protection, the same sequence is used
with a modified value of FEExPRO. If the key chosen is the
value 0xDEAD, the memory protection cannot be removed. Only a
mass erase unprotects the part, but it also erases all user code.
AN-806
Protection can be set and removed by writing directly into
FEExHID MMR. This protection does not remain after reset.
Protection can be set by writing into FEExPRO MMR. It
takes effect only after a save protection command (0x0C)
and a reset. The FEExPRO MMR is protected by a key to
avoid direct access. The key is saved once and must be
entered again to modify FEExPRO. A mass erase sets the
key back to 0xFFFF but also erases all the user code.
Flash can be permanently protected by using the FEExPRO
MMR and a particular key value of 0xDEADDEAD.
Entering the key again to modify the FEExPRO register is
not allowed.
Write the bit in FEExPRO corresponding to the page to be
protected.
Enable key protection by setting Bit 6 of FEExMOD (Bit 5
must equal 0).
Write a 32-bit key in FEExADR and FEExDAT.
Run the write key command 0x0C in FEExCON; wait for
the read to be successful by monitoring FEExSTA.
Reset the part.
Application Note describes the protocol for serial
2
C in more detail.
2
C port of the
2
C
Rev. B | Page 45 of 104
The sequence to write the key is illustrated in the following
example (this protects writing Page 4 to Page 7 of the Flash):
FEExPRO=0xFFFFFFFD;
Page 7
FEExMOD=0x48;
FEExADR=0x1234;
FEExDAT=0x5678;
FEExCON= 0x0C;
The same sequence should be followed to protect the part
permanently with FEExADR = 0xDEAD and FEExDAT =
0xDEAD.
FLASH/EE CONTROL INTERFACE
Table 37. FEE0STA Register
Name
FEE0STA
Table 38. FEE0MOD Register
Name
FEE0MOD
Table 39. FEE0CON Register
Name
FEE0CON
Table 40. FEE0DAT Register
Name
FEE0DAT
FEE0DAT is a 16-bit data register.
Table 41. FEE0ADR Register
Name
FEE0ADR
FEE0ADR is a 16-bit address register.
Table 42. FEE0SGN Register
Name
FEE0SGN
FEE0SGN is a 24-bit code signature.
Table 43. FEE0PRO Register
Name
FEE0PRO
FEE0PRO provides protection following subsequent reset MMR.
It requires a software key (see Table 56).
Table 44. FEE0HID Register
Name
FEE0HID
FEE0HID provides immediate protection MMR. It does not
require any software keys (see Table 56).
Address
0xFFFFF800
Address
0xFFFFF804
Address
0xFFFFF808
Address
0xFFFFF80C
Address
0xFFFFF810
Address
0xFFFFF818
Address
0xFFFFF81C
Address
0xFFFFF820
ADuC7124/ADuC7126
//Protect Page 4 to
//Write key enable
//16 bit key value
//16 bit key value
//Write key command
Default Value
0x0000
Default Value
0x80
Default Value
0x00
Default Value
0xXXXX
Default Value
0x0000
Default Value
0xFFFFFF
Default Value
0x00000000
Default Value
0xFFFFFFFF
Access
R
Access
R/W
Access
R/W
Access
R/W
Access
R/W
Access
R
Access
R/W
Access
R/W

Related parts for ADUC7124