Psoc Programming Manual
Attention, Internet Explorer UserAnnouncement: Jive has discontinued support for Internet Explorer 7 and below.In order to provide the best platform for continued innovation, Jive no longer supports Internet Explorer 7.Jive will not function with this version of Internet Explorer. Please consider upgrading to a more recent version of Internet Explorer, or trying another browser such as Firefox, Safari, or Google Chrome.(Please remember to honor your company's IT policies before installing new software!).
Introduction to PSoC®PSoC® Programmable-System-on-Chip is Cypress Semiconductor's programmable design and test environment for embedded systems. The PSoC family includes PSoC1, PSoC3, PSoC4 and PSoC5, which differ in capabilities, microcontrollers, amount and type of memory available and types of interfaces included.
The PSoC environment includes an IDE for creating, building and debugging projects, a programmer to load firmware and an emulator. Development kits for each PSoC family are available and contain everything to get started. Tutorials, projects and information are available from the developer community, forums and Cypress Semiconductor's support team.
A 'Thank you' goes out to the Cypress Semiconductor PSoC Marketing Team for their support. Required for this project:. Any PSoC kit with an LED can be used with appropriate changes for the individual component selection and pin assignments. A CR2032 lithium-ion 3V, 250mAh button cell battery is included which is installed on the board to provide portable Vdd power. Cypress Semiconductor recommends removing the battery when not in use. Windows-based PC that can support the development environment with a standard USB port., the IDE for developing, programming and debugging the PSoC4.
Knowledge of c programming language is helpfulThe PSoC Creator is available as a free download from the after creating an account. The PSoC Programmer is also available as a separate download, if using a different IDE. There is also an emulator, as well as for Android Mobile and iOS Mobile AppsEmbedded Systems to PSoCAn embedded system is part of a larger system, usually providing the control and interface functions. An embedded system may contain a processor, memory, data storage, signal conditioning, displays and controls.
The embedded system 'lives' within the hardware and its capabilities are only available to users through specific interfaces, like switches or knobs, if there are any user controls at all. The embedded system originally consisted of discrete components on printed circuit boards (PCBs).As manufacturing and chip technology improved, some components of an embedded system could be placed on a single chip, manufactured as a single integrated circuit (IC). This cut down on space requirements; data movement was faster and it enabled smaller devices. Applications where the entire system resides on an IC are referred to as System-on-Chip (SoC).Cypress Semiconductor took the idea behind programmable logic and field programmable gate arrays (FPGAs) and developed a SoC where certain elements were programmable, introducing the Programmable System-on-Chip (PSoC®) in 2002.
With the same board, different applications can be developed using hardware and software components. The PSoC IDE gives developers the ability to select and configure hardware components, compile and control necessary software, program and test projects from one window. By linking in datasheets, component information is available to developers when needed, providing a powerful development environment. PSoC BasicsThe basic steps to programming a PSoC are:Create your Project/Program using the PSoC IDE. This is a multistep process, similar to the way some visual programming languages allow you to select GUI components and program them to respond to various events. The PSoC IDE allows you to select components from the component library, configure them to your requirements, set up hardware connections between the microcontroller pins and your components, and then, if needed, write software to control or respond to various events. The PSoC Creator presents index tabs for the TopDesign where you select and configure components, the design-wide resource, where you set up the microcontroller port/pin connections and the main.c file where your initial code begins. The code can be as simple as the defaults given in main.c, to multiple.c files to produce firmware for a complex system.Build the project.
Please input captcha to take your serial number. View in text. Similar activation keys. MemoriesOnTV Pro v Nes Format Games For Mp5. Memories on tv 3.1.8. You have chosen to download MemoriesOnTV 3.1.8. Check the file details to make sure this is the correct program and version, and that your operating system. Please select a mirror for free download MemoriesOnTV 3.1.8. MemoriesOnTV 4.1.2 — MemoriesOnTV creates the most visually elegant slideshow on TV. MemoriesOnTV 3.1.8. File size: 5.73 MB. This tool lets you create slideshows with transition effects and music on VCDs, SVCDs and DVDs. MemoriesOnTV is a photo slideshow software that creates elegant Ken Burns-styled slideshow presentations for the TV or the Web.
Building the project produces a target loadable.hex file, in either a Release or Debug version for a given device. The build compiles the individual files, producing object files (.o files) and list files. The.o files are combined to produce an.ELF (Executable and Linkable File) and finally a.hex file which contains the firmware to be migrated to the target device. During the build, several software components are generated by PSoC automatically. Debug versions includes additional control hooks that allow the program to be executed under debugger control. A release version doesn't include extra controls and execution can begin immediately.Program the PSoC.
Using the kit's included USB cable, the.hex file is loaded into the PSoC memory. Programming of the microcontroller erases the previous program and reprograms the memory with the new.hex file. When successfully loaded, the microcontroller controls the execution of the program. Depending on the system and environment, the program may begin running immediately. Debug versions need to be started manually.
With the battery installed, once programmed, the PSoC can be disconnected from the PC and it will continue running. The ProjectsThe PSoC4-BLE kit includes an ARM Cortex-M0 micrcontroller, an onboard capacitance sensor (CSD) and BLE technology.
The block diagram from Cypress Semiconductor shows the subsystems:Clocks, timers, analog and digital configurable elements and General Purpose I/O (GPIO) pins are included. Application Programming Interfaces (APIs) for each component enable software access and control.
The APIs are listed in the Datasheet, available from the component configuration window. This project uses the pin, LED, clock and PWM components.Project ideas are endless, but to get started and introduce the flexibility of PSoC the following will be covered:1. A hardware only project to light the onboard LED; it requires no additional software.2.
A hardware control project to blink the onboard LED; software is needed to enable the hardware components but the LED blinking is under hardware control.3. A software control project to blink the onboard LED under control of a software program.1. Light the onboard LEDThis initial project will have the PSoC light the onboard red LED. It uses the circuitry provided within the PSoC: the red LED cathode is connected to P26 with a copper trace so all connections are provided on the board.NOTE: Every PSoC device has different LED port assignments. The Red, Green, Blue (RGB) LEDs have different ports for each color. Refer to the schematic included with your kit for the appropriate ports. The LED ports are also shown via the silkscreen on the back of the PCB.
For the PSoC4-BLE, the red LED is P26; Green is P36 and Blue is P37.Open the PSoC Creator, and begin a new project:Select the default for your PSoC. Here, PSoC4 BLE with an empty schematic is selected.This brings up the TopDesign tab, with an empty schematic. On the right, the components library has Cypress and Off-Chip tabs to select components.The PSoC Creator shows all aspects of your project, and you can select views using the toolbar View tab. The Workspace Explorer has tabs for Source, Components, Datasheets and Results.
Psoc Programmer Miniprog3
The Results tab will hold the list, ELF, hex and map files resulting from the build. The component library shows available components; the Code Explorer shows the files and functions.Select your target device using Project- Device Selector.If you forget and use the default device selection, you'll get an error when you try to program your device. You can just select the correct device and rebuild the project.A simple circuit to light an LED may include the LED, power source and current limiting resistor in series to ground, as shown:To produce this circuit with the PSoC4-BLE, at the TopDesign tab, select a Digital Output Pin component and drag to the schematic.The pin is configured by clicking on the image to bring up the configuration window.
A HW connection is the default; you can select the external terminal to show the terminal as well configure other aspects of the pin. All components can be renamed from their configuration window. Once renamed, APIs for the component will reflect the selected name.The pin represents a connection tor the microcontroller; it must be connected using the design wide resources tab. Clicking the.cydwr file in the Project tree brings up the design wide resource tab with the microcontroller pinouts.For the PSoC4, connect Pin1 to Port: P26 Pin 43, for the red LED.To complete the circuit, at the TopDesign tab, a logic low, 0, is connected to the pin.Cypress and Off Board Component SelectionsShown below are two circuit representations for the LED circuit: one showing a single pin; one with additional components from the “Off-Chip” library selections. These are identical to the PSoC Creator, but one is much easier to understand!The schematic representation of Vdd, 10K Resistor R1 and LED D1 are just 'visual aids', they are1) available from the Off-Chip library component tab2) shown in blueThese are not considered in the PSoC programming; any components in blue are not used when the build is invoked. Blue components can help other engineers understand the circuit, but they are not used to build the project. With either representation, the pin component must be connected to P26 for the PSoC4BLE red LED circuit.
The LED circuit is shown via the silkscreen on the back of the PCB. All the components can be renamed for clarity:No additional software is needed in main.c and that completes the LED circuit.Build the project using the Build tab or Build icon (leftmost). You can select a Debug or Release version.The Output window shows the build results; a successful build produces a.hex file, and displays the amount of flash and SRAM used, as well as the stack and heap available. As a result of the build, a GeneratedSource branch in the Project tree shows included files; the list files and.hex file are in the Results tab.Any errors will stop the build; messages identifying the problem(s) will display.To program the PSoC with the newly built firmware, connect the PSoC board to the PC using the USB cable.Load the program using either the Debug- Program selection or Program icon (leftmost)The available targets are shown.
Select the PSoC 4200 BLE.The programming status is also given in the Output window:When programmed, the red LED on the PSoC is lit.2. Blink the onboard LED using a Pulse Width Modulator (PWM)A PWM produces a pulsing signal that can control power supplied to electrical devices. The PSoC component library includes a PWM that can control the LED from the line output.
A clock input provides timing. The same pin connection is used, connected to P26 as before with the HW connection set.The PWM is configurable; clicking on the image brings up the configuration window:The datasheet contains information on the component:The PWM and clock are system components that need to be started in software. The PWMStart API description is:void PWMStart(void) Description: This function intended to start component operation. PWMStart sets the initVar variable, calls the PWMInit function, and then calls the PWMEnable function. Parameters: None Return Value: None Side Effects: Sets the enable bit in the control registers of the PWM. If the Enable Mode is set to Hardware Only, this has no effect on the PWM. If the Enable Mode is set to Hardware and Software, then this will only enable the software portion of this mode and the hardware input must also be enabled to finally enable the PWM.In main.c the following functions have to be included to start the clocking:ClockStart;PWMStart;They are placed in the initialization / startup code section in main.c:Build the project and program the PSoC.
Once started, the PWM will control the LED. Debug versions require the program to be manually started, since debug versions start program control at main.c. The red LED blinks as configured.Try changing the blink cycle, by reconfiguring the PWM and clock.3. Blink the onboard LED using Software ControlSoftware functions are available to access pin locations directly. The pin component datasheet lists the APIs available including:PinRead Reads the physical port and returns the current value for all pins in the componentPinWrite Writes the value to the component pins while protecting other pins in the physical port if shared by multiple Pins componentsPin1Write directly controls the red LED.
Writing a 1 to enable the LED; 0 to turn it off. Because the ARM is so fast, a system delay is included using the delay API CyDelay(500); so the blinking is visible.At the TopDesign tab, the circuit looks the same but the pin is now configured for software by unchecking the HW connection in the configuration.
At the design wide resource tab, the pin is again connected to the red LED, P26.The Write/Read functions and the delay are added to main.c, within the for loop. After any initialization, code within the for (;;) loop will be continuously executed. A simple blink program can write to the LED the inverse value of whatever the LED reading is currently, delay a half second, then write the reverse:The program can be more complex, establishing global values to use in the read and write functions.When software is included, the Debug feature of PSoC Creator is useful to check program execution.