aduc7030 Analog Devices, Inc., aduc7030 Datasheet - Page 34

no-image

aduc7030

Manufacturer Part Number
aduc7030
Description
Integrated Precision Battery Sensor For Automotive
Manufacturer
Analog Devices, Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
aduc7030BCPZ
Manufacturer:
ADI/亚德诺
Quantity:
20 000
Part Number:
aduc7030BCPZ-8V
Manufacturer:
Analog Devices Inc
Quantity:
135
ADuC7030/ADuC7033
Command Sequence for executing a Mass Erase
Giving the significance of the ‘Mass Erase’ command, a specific
code sequence must be executed to initiate this operation.
5.
6.
7.
8.
FEE0STA and FEE1STA Registers:
Name:
Address:
Default Value:
Access:
Function:
Table 18. FEE0STA and FEE1STA MMR bit designations
Bit
7-4
3
2
1
0
Set bit 3 in FEExMOD.
Write 0xFFC3 in FEExADR
Write 0x3CFF in FEExDAT
Run the Mass Erase command 0x06 in FEExCON
Description (Note x is 0 or 1 to designate Flash/EE Block 0 or 1)
Not Used
These bits are not used and always read as 0.
Flash/EE Interrupt Status Bit
Set automatically when an interrupt occurs, that is, when a command is complete and the Flash/EE interrupt enable bit in the
FEExMOD register is set
Cleared automatically when the FEExSTA register is read by user code
Flash/EE controller busy
Set automatically when the Flash/EE controller is busy
Cleared automatically when the controller is not busy
Command fail
Set automatically when a command written to FEExCON completes unsuccessfully
Cleared automatically when the FEExSTA register is read by user code
Command Successful
Set automatically by MCU when a command is completed successfully.
Cleared automatically when the FEE0STA register is read by user code
FEE0STA and FEE1STA
0xFFFF0E00 and 0xFFFF0E80
0x20
Read Only
These 8-bit read only registers can be read by user code and reflect the current status of the Flash/EE memory
controllers.
Rev. PrE | Page 34 of 150
This sequence is illustrated in the following example:
Int a = FEExSTA;
FEExMOD = 0x08
FEExADR = 0xFFC3
FEExDAT = 0x3CFF
FEExCON = 0x06;
while (FEExSTA & 0x04){} //Wait for command to finish
Note: To run the mass erase command via FEE0CON, Write
protection on the lower 64kbytes must be disabled, that is,
FEE1HID/FEE1PRO are set to 0xFFFFFFFF. This can be done
by first removing the protection or erasing the lower 64 kBytes
first.
Preliminary Technical Data
// Ensure FEExSTA is cleared
// Mass-Erase command

Related parts for aduc7030