3 Replies Latest reply on Dec 19, 2013 3:21 PM by userc_40599

    Configuring  SWD pins of PSoC 4 as GPIOs



      I found that the SWD pins of PSoC 4 cannot be configured as GPIO though this option is present. To configure a SWD pin to function as GPIO we should write zero to the respective nibble of the register port 3 HSIOM register of PSoC 4. HSIOM register is a 32 bit register and there is one HSIOM register corresponding to each port . HSIOM_PORT_SEL3 corresponds to port 3. Each port has a maximum of 8 pins and each pin can have a maximum of 16 configurations. Hence 4 bits(1 nibble)from HSIOM register is required for each pin of a port. Therefore 32 bits of the register can configure 8 pins  of the port. For detailed information kindly go through HSIOM register of PSoC 4 registers TRM.