sparkfun DEV-13714 Скачать руководство пользователя страница 1

FreeSoC2 Hookup Guide V14

Introduction

Note:

 This guide is for the latest version of the FreeSoC2, V14. If You have an older version (the version

number can be found on the back of the PCB), please refer to this tutorial.

The FreeSoc2 is SparkFun’s PSoC5LP development board features a full onboard debugger, support for 5V and
3.3V IO voltages, and a CY8C5888AXI-LP096 processor with 256kB of flash, 64kB of SRAM and 2kB of
EEPROM. The onboard oscillator can drive the processor at up to 80MHz, and the Cortex-M3 core provides
superior performance.

The real power of the PSoC5LP isn’t in the processor, however. Wrapped around the processor is a rich analog
and digital programmable fabric, which can be configured to provide many functions that would otherwise need to
be realized in code (lowering system performance) or external circuitry (adding cost and board size). In addition,

FreeSoC2 Development Board - PSoC5LP

 DEV-13714

Содержание DEV-13714

Страница 1: ...I LP096 processor with 256kB of flash 64kB of SRAM and 2kB of EEPROM The onboard oscillator can drive the processor at up to 80MHz and the Cortex M3 core provides superior performance The real power of the PSoC5LP isn t in the processor however Wrapped around the processor is a rich analog and digital programmable fabric which can be configured to provide many functions that would otherwise need t...

Страница 2: ...r Sadly the PSoC Creator software is Windows only at this time If you want to see that change consider piping up on the Cypress forums In this tutorial we re going to go over the detailed specifications and layout of the board how to add support for the board to the Arduino IDE and how to get started with a simple blink project on the PSoC Creator IDE Required Materials We re going to keep it simp...

Страница 3: ... PSoC5LP has four I O voltage quadrants the bottom switch allows you to select the voltage of the quadrant providing the Arduino header signals and the top switch controls all the others 8 Debugger IC JTAG SWD header This 2x5 0 050 pitch header can be used to program and debug the debugger itself It s intended to support a connection to the MiniProg3 programmer debugger from Cypress You ll probabl...

Страница 4: ...Target user LED Tied to port 6 pin 7 which corresponds to D13 on the Arduino mapped headers 3 ADC reference bypass capacitor jumpers These jumpers allow you to add a 100nF capacitor to three of the PSoC part s pins to provide a bypass for ADC voltage references to increase the reference s accuracy 4 High frequency crystal footprint if you need better accuracy than can be achieved by the onboard os...

Страница 5: ...Cortex M3 processor core Late model boards such as the Due and the Zero also use ARM processors so the Arduino team have added the ARM GCC toolset to the officially supported toolchain That s good for us because it means we don t have to do much work at least on the toolchain to add support for the PSoC All you need to do is open the Arduino IDE and launch the board manager see image below One of ...

Страница 6: ...rtable with using the FreeSoC2 in the Arduino IDE you may wish to open this up as a first step towards using the full features of the part If there isn t a Hardware directory in the sketchbook that s fine Just drag the Hardware directory from the zip archive into the sketchbook Restart the Arduino IDE and you should see the boards in the Boards menu Programming the FreeSoC2 Board With an Arduino B...

Страница 7: ...tallation directory If you have Windows 8 you may want to check out this tutorial about installing unsigned drivers 3 Launch the Programmer You ll see this window 4 Load the Bootloader hex file located in the support package you downloaded above Hardware SparkFun psoc 5 Click the KitProg entry to select the board for programming If there is no KitProg entry in the menu check to make sure the drive...

Страница 8: ...mbers should be defined as long rather than int We ve ported the most core libraries to the FreeSoC SPI Wire I C and Servo and we ve created a driver library for the WS281x programmable RGB LEDs Other native Arduino libraries may or may not work Here s a list of libraries we ve verified with the FreeSoC2 in Arduino Our APDS 9960 Gesture Sensor library Our MicroOLED Breakout library Extra Serial Po...

Страница 9: ...ber and pin number These numbers are given on the board as P port pin P1_D2 is connected to the user button on one side ang ground on the other void setup pinMode functions are unchanged pinMode LEDPin OUTPUT The onboard user button needs to be a pullup enabled input pinMode buttonPin INPUT_PULLUP Serial begin 9600 This is the same as it is on the Arduino Leonardo It represents the logical serial ...

Страница 10: ...onnect the board via the Debugger USB port The driver should have been installed as a part of the Creator install process If not you can find them in the Creator installation directory If you find driver installation problematic under Windows 8 we have a tutorial to help with that There s no need to connect the Target port unless you are actually creating a project that uses USB which is beyond th...

Страница 11: ...ted to project and workspace management If you currently have a workspace open you have the option via the Workspace drop down of electing to add this project to that workspace Otherwise it will be greyed out and you ll need to provide a workspace name The IDE will create a new directory with the workspace name in the directory specified in the Location field it will create a subdirectory in that ...

Страница 12: ... support the hardware On the right side of the screen you can see a tree structure frame called the Component Catalog These are all the various hardware devices you can have the IDE build out of the chip s resources The Cypress tab contains active devices which will actually be created and the Off Chip tab allows you to add things like switches and LEDs Take a moment to review the available compon...

Страница 13: ...uration window where you can set all the various parameters that define the part at build time From here you can do an awful lot For now we re going to do three things rename the pin change the drive mode to Resistive pull up and clear the HW connection checkbox HW connection provides a place to attach a component internally for example a PWM output or an input to a counter If you don t want to at...

Страница 14: ...n 2 and the user LED to port 6 pin 7 so let s make those assignments now Note how the lock box becomes checked when you change the setting that prevents the IDE from reassigning that pin You ll also notice that many pins have some extra text associate with their port pin information for example P1 2 is also labeled as XRES opt These are special functions that can be associated with the pin for imp...

Страница 15: ...Target port can only be used for uploading code via a bootloader The IDE will automatically save all open changed files and initiate a rebuild if necessary Then it will find any attached programmers and automatically connect and program Hardware This is the PSoC though right So we can skip the code part entirely Delete the code you just added to the main c file and let s do it in the schematic ins...

Страница 16: ...orkspace from the Examples menu item in the File menu Examples are sorted by keyword there s an example for almost every problem Resources and Going Further The PSoC community is robust and thriving and Cypress has provided a lot of really good resources for hobbyists and professional engineers alike 100 projects in 100 days Cypress in conjunction with Element 14 created 100 projects and released ...

Страница 17: ...Making Music with the FreeSoC2 AUGUST 14 2015 Create a synth keyboard with the FreeSoC2 from SparkFun ...

Отзывы: