| Electronic Components Datasheet Search |
|
SEC2410 Datasheet(PDF) 152 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
SEC2410 Datasheet(HTML) 152 Page - Microchip Technology |
|
152 / 283 page ![]() SEC2410/SEC4410 DS00001587C-page 152 2013 - 2014 Microchip Technology Inc. 15.2.2 PROGRAMMING MAIN OTP MEMORY All even address in the memory have unprogrammed default state of ‘0’. All odd addresses in the memory have unpro- grammed default state of ‘1’. Programming is done one bit at a time. The PGM command programs the content of the OTP's Data register to the memory location specified by the OTP's address pins A[10:0]. In order to program the OTP, the charge pump has to be enabled MRA[0] -> VPP CHARGE PUMP Enable and disabled after programming. The user should verify if all the bits have been successfully programmed and repeat this process. Below is the sequence of a typical PGM. a) Enable the charge pump, and wait 20 uSec for the charge pump to warm up. To do this set MRA[0]=1, MRB[6:4]=111 b) Since there is only one bank in the system, the hardware automatically sets ALL_BANKS to '1'. Do not modify this bit. c) Set the default programming voltage. MRA[15,13,12]=000, MRB[3:0]=0010. d) Write the user data to be programmed to the OTP_WR_DATA register. Hardware will automatically inverse the bits as required, and run as many cycles as required. For even addresses, the number of cycles is equal to the number of ones. For odd addresses the number of cycles is equal to the number of zeros. e) Write to the OTP_ADDR register with the location to be written. For differential mode, hardware will automatically use that address and that address plus one. f) Program the OTP_PPW register with the programming pulse width. For the first attempt use the regular pulse width (tPP1). g) Firmware writes to the OTP_CMD register, setting bit 2 (PROGRAM) to '1'. This will initiate the PGM command. This bit will be cleared by hardware. h) Poll the OTP_STATUS register. Wait till BUSY is clear before executing next command. Alternatively, wait for the interrupt to trigger. If using interrupts, the interrupt must be cleared by writing a ‘1’ to the bit. i) Go back to step (e) and keep programming till the array is done. j) To verify the data was programmed correctly, with enough margin, read back the data with read voltage VREF1. To do this, MRA[15,13:12]=000, MRB[3:0]=1010 k) Read back OTP_MRA_RD_DATA to verify everything was done correctly. l) Write to the OTP_CMD register, setting bit 1 (READ) to '1'. This will initiate the READ command. This will transfer data at the OTP_ADDR location to the OTP_RD_DATA register. This bit will be cleared by hardware. m) Read of the OTP_RD_DATA register. If the data matches the expected value the program was successful, move onto the next byte. Record all the bits that fail. n) To reprogram the bits that failed, program the OTP_PPW register with the programming pulse width. For the failed bits use the longer pulse width (tPP2). o) Repeat the programming steps. p) Repeat the verification steps as before, except with the read voltage set to VREF2. To do this, set MRA[15,13:12]=000, MRB[3:0]=0111. q) Keep repeating the program and verify cycles till the part is programmed. If the number of cycles exceeds TBD, and the part has not fully programmed, then fail the part. r) Turn off charge pump when done. 15.2.2.1 Example: Hardware programming Even address one bit at a time For this example, the Address 0x1A4, so the unprogrammed byte is all zeros. The data is 0xC9 (0b11001001). It has four bits set (bits 0, 3, 6, and 7), so it will take four bit writes to program the ones. Step 1: Program bit 0 (0000 0001) : Data to write to data register 1111 1110 Step 2: Program bit 3 (0000 1000) : Data to write to data register 1111 0111 Step 3: Program bit 6 (0100 0000) : Data to write to data register 1011 1111 Step 4: Program bit 7 (1000 0000) : Data to write to data register 0111 1111 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |