AMcTools Forum 
Pages: 1
Send Topic Print
I2C 24xxx EEPROM Component (Read 3958 times)
Global Moderator

Posts: 160
Austin, TX, USA
Gender: male
I2C 24xxx EEPROM Component
07/17/10 at 18:03:04
I finally finished my I2C EEPROM component. The binary files are attached in the post below. For the source code, see [url=]my site[/url].

[tt]; To use this component, use the following component definition:
; X[<Name>] _eeprom24 <MemorySize> <PageSize> <Delay> <Address> <Mask>
; + <SDA> <SCL>
; The <SDA> and <SCL> pins are respectively the serial data and serial clock
; used by the I2C bus. The <MemorySize> parameter specifies the total EEPROM
; size in bytes, and the <PageSize> parameter specifies the maximum number of
; bytes that can be written to the EEPROM with a single I2C write command.
; Both <MemorySize> and <PageSize> must both be given as "log base 2" of the
; actual byte size. For example a <MemorySize> of "12" would actually specify
; 4096 bytes since 2 to the power of 12 equals 4096.
; After data is written to memory, the EEPROM will go into a busy state for
; the duration of time given by the <Delay> parameter. During this busy time,
; the EEPROM does not respond to any commands on the I2C bus. A <Delay> value
; of 0 results in no busy time; in other words, after a memory write operation,
; the EEPROM will be immediately ready to accept another command.
; The <Address> parameter specifies the 7-bit I2C slave address to which the
; EEPROM responds. The <Mask> parameter is a bitmask indicating which bits in
; <Address> are actually significant when performing the address comparison;
; a 0 bit in <Mask> means that the corresponding bit in <Address> is a "don't
; care".
; If the optional instance <Name> is specified, then the EEPROM will preserve
; its memory contents across simulation runs by using an Intel HEX format
; file "<Name>.eep".[/tt]
Back to top
WWW   IP Logged
Pages: 1
Send Topic Print