How to configure Memory Slave Device Address & Control Registers in CY14C101J?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi,

I am currently working on CY14C101J1 nvSRAM ,interfaced to atmega2560,i need to know about Device Select ID(A2,A1) & A16 in Memory slave address or control register. According to datasheet it has been mentioned that ic is of 17bits and needs 3 registers ,17th bit (A16) is mapped to the slave address select bit (A0). The dedicated two address bytes represent bit A0 to A15. 

(1).  Is there is relation between device select(A2/A1) to above address bits.

(2.).  can you share some example code to use  Memory slave address & control register

Slave ID  A2    A1(device select)A16   R=1/W=0 
1 0 1 0   ?       ?  ?               0

Thanks,

Anuj

0 Likes
1 Solution
PradiptaB_11
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 replies posted

Hi Anuj,

Please find our comments below.

(1).  Is there is relation between device select(A2/A1) to above address bits.

Ans) No, A2 and A1 have no relation to address bits. They define the slave address for I2C communication. A2 and A1 you will set accordingly to configure the slave address.

(2.).  can you share some example code to use  Memory slave address & control register

Slave ID A2    A1(device select)A16   R=1/W=0
1 0 1 0  ?       ?  ?               0

Ans) Say i have configured A2 as 1 (high) and A1 as 0 (low). Say i am trying to read a memory location 0x 1F0FF.

So now you will first send the Slave device address, followed by two address bytes.

Slave device Address

Slave ID    A2    A1     A16    R/W

1010           1      0       1         1

Two address bytes will be 11110000 and 11111111 respectively.

Thanks,

Pradipta.

View solution in original post

0 Likes
1 Reply
PradiptaB_11
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 replies posted

Hi Anuj,

Please find our comments below.

(1).  Is there is relation between device select(A2/A1) to above address bits.

Ans) No, A2 and A1 have no relation to address bits. They define the slave address for I2C communication. A2 and A1 you will set accordingly to configure the slave address.

(2.).  can you share some example code to use  Memory slave address & control register

Slave ID A2    A1(device select)A16   R=1/W=0
1 0 1 0  ?       ?  ?               0

Ans) Say i have configured A2 as 1 (high) and A1 as 0 (low). Say i am trying to read a memory location 0x 1F0FF.

So now you will first send the Slave device address, followed by two address bytes.

Slave device Address

Slave ID    A2    A1     A16    R/W

1010           1      0       1         1

Two address bytes will be 11110000 and 11111111 respectively.

Thanks,

Pradipta.

0 Likes