| Electronic Components Datasheet Search |
|
DS28EC20 Datasheet(PDF) 14 Page - Dallas Semiconductor |
|
|
|||||||||||||||||||||||||||||
DS28EC20 Datasheet(HTML) 14 Page - Dallas Semiconductor |
|
14 / 24 page ![]() DS28EC20: 20Kb 1-Wire EEPROM 14 of 24 COPY SCRATCHPAD [55h] The Copy Scratchpad command is used to copy data from the scratchpad to the data memory and the writable sections of the register page. After issuing the Copy Scratchpad command, the master must provide a 3-byte authorization pattern, which should have been obtained by an immediately preceding Read Scratchpad command. This 3-byte pattern must exactly match the data contained in the three address registers (TA1, TA2, E/S, in that order). If the pattern matches, the target address is valid, the PF and BS flag are not set, and the target memory is not copy protected, the AA flag is set and the copy begins. The data to be copied is determined by the three address registers. The scratchpad data from the beginning offset through the ending offset is copied to memory, starting at the target address. Anywhere from 1 to 32 bytes can be copied with this command. The duration of the device’s internal data transfer is tPROG during which the 1-Wire bus must be idle or actively pulled high. Active pullup is optional for this device. A pattern of alternating 0s and 1s are transmitted after the data has been copied until the master issues a reset pulse. If the PF flag or BS flag is set or the target memory is copy protected, the copy does not begin and the AA flag is not set. The BS flag ensures that Copy Scratchpad is not executed (blocked) if there was a Read Memory or Extended Read Memory between Write Scratchpad and Copy Scratchpad. READ MEMORY [F0h] The Read Memory command is the general function to read from the DS28EC20. After issuing the command, the master must provide a 2-byte target address, which should be in the range of 0000h to 0A3Fh. If the target address is higher than 0A3Fh, the DS28EC20 changes the upper four address bits to 0. After the address is transmitted, the master reads data starting at the (modified) target address and can continue until address 0A3Fh. If the master continues reading, the result is FFh. The Read Memory command sequence can be ended at any point by issuing a reset pulse. Note that the target address provided with the Read Memory flow overwrites the target address that was specified with a previously issued Write Scratchpad command. Since the command also sets the BS flag, a subsequent Copy Scratchpad command fails even if the authorization pattern matches. EXTENDED READ MEMORY [A5h] This command works essentially the same way as Read Memory, except for the 16-bit CRC that the DS28EC20 generates and transmits following the last data byte of a memory page. The CRC generated by this command uses the same polynomial as the Write Scratchpad command. After issuing the command, the master must provide a 2- byte target address, which should be in the range of 0000h to 0A3Fh. If the target address is higher than 0A3Fh, the DS28EC20 changes the upper four address bits to 0. After the address is transmitted, the master reads data starting at the (modified) target address and continuing until the end of a 32-byte page is reached. At that point the bus master receives an inverted 16-bit CRC. If the master continues reading it receives data starting at the begin- ning of the next page, followed again by the inverted CRC for that page. Reading beyond the end of the memory is permissible, but the result is FFh. The Extended Read Memory command sequence can be ended at any point by issuing a reset pulse. Note that the target address provided with the Extended Read Memory flow overwrites the target address that was specified with a previously issued Write Scratchpad command. Since the command also sets the BS flag, a subsequent Copy Scratchpad command fails even if the authorization pattern matches. 1-Wire BUS SYSTEM The 1-Wire bus is a system that has a single bus master and one or more slaves. In all instances the DS28EC20 is a slave device. The bus master is typically a microcontroller. The discussion of this bus system is broken down into three topics: hardware configuration, transaction sequence, and 1-Wire signaling (signal types and timing). The 1-Wire protocol defines bus transactions in terms of the bus state during specific time slots, which are initiated on the falling edge of sync pulses from the bus master. HARDWARE CONFIGURATION The 1-Wire bus has only a single line by definition; it is important that each device on the bus be able to drive it at the appropriate time. To facilitate this, each device attached to the 1-Wire bus must have open-drain or tri-state outputs. The 1-Wire port of the DS28EC20 is open drain with an internal circuit equivalent to that shown in Figure 8. |
|
|
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 |