PSoC™ 4 Forum Discussions
Hi,
I am using CYBLE-014008-EVAL for my development.
I made a firmware and ran properly in debug mode (Connected with MiniProg3).
However, when I ran the firmware in 'normal' mode (No connection with MiniProg3), the firmware can only be ran about 3 minutes and the system went to shutdown.
Please help since this issue did not happen if I ran with MiniProg3 debugger.
I also tried to build the blood pressure example and loaded to the evaluation board. It also only ran for about 3 minutes if I did not run with the debugger in debug mode.
Thanks!
Terry
Show LessI need the actual PCB footprint for a Capsense button.
Hello,
We are working with a CYBLE-214015-01 module, and for my question here is the relevant excerpt from the datasheet:
It says max. injection current is +/- 0.5mA, with the conditions V_IH>VDD (I'll ignore V_IL here). What puzzles me is that the condition is not V_IH>V_GPIO_ABS. For me this would mean that even if the inj.current is limited to +/-0.5mA, V_IH<VDD+0.5V must still always hold to prevent damage to the device. Is this true?
My hope for our use case is that V_IH can go above VDD+0.5V as long as the injection current limit is not overstepped, but the current datasheets suggests otherwise. I'm not sure this is correct in the datasheet though. Can you please advice?
Thank you,
Karoly P.
Show LessHi,
I would like to send a 24bit serial data using assembly code but I am not experienced in assembly at all. Can anyone help me on this? If there are any resources about data transfer in assembly like application notes or something please share with me.
By the way let me give some more detail about what I am trying to do. Basically I want to drive WS2812B RGB LEDs and as you may know they require strict timing for sending bits. I actually implemented a code in C, which using CyPins_SetPin() and Pin_Write() builtin functions but using them is not a good way to solve the issue I guess. Therefore I would like to implement this in Assembly language putting some "nop"s for the delay required sending bits.
So I am in need of all kinds of help,
Thanks in advance!
Show LessI am trying to use one of the codes taken from PSOC community (MPU 6050 - Need help reading sensor values), and made the changes as recommended by latest API as suggested by the community. When I run it, it says that MPU6050 failed to connect. I wonder if someone pro at i2c and psoc could help me resolve that issue. I am attaching my project here.
Thanks in advance:
Apoorva
Show LessThe ADC_SAR_Seq component has an Injector Channel. The datasheet tells that it can be used as a firmware controlled channel, separate from the main channels, to use at a lower sample rate. But what are the benefits of using this channel? If I am going to make samples at a high rate anyway, I suppose I could get this signal for free as a main channel. Or do I get any power saving gains by using the Injector Channel?
Show LessHi All,
We are starting a manufacturing of a small PSoC4 based BLE thermometer in China. We're going through CE/FCC certification. The chinese lab that will do the test require a "Fixed frequency test and they want an output similar to this
Somebody provided this sample code:
#ifdef RFTEST
void TxCW(void){
uint32 cfg2,cfgctrl,sy;
//// set CW mode, To prevent first time TX frequency offset before CW mode enabled in case.
CY_SET_XTND_REG32((void CYFAR *)(CYREG_BLE_BLERD_MODEM), 0x96EC);
// Configure DSM as first order PLL
CY_SET_XTND_REG32((void CYFAR *)(CYREG_BLE_BLERD_CFGCTRL),0x0008);
// Enable Transmit at the required TX frequency
CY_SET_XTND_REG32((void CYFAR *)(CYREG_BLE_BLERD_CFG1), 0xBB48);
//CY_SET_XTND_REG32((void CYFAR *)(CYREG_BLE_BLERD_DBUS), 0xE962); // 0x962=2402 is channel frequency in MHz
//CY_SET_XTND_REG32((void CYFAR *)(CYREG_BLE_BLERD_DBUS), 0xE992); // 0x992=2450 is channel frequency in MHz
CY_SET_XTND_REG32((void CYFAR *)(CYREG_BLE_BLERD_DBUS), 0xE9B0); // 0x9B0=2480 is channel frequency in MHz
// Synchronisation delay for PA to ramp
CyDelayUs(120);
// Disable modulation port
cfg2= CY_GET_XTND_REG32((void CYFAR *)(CYREG_BLE_BLERD_CFG2));
cfg2 |=0x1000;
cfg2 &=~0x03FF;
cfg2 |=0x0200;
// Enable test mode
cfgctrl= CY_GET_XTND_REG32((void CYFAR *)(CYREG_BLE_BLERD_CFGCTRL));
cfgctrl |=0x8000;
// Close the loop
sy= CY_GET_XTND_REG32((void CYFAR *)(CYREG_BLE_BLERD_SY));
sy |=0x4000;
CY_SET_XTND_REG32((void CYFAR *)(CYREG_BLE_BLERD_CFG2), cfg2);
CY_SET_XTND_REG32((void CYFAR *)(CYREG_BLE_BLERD_CFGCTRL), cfgctrl);
CY_SET_XTND_REG32((void CYFAR *)(CYREG_BLE_BLERD_SY),sy);
}
#endif
And calling this after the BLE stack signals it is initialized seems to work to some extend but the output is "just a carrier frequency". Juggling with BLERD_CFG2 I've managed to get some different signals but not the one they want .. The folks here in Europe said we need to "output" pseudo random data or "PN9" so we get close to the picture the Chinese lab want to see. Now do I have to constantly modify BLERD_CFG2 to make it output this pseudo random data or is there a more "standard" way to achieve what the lab wants? What about CyBle_StartTransmitterTest is there more detailed documentation than the one in the datasheet?
Show LessI have tried adapting the "Sensorless FOC Motor Control" project of CY8CKIT-037 for the RoboDrive ILM25x04 and it is not working. An error occurs when the speed loop begins. I have followed the Kit Guide and the AN93637 document. I haven't found enough information about PI parameters tuning, but I have tried different values with no positive results.
The motor works fine with the "Sensorless BLDC Motor Control" project, and it has been used in other FOC applications.
I assume the only parameters that should be changed are M_RS, M_LS, M_POLES, M_RATED_SPEED, and M_BASEFREQUENCY. I would like to have more information about the PI controllers so I could change those parameters too. As stated in AN93637, the motor base frequency is Rated_Speed*Poles/(60*2).
The objective of this project is to replace the position estimation with an encoder, but the FOC should work on its own before introducing new components.
Thanks,
Andrés
Show LessI have recently started development on Cypress PSOC4 kit. I need device header file, where can I get it?
I am using cypress kit CY8CKIT-041-41XX
Show LessHi.all
I want to share external terminals with PSoC4 and use it.
The signals you want to share are UART and I2C signals.
So I switched the SCB block between UART and I2C and thought of using it.
If you use a program that switches SCB blocks between UART and I2C
I want it if it exists.
Thank you.
Show Less