Académique Documents
Professionnel Documents
Culture Documents
PSoC Designer™ is two tools in one. It combines a full featured integrated development environment
(IDE) with a powerful visual programming interface. The two tools require and support two different
design processes.
In the Chip-Level view you specify exactly how In System Level view you have a visual
you want the device configured. This allows you programming interface configures the PSoC
direct access to all of the features of your PSoC device and writes the low level firmware for you:
device and complete control over the routing,
system resource use, and firmware development:
Now, click the Outputs tab. The output driver section of the driver catalog will open.
5. Select Display, then LED, Single Color, and finally On/Off with blink. Drag it on to your design
and name it IndicatorLED using the process described above.
The Add Output Driver dialog contains properties that can be set for this driver. Sometimes there
are read only properties shown in gray. All of the properties shown here are black to show that
you can set the value.
6. Select OFF for the Initial Value.
7. Select 2 for the BlinkRate.
8. Leave the Current Mode at its default value (Sourcing). Click OK.
Figure 2. LED Driver
Return to top
Return to top
Step 4: Simulate and Verify Your Design
Based on the behavior specified in step 2, we expect the LED to be off if the input voltage is less than
1.5 volts, we expect the LED to be blinking if the voltage is between 1.5 volts (inclusive) and 3 volts
(exclusive), and we expect the LED to be on if the voltage is at or above 3 volts. PSoC Express
provides simulation capability to prove this out.
To simulate the Voltage Monitor example:
1. Click the Simulation tab at the top of the screen.
A slider widget appears next to the Voltage icon, and a Current Value box widget appears next to
the IndicatorLED icon.
2. Slide the slider to approximately 1 V. The LED widget should indicate a value of 0 (Off).
3. Slide the slider to approximately 2 V. The LED widget should indicate a value of 2 (Blinking).
4. Slide the slider to approximately 4 V. The LED widget should indicate a value of 1 (On).
If the behavior meets your expectations, you are ready for the next step. If not, you can go back to
the Design tab, make some changes to your design, and return to Simulation to verify your changes.
Return to top
2. Choose the PSoC chip that you have available in your evaluation kit (most likely the
CY8C27443).
3. Select “5.0V” from the Supply Voltage dropdown list.
4. Select “64Hz” from the Sample Rate dropdown list.
5. Click the Next button.
PSoC Express will automatically assign the drivers to pins on the selected chip. This window
shows a chip footprint, and indicates pins assigned to drivers in dark blue. Unassigned pins are
light blue, and pins that cannot be used for input or output are white.
Depending on the evaluation kit you have, you may want to reassign the pins in order to test the
program. If so, you can manually reassign any pin. Drag the blue rectangle associated with an
input/output driver off the top of the pin. As you drag, you will see that that one or more pins on
the footprint are highlighted in green. The green highlighting indicates that those pins will accept
the driver that you are assigning. Drop the blue rectangle on any one of these pins.
6. After all input/output drivers have been assigned to pins, click the Next button.
PSoC Designer now converts the system design into microcontroller code and stores it in a .HEX
file. Upon completion, PSoC Designer also shows the resulting pin assignments along with
hypertext links to a bill of materials, a datasheet, and a schematic that have been custom created
for your design.
Return to top
You are now ready to program your PSoC device. Programming the PSoC device is exactly the same
regardless of which of the design methods you choose. Click the link below to go to the last section of
the tutorial.
Program Your PSoC Device