|
Do you prefer Luffy or Tsukiyo ?
The button on the PSOC3 starter kit board is connected to P15[3]. You can see this connection in the First Touch Starter kit guide section 5.1. There is a full schematic of the board that is very useful.
Create a new project.
From the component catalog / Ports and Pins section place a digital input pin in the design window. Open the pins configuration box by double clicking on the pin.
Name the pin Button
On the "TYPE" tab set the pin as a digital input with hardware connection box checked.
On the "General" tab select drive mode "Resistive pull down"
Place two more pins in the design window.
Name them LED1 and LED2
Set the type to digital output and the drive mode to Strong drive for both pins.
From the Logic section place a not gate in the design window.
Now use the wire tool to connect the button to LED1
then connect the button to the input side (large end) of the not gate and from the output of the not gate to LED2.
Switch the view in Creator to display the design.cydwr window. On the "Pins" tab.
Goto the pins assignment window set the button on P15[3], set LED1 on P2[0], and LED2 onP2[1].
Now build the design from the "Build" menu and program the board from the "Debug" menu.
Disconnect and them reconnect the USB cable and press the button.
Good Luck
Jim
|