Code Examples Forum Discussions
Hi,Community,
I created a project to start CAPSENSE Tuner with UART for PSoC4000S.
The CAPSENSE project borrows from the proximity sensing project(CE225691).
To use UART, only a few changes to the component and main.c are required.
STEP1: You need to change the SCB component from EZI2C to UART.
STEP2: You can either comment out or delete the code related to EZI2C in the original project.
This discussion will help you understand how to write a UART.
https://community.infineon.com/t5/PSoC-4/UART-packet-for-CapSense-Tuner/td-p/196830
To activate the CAPSENSE tuner via UART, please use MiniProg4. MiniProg3 is not suitable for its UART. Please refer to the caution note on page 10 of this document.
Once you have made the necessary changes to your project for UART, all you need to do is build it and then launch the CAPSENSE Tuner.
Best Regards,
Chihiro Tatebayashi / NEXTY
Hi guys, is there library or code example UART Rx for SP490. I found only example for UART Tx for Sp490. Thanks you
how can i declare NO_INIT variables in SP490 sensor?
In SPI_DMA example how queue works for multiple slaves in single node , unable to understand from documents of iLLD.@User16286
Show LessHi,
I've uploaded an example project that illustrates very efficient ISR coding of 11 UART Rx ports.
It is uses a SW circular FIFO buffer for each port with threshold detection of a message size (in this case 7 bytes) and FIFO buffer overrun.
With my implementation I can achieve nearly 300KBaud for each of 11 Rx ports with the BUS_CLK @ 79.5MHz. I can achieve 100KBaud with BUS_CLK at 24MHz.
This example is intended to be a starting point for your next project for very high performance data acquisition that also supports some error detection.
Requirements:
- PSoC5LP
- PSoC Creator 2.0 or higher.
- Many PSoCs with some minor modifications.
The project was created on a CY8CKIT-059 but can be built on virtually any PSoC5 platform.
Included is a document file explaining the project goals and a treatise on Interrupts.
Show LessTo all,
I've enhanced some of my previously submitted code shares (Terminal Component - Simplifies UART or USBUART communication and GetString() function that supports input character filtering. Includes menu-driven commands. ).
I've now expanded these previous submits and placed them in a Component Library that can be easily shared with all your projects and with other users.
Here is a list of the components in the library:
- Term - Terminal (UART) replacement that can be configured as UART or USBUART types.
- String_Funcs - This is an enhancement of the GetString() function. It is easier to use.
- MenuCmds - This feature was included in the GetString demo code I shared earlier. It is now a component with some improvements.
With each of the Components, I have include at least one demo project for each component to illustrate how these components can be used.
I've also included datasheets for the Components, the demo projects and a instructional on how to install a library/component to be shared across all your projects.
All the components have the source code included for educational purposes. If you know how to write component code, you can modify it.
The components String_Funcs and MenuCmds are designed to work with ANY PSoC. (They are mostly library functions.)
The Term component currently only works with the PSoC5.
I hope everyone who download's this component will find it useful.
Len
Message was edited by: Len Update: Added PSoC6 and PSoC4 demo code examples.
Message was edited by: Len Update: Added two more PSoC4 demo code examples. Both using the SCB_UART component and one of them with a Bootladable (-049 kit).
Message was edited by: Leonard Poma This library includes the latest version (2.3) of Term. Attached is also two demo examples of using Term.
Show LessUPDATED: 12.30.2021
Hi,
I'm attaching a project which includes a pre-component version of a 14-bit VDAC using the dithering method to generate the extra bits of resolution beyond the inherent 8-bits provided by the Cypress VDAC8 component.
In principle it is identical to the Cypress DVDAC (12-bits max resolution) in theory of operation. It even has the same API calls.
Besides having 2 additional bits of resolution (max 14-bits), it doesn't use the DMA to operate the dithering. Instead it uses a 100% HW state machine created with UDBs. Therefore, the dithering is always in-sync to the VDAC clock and is not prone to DMA latencies. In fact, it uses 0% CPU cycles to keep it running!
Project SW Requirements:
- PSoC Creator 4.2.
PSoC5LP Requirements:
- Use project DVDAC14_Demo_PSoC5
- The project supplied is designed to run on a stock CY8CKIT-059 with NO EXTERNAL components!
- The project can be modified to run on other PSoC5LP-based designs. (eg CY8CKIT-050, SparkFun boards, etc.)
PSoC3 Requirements:
- Use project DVDAC14_Demo_PSoC3
- The project supplied is designed to run on a stock CY8CKIT-030 with the addition on one small capacitor.
- The project can be modified to run on other PSoC3-based designs.
he project attached is a Demo code example that allows for user modify the DVDAC14 'component' parameters through the API calls to the included pre-component.
The Demo project uses my Term, MenuCmds and String_Funcs components to simplify the user access to the run-time features.
I have include the needed component libraries as imported into the project for your convenience.
Here is a link to my component library: Terminal-Support-Component-Library if you'd prefer to use these components as a shared resource for your other projects.
Why do this?
Because you (more specifically ... I) can. Cypress demonstrated that this is possible with their DVDAC12. I extended their idea to a HW-only solution as a learning experience and possibly a teaching tool to help show the value of the PSoCs that have UDBs. It has been my experience as an engineer that if you can move highly repetitive operations into a HW state-machine, you can achieve significant performance gains.
There might be some of you that ask: Can the DVDAC be made to support 16-bits? The short answer is yes. However, in this style of implementation you would need 32 UDB blocks. This would deplete your UDB resources. Additionally, the extra VDAC sensitivity virtually gained would be outweighed by the noise in practically any system.
Next Steps
I have released the DVDAC14 as a pre-component. It has about 80% of the component structures including the API calls.
I'm looking for user feedback. This includes implementation bugs if you find some. If you have some suggestions, I'd welcome the input.
Once I feel the pre-component version is stable I would consider making it into a full-fledged component.
Happy Holidays and Enjoy!
Show LessHi
I am using a code example (CE218964 - PSoC 6 MCU RTC Daily Alarm). the printf() functions does not print to serial port.
I had the same issue with all the code examples that use printf(). I had to replace it with UART_put or UART_putstring().
I read many threads to find a solution, for example changing heap size, or adding "fflush(stdout);". None of those proposed solutions work.
Any help ?
also what does the heap have to do with the operation of printf() ?
thanks
Show LessNeed Example Code for Simultanously 2 filter output with one output filter changable to LPF/BPF/HPF in PSOC 5LP
Hola que tal
Tengo un proyecto el cual ocupo comunicarme con el CY5677smart bluetooth low energy, ocupo leer, escribir datos.
Alguna persona tendra algun ejemplo para C # o labiview que pueda compartir.
Saludos y quedo en espera de alguna respuesta favorable
Show Less