3 Replies Latest reply on Sep 26, 2019 5:10 PM by NiVa_4337911

    Port pins are not changing synchronously

    NiVa_4337911

      Hi,

      I am trying to write data to a port and then using a latch signal. But some of the port bits are changing later than the latch signal as shown in the picture below:

      IMG_4542.JPG

      The first four from the bottom are address and the last one is the latch (WR_N). The problem here is: the latch closed before loading the data.

      void MUXSetAddress(uint8_t address)

          MUX_Addr_Write(address & 0x0F);

          MUX_EN_Write(1);

          CyDelayUs(1); 

          // Enable write

          MUX_WR_N_Write(0);

          CyDelayUs(1);

          MUX_WR_N_Write(1);

          MUX_EN_Write(0);

      }

      All are from same port, where the address is p[3:0].