PSoC Programmer can be used with PSoC Designer and PSoC Creator to program any design onto a PSoC device.
Psoc Programmer Software Software Available ForThere are inherent dangers in the use of any software available for download on the Internet.![]() Please credit this blog if you are using the information or software in it. The project Ive chosen is really trivial flashing an LED but this is always the first step I take with any new hardware, and in this case Ill start by using conventional software techniques, then show how the same application can be implemented purely in hardware, with the CPU doing nothing. For the time being, Id suggest you keep the board intact, as you lose some handy features (e.g. PC) if the sections are snapped apart and re-joined by an SWD cable. Once you start using the software, it gets even stranger, as every time you build the application, umpteen C and Verilog files are created; you can get an out-of-control feeling when faced with all the automatically-generated files you didnt write. Click this, and select the Target Device as PSoC 5LP Cy8C5888LTI-LP097. If you get this wrong, no great harm will result, the device programming will fail, with a helpful message as to the device youve set, and the device that is actually fitted to the board. So until you specify what you want by placing a component in a circuit diagram (the TopDesign schematic), the functionality doesnt exist. There are tabs for Source and Components; youll frequently be switching between these views of your design. On the right side is the Component Catalogue containing various (soft) components that can be dragged onto the schematic. The other area of note is the narrow menu bar to the left of the schematic; this selects drawing tools, the most important is the second one down, which is used to wire up the components. Zoom in so it is visible (I use control-mousewheel to do this). The default name is Pin1 since all resources are auto-numbered, so double-click it and rename to LEDpin. All components are documented in this way, which is one of the major strengths of the Cypress software tools. This is done by double-clicking Pins in the Design Wide Resources, which displays a pretty little diagram of the device, with a hint that the LEDpin needs to be assigned. In theory the CPU can go up to 80 MHz, but then the timing analyser complains about the clock tolerance; I guess it implies that boosting an internal 3 MHz signal up to the CPU maximum isnt a good idea, so Ive backed it off to 50 MHz. Dont worry about it; this file contains the hardware definitions that are needed by the software, and will be generated at build-time. At build-time, the system creates a custom version of the API to match your device settings in the schematic; the standard prefix Pin is replaced with the name we provided, so Pin Write becomes LEDpin Write. ![]() If you see an error No input on Instance LEDpin then you didnt disable the HW connection on the LED pin (see above), so the software is expecting it to be wired to some internal logic. If this is the first time youve used the board, you may be prompted to select it from a list. There are various ways to do this, Ive chosen one that demonstrates how components are wired up in the schematic. Find the Clock component in the System section of the Component Catalog, drag it onto the schematic, double click it, and use the following settings. These have to be connected to something, you cant leave inputs unconnected. Since we want the divider to be permanently enabled, and we dont want it to be reset, we need to force Enable high, and Reset low, so find Logic High and Logic Low in the Digital Logic section of the Component Catalog, and drag one of each onto the schematic. Youve created your first PSoC hardware project, and hopefully Ive convinced you to carry on experimenting with these remarkable devices.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |