1 Reply Latest reply on Feb 27, 2018 7:20 AM by prbd

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

    hardware_2936856

      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

        • 1. Re: How to configure Memory Slave Device Address & Control Registers in CY14C101J?
          prbd

          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.