PSoC™ 4 Forum Discussions
Dear,
i want to konw how much time when erase & write data into internal flash( or Internal EEPROM)? also the power consumption of it? thanks.
b/r
vincent
Show LessI've been referencing two example codes; BLE Temperature Measurement Example Project & PSoC_4_BLE_CapSense_Slider_LED. I want to make ADC readings of a thermistor and report the ADC codes in a custom GATT profile. The attached project advertises fine but the central device does not find the characteristics and disconnects. I need help choosing the API calls to complete the remaining tasks. - thanks in advance.
Show LessHello,
I am using PSoC 4, and have a project in which I have a bootlaoder and an application.
I want to create a global watchdog that will work both for the bootloader and the application.
I want to start the watchdog inside the bootloader and continue feeding it from the application after it boots.
I want to start the watchdog from the bootloader in order to make sure that the application boots correctly, and in case of any error during the boot of the application I want there to be a reset (from the watchdog) that will garauntee that my system won't get stuck in an invalid state.
I tried creating such a watchdog, but every watchdog that I have created was local to its project (if I created it in the applicaiton it worked only there, and if I created it in the bootloader it stopped working once the application started).
Is there any way to create such a watchdog? If not, is there any other way to gaurantee that the application booted as expected (other than the static analysis of the application that the bootloader does)?
Any help will be greatly appreciated,
Omri
Show LessHi..
I am using psco4 device cy8c4025azi-s413...Want to implement the timer with interrupt....I am using the timer component as timer counter(TCPWM mode)[v2.10]... clock frequency is 12Mhz...
how to set the Timer/counter page setting??? please let me know how to calculate the period, prescaler, clk frequency??? and relation between then....
Show LessI've got the CY8KIT-042-BLE-A kit and have tried 2 example projects. Both yield a maximum ADC result of 0x7FF but seems to work fine between 0-0x7FF. Simplest example I used was PSoC4_ADC_with_Differential_PreAmplifier01 and using a single ended channel.
I've got to be overlooking something simple but I've done nothing but spin wheels for hours. Here I've got adcVal[CHANNEL_4] tied to 3.3V supply. Tried both internal ref =1.024V and VDDA. no change, max ADC result is still 0x7FF.
Show Less
Hi everybody.
I am new in Bluetooth on CY8C4247LQI_BL483. I need to build a dongle that gives data by Bluetooth from application on phone and then convert on Zigbee(MRF24j40 microchip). second side include of Zigbee and everything that need on configuration of SPI for Zigbee is true and working well but my question is about Bluetooth?
could you say me how can I modify BLE on CY8C4247LQI_BL483 as a server and send data on GATT and receive it in database to prepare send on Zigbee module.
I have not any problem on GAP connection modify but most of problem is in GATT.
1- How can I write data from application on BLE GATT database?
2- How can read new data from GATT database to send on Zigbee after that?
3- Another thing I do not know how can remove GATT database after read?
I attached my project here. Please help me to run it. I try to run it on UART at first, when I can read data from GATT database, Subsequently can change UART to SPI to replace for Zigbee.
Thankyou for attention...
Show LessHi folks.
May I just measure the PWM pulse with SAR_ADC?(CY8CKIT-044)
The Conversion time of ADC is 2 us.
So I generate a PWM like the Oscilloscope shows below.
And my code is
for(uint i = 1; i <= 20; i++)
{
PWMadcCounts = ADC_GetResult16(0);
PWMvolts = ADC_CountsTo_Volts(0,PWMadcCounts);
CyDelayUs(2);
}
And put out to terminal via UART.
In my imagination. It should be able to show the voltage around 4.32v at the first, then drop down to around 0v when i = 9. But it isn't.
There is my project file in attachment.
Is this idea impossible?
Thank you for your time to read this. If it's not bothering you, having some suggest and I'll be grateful.
Show LessHello,
I have a project with a PSOC 4, specifically CYBLE 222014-1.
I need to make a 100MB data transfer in a reasonable time. We are considering compressing the data but I don't think it can be reduced to much more than half.
In the example provided by CYPRESS called "Project #024: Bluetooth Low Energy Throughput - Pushing the Limits" they directly use the l2cap layer.
The problem is that this transfer has to be done between the MCU and an ANDROID mobile phone.
Android has implemented an l2cap socket in the latest version of the API, specifically the 29 (Android 10). This version offers the functions listenUsingL2capChannel() and listenUsingInsecureL2capChannel(). Probably with these functions you can replicate the example shown between mobile and MCU.
The problem is that it is not compatible with previous versions of ANDROID.
On the other hand from API 5 there is RFCOMM support in android (listenUsingRfcommWithServiceRecord()). It uses the l2cap layer to simulate a serial port. RFCOMM is a layer superior to l2cap that was used in previous versions of bluetooth.
I am not sure if the RFCOMM protocol can be implemented with PSOC 4 in order to have compatibility with previous versions of ANDROID.
In this other thread the topic is discussed: https://community.cypress.com/thread/1942?start=0&tstart=0 indicating that it is not possible.
I would like to have a confirmation if it is possible or not to use RFCOMM.
The other alternative is to use the feature set offered by classic BLE. But here again the limitations of ANDROID comes into play. Although in other websites it is specified that for each connection interval you can send up to 6 packets (features), I have not been able to send more than 2. Since the MTU in ANDROID cannot be changed and for each packet you can send 20 bytes per packet, and this is a problem.
Apart from these limitations, there can be a maximum of 89 connection intervals. Although in previous versions of ANdroid a connection interval of 7 was allowed in higher versions it has been increased to 9. If we multiply 9 by 1.25 we have an interval every 11.25 seconds and if we divide 1000/11.25 ~89 packets.
With all this we have that 40 bytes per interval * 89 packets per second we have 3560 bytes/s. Without considering losses this speed is quite low.
Given this case, is there any way to make this type of data transfer faster?
Thank you very much.
Show LessHi,
I'm new in all of this. I was following the PSoC 101 series, and I have two problems:
1. I'm trying to do the I2C video, but when I open the PSoC programmer I get this message:
“The communication firmware on the kit does not match what is installed with this release of PSoC Programmer”
If I try to update the firmware, I can’t push the button.
How can I fix this?
2. I Also try the UART video, but I don't see anything in teraTerm, do I have to do any wiring?
Thank you!
Show LessHi,
I'm just wondering if there is a general error in the PSoC 4200 Family Datasheet with the power supply diagramms. https://www.cypress.com/file/138656/download
On pages 16 and 17, all the pins are only connected to Vss (or Ground)... This should be corrected.
Philipp
Show Less