PSoC™ 4 Forum Discussions
I get advice not to use CyDelay and so I tried to use Timer. But I do not see any current savings while using Timer. What is the current consumption of Timer?
Show LessHow to get proximity range of 30 cm from CY3280-MBR3116 evaluation kit? Will I get 30 cm Proximity range from evaluation kit or Do we need to create our own PCB design?
Show LessHello, I need some help to construct my programme for a wakeup from deepsleep by uart interruption.
I have a GPS module whose send me NMEA frame.
My BLE module CYBLE-022001-00 is in Deepsleep State and I wait a new frame send by GPS for wakeup the BLE module.
My problem is when the BLE module wakeup, it doesn't receive the first byte because of Wakeup time.
Exemple :
I receive this : ±153935.000,A,5038.1687,N,00304.9711,E,0.39,250.86,020518,,,A*7A
Also the GPS module send $GNRMC,153935.000,A,5038.1687,N,00304.9711,E,0.39,250.86,020518,,,A*7A
The beginning "$GNRMC," is not catching by the BLE module.
My configuration:
GPS Baudrate : 9600Hz
PSOC Clock IMO : 6Mhz
I have two interrupt : one for wakeup and one for new byte
When I want to sleep :
GPS_UART_ClearRxInterruptSource(GPS_UART_INTR_RX_NOT_EMPTY);
GPS_RX_ClearInterrupt();
GPS_WAKEUP_ClearPending();
GPS_WAKEUP_Enable();
GPS_UART_Sleep();
GPS_RX_Sleep();
CySysPmDeepSleep();
GPS_RX_Wakeup();
GPS_UART_Wakeup();
I want to know if there is a solution for catch all byte and if the wakeup time to deepsleep from active state can be better ?
Thank you,
Show LessHello,
Currently I am doing a project on PSoC 4 CY8CKIT-042-BLE on CYBL11573-56LQXI.
I am using AC Mains 250V, 50 Hz supply and feeding it to my Zero Cross Detector circuit. The ZCD detects the crossing after each cycle (that is, only when the wave crosses from Negative to Positive).
I take the output of this circuit and feed it to the PSoC as an Interrupt.
To sync and test the ZCD I am controlling an LED with varied power levels.
Observations:
1) In 1 second the counter value (no of times Interrupt Handler is executed) should be ideally near 50 for rising edge detection. But I am getting it as 100+
2) This counter value is seen only when, the drive modes of the pin on which interrupt is connected is the following of all combinations:
A) Open Drain, Drives High (Initial State Low)
B) Open Drain, Drives Low (Initial State High)
C) High Impedance Digital (Initial State High)
D) High Impedance Digital (Initial State Low)
And the counter remains 0 (no of times Interrupt handler is executed) on all the remaining drive modes permutation and combinations.
3) When I remove the Male to Male Link (Used to get ZCD Intr on the pin) , the counter value in the 4 working modes mentioned goes Zero.
4) When the male to male link on the PSoC pin is connected but removed from the other end, that is , from the ZCD detection ckt o/p, that is when the other end of the male to male link is in the air, the Counter value comes as 50 in the above mentioned 4 drive modes.
Please see if you can provide any solution so that the the Interrupt runs 50 times in 1 second for 50 Hz AC Supply, and the LED gets controlled as desired.
I am attaching my workspace.
Thank you in advice.
Show LessI am working an application whereby I have a Central and multiple Peripherals. The desire is for the Central to send data to the Peripherals.
It goes through a process of scan, connect, write data, disconnect, etc…
Initially I was using :
CyBle_GattcWriteWithoutResponse
but sometimes the messages were getting dropped.
I changed to using:
CyBle_GattcWriteCharacteristicValue
This function results in CYBLE_EVT_GATTC_WRITE_RSP if the response is received. I have a time monitor so that if the response does not come back in time (80ms), I try to send the write a second time with another call to: CyBle_GattcWriteCharacteristicValue
If I call that function a second time, I get a CYBLE_ERROR_INVALID_OPERATION
Is there a way to resend a message if I don’t get a response? Is there a better way to determine that a write was not successful and resend it promptly? Or do I need to disconnect, reconnect, and resend?
Show Less
Hi everyone,
I'm using the CY8C4245LQI microcontroller and I have an unexpected behavior when my code uses more than the 90% of the available flash: some features do not work.
Otherwise, when the output table shows:
Flash used: 28672 of 32768 bytes (87,5%).
SRAM used: 2828 of 4096 bytes (69,0%). Stack: 2048 bytes. Heap: 64 bytes.
Everything goes well.
I obtain this result by commenting a function that is not used for now. (But shall be used in the next future).
So my question is: there are some restriction using the available flash at all?
(Unfortunately i could not post my code because it is for a commercial use).
Thanks for your help!
Show LessHello.
I have purchased cy8ckit49 42xx and tried to load a blinking led code, but while debugging, I keep getting error.
M0033: error: The instance 'Bootloadable', of component Bootloadable_v1_30, contains an error. Unable to locate and customize component 'Bootloadable_v1_30' used in schematic.
I saw a thread in which it is mentioned that the psoc creator should be reinstalled but that also didn't work for me.
Please help.
Thank you.
Show LessI am experimenting with PSoc 4200's PWM.
While running the processor in 48Mhz, and with count of 255, I am getting ~180khz frequency. Is there something that I am not configuring correctly?
255 resolution won't be enough for my application.
Thanks!
Show LessHi All,
I'm trying to use the 8-channel ADC_SAR_SEQ on the CY8CKIT-042-BLE development kit. I can get appropriate ADC measurement readings for the first 4 channels, but the ADC cannot read voltages 0-995mV on channels 4 (P3[4]) & 5 (P3[5]), and cannot read voltages 0-311mV on channels 6 (P3[6]) & 7 (P3[7]). I am using a benchtop supply to feed the input voltage directly into the ADC_SAR pins through (P3[0]-P3[7]).
I'm using the following ADC configurations:
Vref Select: External Vref
Vref Value: 2.5V
Single ended negative input: Vref
Single ended result format: Unsigned
Clock source: Internal
All 8 channels use 12-bit resolution single-ended mode
Acq time: 1.5us
Conversion time 16us
Do you have any idea what could be preventing the last 4 channels from reading the low voltages? Thank you very much for your time!
Show LessHello
I use the device wwhich is CY8CMBR3116-LQXI.
It can select I2C speed to 50、100、400 kHz on I2C speed setting.
how range does I2C seting of host acceptable to frequency gap from slave setting?
Show Less