User manual
CY3280-MBR3 Evaluation Kit User Guide, Doc. #: 001-89905 Rev. *B 68
Configuration Files and Example Projects
5.3.1.5 Verify Output
Ensure that the EVK is connected to the PSoC 4 Pioneer Kit. Touch any CapSense button on the kit;
the corresponding LED toggles, with audio feedback through the buzzer (see Figure 5-29). If an I
2
C
write error occurs while loading the configuration to the MBR3 device, the RGB LED on the PSoC 4
Pioneer Kit blinks in blue continuously indicating an I
2
C write error.
Figure 5-29. Verify Output
5.3.2 Host_Interrupt_LED_ON_Time_PSoC4_Pioneer_Kit
5.3.2.1 Project Description
This example project uses PSoC 4 as the I
2
C master (host) to implement the LED-on time feature on
the CY3280-MBR3 EVK using the host interrupt and host-controlled GPOs feature. This project also
shows how to read the status register of the device with an I
2
C master upon an interrupt from the
device.
In this project, PSoC 4 loads the following configuration:
■ Four button sensors enabled
■ Host interrupt enabled
■ Host-controlled GPOs
On every touch and release, the device issues a host interrupt (active-low pulse of 250-µs duration)
to the PSoC 4 Pioneer Kit. Upon receipt of the interrupt, PSoC 4 sends an I
2
C read command to
read the button status register (0xAA-0xAB). Depending upon the content of the register, PSoC 4
controls the onboard RGB LED. See Table 5-4 for the expected RGB output. Also, it detects if the
host interrupt was generated because of a touch or a release. If a button is released, the corre-
sponding RGB LED keeps glowing for one second before going off. This is implemented using the
counter (TCPWM component) available in PSoC 4.