Home
EETS1K Block User Guide V01.04
Contents
1. 0 0 0 0 0 0 0 0 Unimplemented or Reserved Figure 3 3 RESERVED1 bits read zero and are not writable 16 M MOTOROLA EETS1K Block User Guide V01 04 3 3 3 RESERVED2 This register is reserved for factory testing and is not accessible to the user Register address BASE 112 7 6 5 4 3 2 1 0 R 0 0 0 0 0 0 0 0 W Reset 0 0 0 0 0 0 0 0 Unimplemented or Reserved Figure 3 4 RESERVED2 All bits read zero and are not writable 3 3 4 ECNFG EEPROM Configuration Register The ECNFG register enables the EEPROM interrupts Register address BASE 113 7 6 5 4 3 2 1 0 CBEIE CCIE 9 9 9 E Reset 0 0 0 0 0 0 0 0 Unimplemented or Reserved Figure 3 5 EEPROM Configuration Register ECNFG CBEIE and CCIE are readable and writable Bits 5 0 read zero and are not writable CBEIE Command Buffer Empty Interrupt Enable The CBEIE bit enables the interrupts in case of an empty command buffer in the EEPROM 1 An interrupt will be requested whenever the flag Figure 3 7 is set 0 Command Buffer Empty interrupts disabled CCIE Command Complete Interrupt Enable The CCIE bit enables the interrupts in case of all commands being completed in the EEPROM An interrupt will be requested whenever the CCIF Figure 3 7 flag is set 0 Command Complete interrupts disabled MOTOROLA 17 EETS1K Block User Guide V01 04 3 3 5 EPROT EEPROM Protection Register The EPRO
2. Chip security is defined at the MCU level MOTOROLA 13 EETS1K Block User Guide V01 04 14 12 bytes REGISTER BASE 110 EEPROM Registers REGISTER BASE _11B EEPROM BASE 000 512 bytes 200 EEPROM Array 240 280 _2 0 300 EEPROM Protected High Sectors 5 64 128 192 256 320 384 448 512 bytes 340 380 5 3 0 EEPROM BASE EEPROM Protection Reserved Field Figure 3 1 EEPROM Memory MOTOROLA EETS1K Block User Guide V01 04 The EEPROM module contains a set of 12 control and status registers located in address space BASE 110 to BASE 11B Table 3 2 gives an overview on all EETSIK registers Table 3 2 EEPROM Register Memory Map irc den Use Access 00 EEPROM Clock Divider Register ECLKDIV R W _01 RESERVED1 R 02 RESERVED2 R 03 EEPROM Configuration Register ECNFG R W 04 EEPROM Protection Register EPROT R W _05 EEPROM Status Register ESTAT R W _06 EEPROM Command Register ECMD RW 07 RESERVEDS R 08 EEPROM High Address Register EADDRHI RW 09 EEPROM Low Address Register EADDRLO R W _0A EEPROM High Data Register EDATAHI R W _0B EEPROM Low Data Register EDATALO R W NOTES 1 Intended for factory test purposes only NOTE Register Address Register Base Address 110 Address Offset where the Register Base Add
3. PVIOL and ACCERR are readable and writable bits CCIF and BLANK are readable and not writable bits 3 1 and O read zero and are not writable CBEIF Command Buffer Empty Interrupt Flag The CBEIF flag indicates that the address data and command buffers are empty so that a new command sequence can be started The CBEIF flag is cleared by writing a 1 to CBEIF Writing a 0 to the CBEIF flag has no effect on Writing a 0 to CBEIF after writing an aligned word to the EEPROM address space but before CBEIF is cleared will abort a command sequence and cause MOTOROLA 19 EETS1K Block User Guide V01 04 the ACCERR flag in the ESTAT register to be set Writing a 0 to outside of a command sequence will not set the ACCERR flag The CBEIF flag is used together with the CBEIE bit in the ECNFG register to generate an interrupt request 1 Buffers are ready to accept a new command O Buffers are full CCIF Command Complete Interrupt Flag The CCIF flag indicates that there are no more commands pending The CCIF flag is cleared when CBEIF is cleared and sets automatically upon completion of all active and pending commands The flag does not set when an active command completes and a pending command is fetched from the command buffer Writing to the CCIF flag has no effect The CCIF flag is used together with the CCIE bit in the ECNFG register to generate an interrupt request 1 All com
4. These algorithms are controlled by a state machine whose timebase EECLK is derived from the oscillator clock via a programmable divider The command register as well as the associated address and data registers operate as a buffer and a register 2 stage FIFO so that a new command along with the necessary data and address can be stored to the buffer while the previous command is still in progress The pipelined operation allows a simplification of command launching Buffer empty as well as command completion are signalled by flags in the EEPROM status register Interrupts for the EEPROM will be generated if enabled The next four subsections describe How to write the ECLKDIV register The write sequences used to program and erase the EEPROM but also to perform more sophisticated commands like sector modify and erase verify Valid EEPROM commands Errors resulting from illegal EEPROM operations 4 1 1 Writing the ECLKDIV Register Prior to issuing any program or erase command it is first necessary to write the ECLKDIV register to divide the oscillator down to within 150kHz to 200kHz range The program and erase timings are also a function of the bus clock such that the ECLKDIV determination must take this information into account If we define EECLK as the clock of the EEPROM timing control block Tbus as the period of the bus clock INT x as taking the integer part of x e g INT 4 323 4 then ECLKDIV register bits
5. verify command has been requested and the CCIF flag is set then a zero in BLANK indicates array is not erased 20 MOTOROLA EETS1K Block User Guide V01 04 3 3 7 ECMD EEPROM Command Register The ECMD register defines the EEPROM commands Register address BASE 116 7 6 5 4 3 2 1 0 mE CMDB6 CMDB5 CMDB2 2 CMDBO Reset 0 0 0 0 0 0 0 0 Unimplemented or Reserved Figure 3 8 EEPROM Command Register ECMD Bits 7 4 3 and 1 read zero and are not writable Bits CMDB6 CMDB5 CMDB2 and CMDBO are readable and writable during a command sequence CMDB Valid normal mode commands are shown in Table 3 4 Any other command than those mentioned in Table 3 4 sets the ACCERR bit in the ESTAT register 3 3 6 Table 3 4 EEPROM Normal Mode Commands Command Meaning 05 Erase Verify 20 Word Program 40 Sector Erase 41 Mass Erase 60 Sector Modify 3 3 8 RESERVED3 This register is reserved for factory testing and is not accessible to the user Register address BASE 117 7 6 5 4 3 2 1 0 R 0 0 0 0 0 0 0 0 W Reset 0 0 0 0 0 0 0 0 Unimplemented or Reserved Figure 3 9 RESERVED3 bits read zero and are not writable MOTOROLA 21 EETS1K Block User Guide V01 04 3 3 9 EADDR EEPROM Address Register EADDRHI and EADDRLO are the EEPROM address registers Register address Base 118 7 6 5 4 3 2 1 0 R 0 0 0 0 0
6. 0 35 4 MOTOROLA EETS1K Block User Guide V01 04 List of Figures Figure 1 1 Figure 3 1 Figure 3 2 Figure 3 3 Figure 3 4 Figure 3 5 Figure 3 6 Figure 3 7 Figure 3 8 Figure 3 9 Figure 3 10 Figure 3 11 Figure 3 12 Figure 3 13 Figure 4 1 Figure 4 2 MOTOROLA Module Block 10 EEPROM Memory 14 EEPROM Clock Divider Register ECLKDIlV 16 RESERVED T Set ver etate hn exe ataca dudes ope RUE Banasa 16 RESERVED usq hp Apes ke ed uk ndn a db atn w Role CBAC tea 17 EEPROM Configuration Register ECNFG 17 EEPROM Protection Register EPROT 18 EEPROM Status Register ESTAT 19 EEPROM Command Register 21 RESERVEDO dace tae eh Ge QUERO Su on ias 21 EEPROM Address High Register 22 EEPROM Address Low Register EADDRLO 22 EEPROM Data High Register 22 EEPROM Data Low Register EDATALO 23 PRDIV8 and EDIV bits Determination Procedure 27 Example Program Algorithm 29 5 EETS1K Block User Guide V01 04 6 MOTOR
7. 0 0 EABHI W Reset 0 0 0 0 0 0 0 0 Unimplemented or Reserved Figure 3 10 EEPROM Address High Register EADDRHI Register address Base 119 7 6 5 4 3 2 1 0 R w EABLO Reset 0 0 0 0 0 0 0 0 Figure 3 11 EEPROM Address Low Register EADDRLO In normal modes all EADDRHI and EADDRLO bits read zero and are not writable In special modes all EADDRHI and EADDRLO bits are readable and writable except EADDRHI 7 1 which are not writable and always read zero For sector erase the MCU address bits AB 1 0 are ignored For mass erase any address within the block is valid to start the command 3 3 10 EDATA EEPROM Data Register EDATAHI and EDATALO are the EEPROM data registers Register address BASE 11A 7 6 5 4 3 2 1 0 R W EDHI Reset 0 0 0 0 0 0 0 0 Figure 3 12 EEPROM Data High Register EDATAHI 22 MOTOROLA EETS1K Block User Guide V01 04 Register address BASE 11B 7 6 5 4 3 2 1 0 R W EDLO Reset 0 0 0 0 0 0 0 0 Figure 3 13 EEPROM Data Low Register EDATALO In normal modes all EDATAHI and EDATALO bits read zero and are not writable In special modes all EDATAHI and EDATALO bits are readable and writable MOTOROLA 23 EETS1K Block User Guide V01 04 24 MOTOROLA EETS1K Block User Guide V01 04 Section 4 Functional Description 4 1 Program and Erase Operation Write and read operations are both used for the program and erase algorithms described in this section
8. DOCUMENT NUMBER S12bEETS1KV1 D EETS1K Block User Guide V01 04 Original Release Date 13 JUL 2001 Revised 8 APR 2003 Motorola Inc Motorola reserves the right to make changes without further notice to any products herein to improve reliability function or design Motorola does not assume any liability arising out of the application or use of any product or circuit described herein neither does it convey any license under its patent rights nor the rights of others Motorola products are not designed intended or authorized for use as components in systems intended for surgical implant into the body or other applications intended to support or sustain life or for any other application in which the failure of the Motorola product could create a situation where personal injury or death may occur Should Buyer purchase or use Motorola products for any such unintended or unauthorized application Buyer shall indemnify and hold Motorola and its officers employees subsidiaries affiliates and distributors harmless against all claims costs damages and expenses and reasonable attorney fees arising out of directly or indirectly any claim of personal injury or death associated with such unintended or unauthorized use even if such claim alleges that Motorola was negligent regarding the design or manufacture of the part M MOTOROLA EETS1K Block User Guide V01 04 Revision History Number Version Revision Effective Date Dat
9. ESERVEDZ et oon eres soe ns Beats SIDES Cee as bis te 17 3 3 4 ECNFG EEPROM Configuration Register 17 3 3 5 EPROT EEPROM Protection Register 18 3 3 6 ESTAT EEPROM Status 19 3 3 7 ECMD EEPROM Command 21 3 3 8 FRESERVED cali Aa 21 3 3 9 EADDR EEPROM Address 22 3 3 10 EDATA EEPROM Data 22 Section 4 Functional Description 41 Program and Erase Operation 25 4 1 1 Writing the ECLKDIV Register ua usa Cee nied E A ex ESSE Y 25 4 1 2 Program and Erase cu suu pe 1 ees 28 4 1 3 Valid EEPROM fente ado od 30 4 1 4 lllegal EEPROM Operations uuruuu E REX IS ETE ue eR EDD RISE 30 2 W t Mode rcr 31 Z3 Sp MOUS S oret o ueterem adi Oy Ee arn a eund ai 31 3 M MOTOROLA EETS1K Block User Guide V01 04 4 4 Background Debug Mode 1 2 1 32 Section 5 Resets 5 1 General CR 33 Section 6 Interrupts 6T General sa tow oe crc 35 6 2 Description of Interrupt Operation 0
10. OLA EETS1K Block User Guide V01 04 List of Tables Table 3 1 EEPROM Protection Reserved 13 Table 3 2 EEPROM Register Memory 15 Table 3 3 EEPROM Address Range Protection 19 Table 3 4 EEPROM Normal 5 21 Table 4 1 Valid EEPROM Commands 000 ens 30 Table 6 1 EEPROM Interrupt Sources 1 35 MOTOROLA EETS1K Block User Guide V01 04 8 MOTOROLA EETS1K Block User Guide V01 04 Section 1 EETS1K Introduction 1 1 Overview This document describes the EETS1K module which is a 1K byte EEPROM Non Volatile memory The EETSIK block uses a small sector Flash memory to emulate EEPROM functionality It is an array of electrically erasable and programmable non volatile memory The EEPROM memory is organized as 512 rows of 2 bytes 1 word The EEPROM memory s erase sector size is 2 rows or 2 words 4 bytes The EEPROM memory may be read as either bytes aligned words or misaligned words Read access time is one bus cycle for byte and aligned word and two bus cycles for misaligned words Program and erase functions are controlled by a command driven interface Both sector erase and mass erase of the entire EEPROM memory are supported An erased bit reads 1 and a programmed bit reads 0 The high
11. PRDIV8 and EDIV 5 0 are to be set as described in Figure 4 1 For example if the oscillator clock is 950kHz and the bus clock is 10MHz ECLKDIV bits EDIV 5 0 should be set to 4 binary 000100 and bit PRDIVS set to 0 The resulting EECLK is then 190kHz As a result the EEPROM algorithm timings are increased over optimum target by 200 190 200 x 100 5 NOTE Command execution time will increase proportionally with the period of EECLK MOTOROLA 25 EETS1K Block User Guide V01 04 WARNING Because of the impact of clock synchronization on the accuracy of the functional timings programming or erasing the EEPROM cannot be performed if the bus clock runs at less than 1 MHz Programming the EEPROM with an oscillator clock lt 150kHz should be avoided Setting ECLKDIV to a value such that EECLK lt 150kHz can reduce the lifetime of the EEPROM due to overstress Setting ECLKDIV to a value such that 1 EECLK Tbus lt 5us can result in incomplete programming or erasure of the memory array cells If the ECLKDIV register is written the bit EDIVLD is set automatically If this bit is zero the register has not been written since the last reset Program and erase commands will not be executed if this register has not been written to 26 MOTOROLA EETS1K Block User Guide V01 04 START PROGRAM ERASE IMPOSSIBLE PRDIV8 0 reset oscillator clock no gt 12 8MHz PRDIV8 1 PRDCLK osci
12. T register defines which EEPROM sectors are protected against program or erase Register address BASE 114 7 6 5 4 3 2 1 0 R epopen EPDIS EP2 EP1 EPO Reset F F F Unimplemented or Reserved Figure 3 6 EEPROM Protection Register EPROT The EPROT register is loaded from EEPROM array address 3FD during reset as indicated by the F in Figure 3 6 bits in the EPROT register are readable Bits NV 6 4 are not writable The EPOPEN and EPDIS bits in the EPROT register can only be written to the protected state i e 0 The EP 2 0 bits can be written anytime until bit EPDIS is cleared If the EPOPEN bit is cleared then the state of the EPDIS and EP 2 0 bits is irrelevant To change the EEPROM protection that will be loaded on reset the upper sector of EEPROM must first be unprotected then the EEPROM Protect byte located at address 3FD must be written to A protected EEPROM sector is disabled by the EPDIS bit while the size of the protected sector is defined by the EP bits in the EPROT register Trying to alter any of the protected areas will result in a protect violation error and PVIOL flag will be set in the ESTAT register A mass erase of a whole EEPROM block is only possible when protection is fully disabled by setting the EPOPEN and EPDIS bits An attempt to mass erase an EEPROM block while protection is enabled will set the PVIOL flag in the ESTAT register EPOPEN Op
13. User Guide V01 04 Section 5 Resets 5 1 General If a reset occurs while any command is in progress that command will be immediately aborted The state of the word being programmed or the sector block being erased is not guaranteed 33 MOTOROLA EETS1K Block User Guide V01 04 34 MOTOROLA Section 6 Interrupts 6 1 General EETS1K Block User Guide V01 04 The EETS1K block can generate an interrupt when all commands are completed or the address data and command buffers are empty Table 6 1 EEPROM Interrupt Sources Interrupt Source Interrupt Flag Local Enable onda EEPROM Address Data CBEIF and Command Buffers ESTAT register CBEIE Bit empty All Commands are completed on EEPROM CCIF ESTAT register NOTE Vector addresses and their relative interrupt priority are determined at the MCU level 6 2 Description of Interrupt Operation For a detailed description of the register bits refer to the EEPROM Configuration register and EEPROM Status register sections respectively 3 3 4 and 3 3 6 MOTOROLA 35 EETS1K Block User Guide V01 04 36 MOTOROLA MOTOROLA EETS1K Block User Guide V01 04 Block Guide End Sheet 37 EETS1K Block User Guide V01 04 FINAL PAGE OF 38 PAGES 38 MOTOROLA
14. ase command to ECMD while any protection is enabled When the PVIOL flag is set in the ESTAT register the Command State Machine is locked It is not possible to launch another command until the PVIOL flag is cleared 4 2 Wait Mode When the MCU enters WAIT mode and if any command is active CCIF 0 that command and any pending command will be completed The EETSIK module can recover the MCU from WAIT if the interrupts are enabled see Section 6 4 3 Stop Mode If a command is active CCIF 0 when the MCU enters the STOP mode the command will be aborted and the data being programmed or erased is lost The high voltage circuitry to the EEPROM array will be switched off when entering STOP mode CCIF and ACCERR flags will be set Upon exit from STOP the CBEIF flag is set and any pending command will not be executed The ACCERR flag must be cleared before returning to normal operation MOTOROLA 31 EETS1K Block User Guide V01 04 WARNING As active commands are immediately aborted when the MCU enters STOP mode it is strongly recommended that the user does not use the STOP command during program and erase execution 4 4 Background Debug Mode In Background Debug Mode BDM the EPROT register is writable If the chip is unsecured then all EEPROM commands listed in Table 4 1 can be executed In special single chip mode if the chip is secured then the only possible command to execute is mass erase 32 MOTOROLA EETS1K Block
15. dress bits are valid For erase the value of the data bytes is don t care For mass erase the address can be anywhere in the available address space of the array For sector erase the address bits 1 0 are ignored 2 Write the program or erase command to the command buffer These commands are listed in Table 4 1 3 Clear the flag by writing a 1 to it to launch the command When the CBEIF flag is cleared the CCIF flag is cleared by hardware indicating that the command was successfully launched The flag will be set again indicating the address data and command buffers are ready for a new command sequence to begin The completion of the command is indicated by the CCIF flag setting The CCIF flag only sets when all active and pending commands have been completed NOTE The Command State Machine will flag errors in program or erase write sequences by means of the ACCERR access error and PVIOL protection violation flags in the ESTAT register An erroneous command write sequence will abort and set the appropriate flag If set the user must clear the ACCERR or PVIOL flags before commencing another command write sequence By writing a 0 to the CBEIF flag the command sequence can be aborted after the word write to the EEPROM address space or after writing a command to the ECMD register and before the command is launched Writing a 0 to the CBEIF flag in this way will set the ACCERR flag A summary of the progra
16. e Description of Changes V01 00 13JUL01 13JULO1 Initial Version V01 01 V01 02 30SEP02 180CT02 Updated Page Layout and Document number Rearrange Section 3 2 Module Memory Map V01 03 23JANO3 Add description of EADDR and EDATA registers V01 04 08APROS3 Fix protection byte address in 3 3 5 EPROT EEPROM Protection Register Modify description of 3 3 5 EPROT EEPROM Protection Register to clarifymass erase restrictions Modify description of CBEIF and CCIF flags in 3 3 6 ESTAT EEPROM Status Register MOTOROLA EETS1K Block User Guide V01 04 Table of Contents Section 1 EETS1K Introduction do SOVEVIEW c 9 1 1 1 CIO SGM o e cas oh E RE ec E Gem A 9 125 suy chia e I aen d ai et 9 13 Modes or Operation ade eee re ae der Aor ee 10 I Block Diagram scere ye 10 Section 2 External Signal Description 2 1 OVOIVIQW rectos ee he Rude V CRI e toed ae e e E ee ga n EE 11 Section 3 Memory Map and Registers XE CP 13 32 Module Memory Map EA ORUM 13 33 Register lt Rok NR RENE 16 3 3 1 ECLKDIV EEPROM Clock Divider Register 16 3 3 2 RESERVEDT 29 Z EG aue O gue rens Dad RA ceat iue 16 3 3 3 R
17. ens the EEPROM for program or erase 1 The EEPROM sectors not protected are enabled for program or erase 0 The whole EEPROM array is protected In this case the EPDIS and EP bits within the protection register are ignored EPDIS EEPROM Protection address range Disable The EPDIS bit determines whether there is a protected area in the space of the EEPROM address map 1 Protection disabled 0 Protection enabled EP 2 0 EEPROM Protection Address Size The EP 2 0 bits determine the size of the protected sector Refer to Table 3 3 18 MOTOROLA EETS1K Block User Guide V01 04 Table 3 3 EEPROM Address Range Protection Protected EP 2 0 Address Protected Size Range 000 3 0 SFF 64 bytes 001 380 3FF 128 bytes 010 340 192 bytes 011 300 3FF 256 bytes 100 2 320 bytes 52606 384 byiss 110 240 448 bytes 111 200 512 bytes NV 6 4 Non Volatile Flag Bits These three bits are available to the user as non volatile flags 3 3 6 ESTAT EEPROM Status Register The ESTAT register defines the EEPROM state machine command status and EEPROM array access protection and erase verify status Register address BASE 115 7 6 5 4 3 2 0 ACCERR _ S Reset 1 I 0 0 0 0 0 0 Unimplemented or Reserved Figure 3 7 EEPROM Status Register ESTAT Register bits CBEIF
18. itten word 5 Writing to any EEPROM register other than ECMD after writing a word to the EEPROM address space 6 Writing a second command to the ECMD register before executing the previously written 30 MOTOROLA EETS1K Block User Guide V01 04 command 7 Writing an invalid command to the ECMD register in normal mode 8 Writing to any EEPROM register other than ESTAT to clear CBEIF after writing to the command register ECMD 9 The part enters STOP mode and a program or erase command is in progress The command is aborted and any pending command is killed 10 A 0 is written to the CBEIF bit in the ESTAT register The ACCERR flag will not be set if any EEPROM register is read during the command sequence If the EEPROM array is read during execution of an algorithm i e CCIF bit in the ESTAT register is low the read will return non valid data and the ACCERR flag will not be set When an ACCERR flag is set in the ESTAT register the Command State Machine is locked It is not possible to launch another command until the ACCERR flag is cleared The PVIOL flag will be set during the command write sequence after the word write to the EEPROM address space and the command sequence will be aborted if any of the following illegal operations are performed 1 Writing a EEPROM address to program in a protected area of the EEPROM 2 Writing a EEPROM address to erase in a protected area of the EEPROM 3 Writing the mass er
19. llator clock 8 PRDCLK oscillator clock PRDCLK MHz 5 Tbus us no an integer AN EDIV 5 0 INT PRDCLK MHz 5 Tbus us EDIV 5 0 PRDCLK MHz 5 Tbus s 1 TRY TO DECREASE Tbus EECLK PRDCLK 1 EDIV 5 0 1 EECLK MHz Tbus us gt 5 AND EECLK gt 0 15MHz EDIV 5 0 gt 4 PROGRAM ERASE IMPOSSIBLE Figure 4 1 PRDIV8 and EDIV bits Determination Procedure MOTOROLA 27 EETS1K Block User Guide V01 04 4 1 2 Program and Erase A Command State Machine is used to supervise the write sequencing for program and erase More specialized commands like sector modify or erase verify follow the same flow Before starting a command sequence it is necessary to check that there is no pending access error or protection violation the ACCERR and PVIOL flags should be cleared in the ESTAT register After this initial step the CBEIF flag should be tested to ensure that the address data and command buffers are empty If so the command sequence can be started The following 3 step command write sequence must be strictly adhered to and no intermediate access to the EEPROM array is permitted between the 3 steps It is possible to read any EEPROM register during a command sequence The command sequence is as follows 1 Write the aligned data word to be programmed to the valid EEPROM address space The address and data will be stored in internal buffers For program all ad
20. m Program a word two bytes 40 0 Erase two words four bytes of EEPROM array 41 Mass Erase all of the EEPROM array Erase A mass erase of the full array is only possible when EPDIS and EPOPEN are set Sector Erase two words of EEPROM 60 Modify re program one word WARNING It is not permitted to program an EEPROM word without first erasing the sector in which that word resides The sector modify command executes a two step algorithm which first erases a sector 2 words of EEPROM array and then re programs one of the words in that sector The EEPROM sector which is erased by the sector modify command is the sector containing the address of the aligned array write which starts the valid command sequence That same address is re programmed with the data that was written By launching a sector modify command and then pipelining a program command it is possible to completely replace the contents of an EEPROM sector 4 1 4 Illegal EEPROM Operations The ACCERR flag will be set during the command write sequence if any of the following illegal operations are performed causing the command write sequence to immediately abort 1 Writing to the EEPROM address space before initializing ECLKDIV 2 Writing a misaligned word or a byte to the valid EEPROM address space 3 Writing to the EEPROM address space while CBEIF is not set 4 Writing a second word to the EEPROM address space before executing a program or erase command on the previously wr
21. m algorithm is shown in Figure 4 2 For the erase algorithm the user writes either a mass erase or sector erase command to the ECMD register 28 M MOTOROLA EETS1K Block User Guide V01 04 Read Register ECLKDIV Clock Register Written Bit EDIVLD seb gt 2 Check Write Register ECLKDIV 1 Write Array Address and Program Data ite NOTE command sequence Write Register ECMD TS 2 20 00 to ae NOTE command sequence Write Register 5 aborted by writing 00 to Clear bit CBEIF 80 ESTAT register Read Register ESTAT Protection yes Write Register ESTAT Violation Check Clear bit PVIOL 20 Access Error Check yes Write Register ESTAT Clear bit ACCERR 10 Address Data Command Buffer Empty Check Bit Polling for Command Completion Check Read Register ESTAT Figure 4 2 Example Program Algorithm MOTOROLA 29 EETS1K Block User Guide V01 04 4 1 3 Valid EEPROM Commands Table 4 1 summarizes the valid EEPROM commands Also shown are the effects of the commands on the EEPROM array Table 4 1 Valid EEPROM Commands ECMD Meaning Function on EEPROM Array 05 Erase Verify all memory bytes of the EEPROM array are erased Verify If the array is erased the BLANK bit will set in the ESTAT register upon command completion 20 Progra
22. mands are completed 0 Command in progress PVIOL Protection Violation The PVIOL flag indicates an attempt was made to program or erase an address in a protected EEPROM memory area see 4 1 4 Illegal EEPROM Operations The PVIOL flag is cleared by writing a 1 to PVIOL Writing a 0 to the PVIOL flag has no effect on PVIOL While PVIOL is set it is not possible to launch another command in the EEPROM 1 A protection violation has occurred 0 No failure ACCERR EEPROM Access Error The ACCERR flag indicates an illegal access to the selected EEPROM array see 4 1 4 Illegal EEPROM Operations This can be either a violation of the command sequence issuing an illegal command illegal combination of the CMDBx bits in the ECMD register or the execution of a CPU STOP instruction while a command is executing CCIF 0 The ACCERR flag is cleared by writing 1 to ACCERR Writing a 0 to the ACCERR flag has no effect on ACCERR While ACCERR is set it is not possible to launch another command in the EEPROM 1 Access error has occurred 0 No failure BLANK Array has been verified as erased The BLANK flag indicates that an erase verify command has checked the EEPROM array and found it to be erased The BLANK flag is cleared by hardware when CBEIF is cleared as part of a new valid command sequence Writing to the BLANK flag has no effect on BLANK 1 EEPROM array verifies as erased 0 If an erase
23. ress is defined by the HCS12 Core INITRG register and the Address Offset is defined by the EEPROM module MOTOROLA 15 EETS1K Block User Guide V01 04 3 3 Register Descriptions 3 3 1 ECLKDIV EEPROM Clock Divider Register The ECLKDIV register is used to control timed events in program and erase algorithms Register address BASE 110 7 6 5 4 3 2 1 0 4 EDIVLD Bepive Epivs EDIV4 EDIV3 EDIV2 EDIVI EDIVO RESET 0 0 0 0 0 0 B 9 Unimplemented or Reserved Figure 3 2 EEPROM Clock Divider Register ECLKDIV bits in the ECLKDIV register are readable bits 6 0 are write once and bit 7 is not writable EDIVLD Clock Divider Loaded 1 Register has been written to since the last reset O Register has not been written PRDIV8 Enable Prescaler by 8 1 Enables a prescaler by 8 to divide the EEPROM module input oscillator clock before feeding into the CLKDIV divider O The input oscillator clock is directly fed into the ECLKDIV divider EDIV 5 0 Clock Divider Bits The combination of PRDIV8 and EDIV 5 0 effectively divides the EEPROM module input oscillator clock down to a frequency of 150kHz 200kHz The maximum divide ratio is 512 Please refer to section 4 1 1 for more information 3 3 2 RESERVED1 This register is reserved for factory testing and is not accessible to the user Register address BASE 111 7 6 5 4 3 2 1 0 R 0 0 0 0 0 0 0 0 ac m Reset
24. rupt MOTOROLA EETS1K Block User Guide V01 04 Section 2 External Signal Description 2 1 Overview The EETSIK module contains no signals that connect off chip MOTOROLA 11 EETS1K Block User Guide V01 04 12 MOTOROLA EETS1K Block User Guide V01 04 Section 3 Memory Map and Registers 3 1 Overview This section describes the EETS1K memory map and registers 3 2 Module Memory Map Figure 3 1 shows the EETSIK memory map Location of the EEPROM array in the MCU memory is defined in the specific MCU Device User Guide and is reflected in the INITEE register contents defined in the HCS12 Core User Guide Shown within the EEPROM array are a protection reserved field and user defined EEPROM protected sectors The 16 byte protection reserved field is located in the EEPROM array from address 5 to 5 3FF A description of this protection reserved field is given in Table 3 1 Table 3 1 EEPROM Protection Reserved Field 1 Reserved 3 3FD 1 EEPROM Protection byte 3FE 2 Reserved The EEPROM module has hardware interlocks which protect data from accidental corruption A protected sector is located at the higher address end of the EEPROM array just below address _3FF The protected sector in the EEPROM array can be sized from 64 bytes to 512 bytes In addition the EPOPEN bit in the EPROT register see section 3 3 5 can globally protect the entire EEPROM array NOTE
25. voltage required to program and erase is generated internally by on chip charge pumps It is not possible to read from the EEPROM memory while it is being erased or programmed The EEPROM memory is ideal for data storage for single supply applications allowing for field reprogramming without requiring external programming voltage sources WARNING A word must be erased before being programmed Cumulative programming of bits within a word is not allowed 1 1 1 Glossary Command Sequence A three step MCU instruction sequence to program erase or erase verify the EEPROM 1 2 Features 1K bytes of EEPROM memory Minimum erase sector of 4 bytes Automated program and erase algorithms Interrupts on EEPROM command completion and command buffer empty Fast sector erase and word program operation 2 stage command pipeline Flexible protection scheme for protection against accidental program or erase Single power supply program and erase MOTOROLA 9 EETS1K Block User Guide V01 04 1 3 Modes of Operation Program and erase operation please refer to 4 1 for details 1 4 Block Diagram Figure 1 1 shows a block diagram of the EETS1K module Command EEPROM Array Interface 512 16 Bits row0 0 Registers LOWO row1 Command Pipeline comm2 comm1 addr2 addr1 data2 data1 Clock Divider Figure 1 1 Module Block Diagram Command Complete Interrupt Command Buffer Empty Inter
Download Pdf Manuals
Related Search
Related Contents
Téléchargement Mataway Overseeder Safety, Operation, Parts VREF-399 User Manual MiniBrute User's Manual "取扱説明書" Avaya Integrated Management Application Application Note presentation Rexel Pocket - Standard Copyright © All rights reserved.
Failed to retrieve file