PSoC™ 4 Forum Discussions
Hi,
How can I use the SSD1309 display on PSoC 4 MCU? SSD1306. I couldn't run it with ssd1306 lib.
Hello,
When a power interruption occurs during Em_EEPROM_Write processing, the corresponding Row may be filled with 0xFF. In this state, Em_EEPROM_Init processing might not be returned after PSoC4 is restarted. I can't find any process in Em_EEPROM_Init that causes an infinite loop.
The configuration of EEPROM is as follows.
- Component v2.20
- Size: 64 bytes (actual size: 128 bytes)
- Redundant Copy: No
- Wear Level Factor: No
KBA228069 patch is not applied to the project of PSoC Creator yet. It mentions the FindLastWrittenRow function called in Em_EEPROM_Init. Will adding this patch avoid an infinite loop?
Best regards,
Show LessHello,
Trying to have CYBLE-222014 act as slave to an external MCU master. Using the example project I2C_BLE_Peripheral it takes data received and extracts it to the read buffer:
for(i=0;i<(wrReqParam->handleValPair.value.len);i++)
rdBuf[i] = wrReqParam->handleValPair.value.val[i];
How does an external master access this buffer/register? How to locate register address to access this buffer for external master to read from?
Any help is greatly appreciated!
Show LessHello
When PSoC operates as I2C master, SDA is stuck LOW by reset etc.
I know that this issue is solved if PSoC sends clocks.
But I2C specification has the following description.
==========================================
If not, then use the HW reset or cycle power to clear the bus.
==========================================
Does this mean that sending clocks may not improve it?
If user definitely want to improve this problem, does they need to use the HW reset or cycle power?
Best Regards.
Yutaka Matsubara
Show LessI'm attempting to read the current time, and the local time info, from the CTS of an iOS device everytime I connect to the iOS device (I then use this to update the time in a RTC IC on my hardware).
I'm having success reading the Current Time information, but not the Local Time Info.
I'm following a similar process for both sets of info, but only the Current Time info is coming through OK.
In my main loop, I make the following calls to read the two sets of info:
CyBle_CtscGetCharacteristicValue(cyBle_connHandle, CYBLE_CTS_CURRENT_TIME);
CyBle_CtscGetCharacteristicValue(cyBle_connHandle, CYBLE_CTS_LOCAL_TIME_INFO);
For the call to get the Current Time, it correctly returns the CYBLE_ERROR_OK result. But for the call to get the Local Time info, it seems to be returning CYBLE_ERROR_INVALID_OPERATION, and I can't work out what I'm doing wrong.
Can anyone
Show LessI have some code that is reading the CURRENT_TIME and LOCAL_TIME_INFO from a CTS. The CURRENT_TIME information is coming through in a format I can interpret and then transfer into my RTC, but the LOCAL_TIME_INFO isn't quite what I was expecting.
I am in the UTC+10 timezone, and we are currently on DST, so are effectively UTC+11. When I read the .timeZone and .dst information from the CTS, I get:
.timeZone = 40
.dst = 4
This is the code snippet I am using to read the LOCAL_TIME_INFO in my CTS Call Back function:
else if(timeAttribute->charIndex == CYBLE_CTS_LOCAL_TIME_INFO)
{
/* copy the local time info received from the time server to local data structure for RTC operation */
timeValue = timeAttribute->value;
memcpy(&localTimeInfo, timeValue->val, timeValue->len);
#ifdef DEBUG_RTC
WriteREM("Time Zone : %d, DST : %d\r\n", localTimeInfo.timeZone, localTimeInfo.dst);
#endif
timeSet = TRUE;
}
Should I be expecting .timeZone = 10 & .dst = 1? Or is there some further formatting I need to do on the LOCAL_TIME_INFO to get the correct information, so I can adjust the local time to UTC time
Thanks,
Mike
Show LessHello,
I'm working to a Project that has an USB connection configured as Self Powered.
I'll use CY8CKIT-149 to make a first Prototype.
In order to implement Self powered configuration, R7 and D1 will be removed.
Kitprog will be fed throug J6, PSoc and BLE module will be fed through J1 / J2.
My question is:
What happens if I switch off supply to CY8CKIT-149 while USB Cable remains connected to host?
Should I expect damages to Kitprog USB Interface?
Thanks,
Alfonso
Show LessHello, I'm refering Code example CE210291, Low Power One Button (CapSense, 4000S)
whether with the CY8CKIT-145-40xx or CY8C4025LQI-S411 Controller, the fastest possible adjustable loop/scan time is 20ms, no matter which time I set at parameter LOOP_TIME_FASTSCANMODE.
Why that?
Many thanks
Show Less
I am working on an application with a GSM modem interfaced to PSoC 4100S Plus through UART. I need to implement OTA firmware update over GSM interface via TCP or HTTP (depends on application). I have successfully tried UART bootloading and tested it using bootloader host application(same UART port as GSM). I am using CY8CKIT-149 (with CapSense sections broken).
The question is, how can send the same cycad file over a tcp connection or in other words, how to read the cyacd file and process it to send it over TCP -> UART -> Bootloader
Additional question - is there any way to exit bootloader after a specific time period if the data is not received, currently it seems to be in a infinite wait.
Show Less
For a project that needs "intelligent bitbanging" the PSoC for seems to be perfect. I'm evaluating following chain:
Pin => combinatorial logic 1 => status register => CPU processing => control register => combinatorial logic 2 => Pin
I connected the two pins externally and put an inverter as a minimal combinatorial logic 1 into the schematic. The registers/pins are set to transparent for minimal latency (I'll add synchronisation as appropriate later, that's just an experiment). Combinatorial logic 2 does not yet exist, it's a direct connection for now.
The code contains an unrolled loop like that (compiled from C):
ldrb r1, [r2]
uxtb r1, r1
strb r1, [r3]
ldrb r1, [r2]
uxtb r1, r1
strb r1, [r3]
or handwritten assembly:
ldrb r0, [r5]
strb r0, [r6]
ldrb r0, [r5]
strb r0, [r6]
This roundtrip takes approximately 11 cycles (230 ns) at 48 MHz, maybe 10 cycles plus propagation delay.
Is this correct? Where are the cycles needed?
Show Less