PSoC™ 4 Forum Discussions
Hello everyone,
I want to send a variable string (for eg.: varying ADC value) to a computer using SCB-UART component. How can I achieve this?
The kit I am using is CY8CKIT-042-BLE and I also making use of TeraTerm emulator to observe the string sent via UART. Is there any api that I can make use of in order to send a variable string of characters??
Show LessIn my application, I am sampling an accelerometer at 1600 Hz. In my ISR, I set a flag which is then processed in my main loop. This works fine when I don't use any sleep modes.
However, once I add CySysPmDeepSleep() into the main loop, I never wake up and service the interrupt. I service the interrupt once before going to sleep, but never wake back up to service it again.
According to this document, a GPIO interrupt is a valid wakeup source from deep sleep:
http://www.cypress.com/file/121271/download
In another document, it states that all GPIO are frozen automatically when entering deep sleep (section 10.12):
http://www.cypress.com/file/127101/download
The behavior I'm seeing implies the latter is correct, since it seems like the GPIO tied to my accelerometer is no longer causing me to wake from deep sleep. I only have this problem with deep sleep as CySysPmSleep() works without issue and I see my accel interrupt at 1600 Hz.
Am I misinterpreting one of these app notes, because they seem to have conflicting information? Any help is greatly appreciated!
Show LessHello,
i am looking for some advise on my system design. Here is my situation:
I have a Silicon Labs WonderGecko aquiring data from an accelerometer, temperature sensor and heart rate sensor. This sensor data is processed in the WonderGecko. My goal is to send the data to a Smartphone using the PSoC4 BLE as BLE interface. So i have the PSoC4 BLE here and i wonder how to interface the PSoC4 BLE and the WonderGecko in the most energy efficient way. Would you suggest transferring the sensor data between the two controllers via I2C or UART?
I also need to send control data from the Smartphone back via the PSoC4 BLE to the WonderGecko and i want to be able to do an over-the-air firmware update on the WonderGecko as well as the PSoC4 BLE.
I know, thats a lot of features, but is it possible? And are there any demo applications on how to use the inter-chip communication efficiently and in general, on how to use the PSoC4 as a simple network processor for BLE?
You might say now, that i should just use the PSoC4 BLE and drop the secondary processor, but thats not possible due to our companys development agenda.
So please, help me in starting to use the PSoC4 BLE as a processor "just for the BLE connection" in my design.
Thank you so much,
Patrick
Show LessHello everyone,
I'd like to port my TFT ILI9341 AVR driver (parallel bus) from AVR architecture to the PSoC4 component but I don't know how to assign PSoC port's symbolic names for used ports in order to have them correct when I use the component in the schematic etc. Could you give me some tips? Robert
PS.
The driver was attached as ZIP file.
Show LessOur CAN baud rate is set 125 kbps. However, I was trying to use internal system clock on PSOC4 for the CAN communication, but the SYSCLK clock accuracy is set for +/- 2 % and the CAN block requires +/- 1.58% or better. Does anyone know how to achieve that without adding external crystal?
Show LessHi,
I try to enable a watchdog timer to reset my application in an error case after 1s (I don't need any WDOG interrupt / just the reset). How can I realize this requirement?
1. How to enable the WDOG timer
2. How to setup the refresh time?
I attached a simple example.
Thanks in advance!
Pascal
Show LessHello everyone,
I started my experience with Psoc4 and designed simple project with one PIN being set to logical 1. I'm surprised that after building this project it used:
Flash used: 1664 of 32768 bytes (5,1%).
SRAM used: 1428 of 4096 bytes (34,9%). Stack: 1024 bytes. Heap: 128 bytes.
and 3 IO and 1 UDB. What is more PSoc Creator generated many directories within the project (like cy_boot etc). I attached screenshoot of the PSoc Creator
Why???? What could I do to make the file smaller? Robert
PS. In AVR architecture it would use few bytes.
Show LessI see that exist this event :
CYBLE_EVT_GATTS_WRITE_REQ:
/* This event is generated when the connected Central device sends a
* Write request. The parameter contains the data written */
What a event generated when the connected Central device sends request to read specific characteristic?
Thanks to Bob,
I almost did implement RTC with WDT. and Now I want to know some caution about this process
1. I implemented 2 years-period timer with RTC. I used WDT2 with my generated interrupt.
but I worried about distortion. because of RTC, WDT2 must operate correctly. so tell me about caution that can distort WDT2.
2. can you tell me about guaranteed error related to RTC? last question, you said RTC could be almost precise. but i doubt that because of
clock accuracy, crystal characteristic or load capacitance.
3. and now I calculate current in circumstance that is between deep sleep and active. but in datasheet. only wake time(25us) existed.
but in order to calculate exact time. I must know about code execution time, deep sleep time, active time during 1s.
- sean
Show Less