PSoC™ 4 Forum Discussions
1) need to know lowest current possible in STOP mode for 3V supply, 3/6 Mhz clock for CYBL10X6X
2)for the same family need to know the fastest time period from shortest POR (power on reset) pulse (1usec in data sheet) until the first line in application code starts running (please specify if we need to do something special in order to do it the fastest way possible)
Thanks, Efri
Show LessHello,
I'm using PRoC BLE module on CY8CKIT-042-BLE Pioneer Kit.
I have all day searched for decent UART Interrupt example but without success. All I found were cases where UART was used for debugging purposes, or USB-UART bridges... I want to utilize UART component as a communication path to my microcontroller.
Basically, I need UART parser on input data which will raise an interrupt. I found similar example but with UART component v2.50. In my case I can only use UART SCB component (v3.50), but it's different, command are different and investigating so much time in basic UART is now something I haven't time.
Is there a similar project out there that could serve as a good starting point?
Thanks
Show LessHello,
I am using a custom event handler to send 2 bytes of data. How is this typically done?
Here are the things I've done: the custom characteristic in the BLE component in the TopDesign file is sent to send a uint16 value and I have a function that sends a uint16 value. I am having trouble assigning the handle (where do I change this to point to a uint16 value?) to the actual data I'm sending.
Show LessA requirement need to connect to 2 Peripheral/server at the same time, without disconnecting one and another.
Does cypress protocol support this?
I checked the Heart Rate Service, and do find some code record the peripheral device array.
But can't let this connect to two peripheral at the same time.
Anyone has the experience for this requirement?
Show LessI want to program the CY8C4013LQI-411 using the 10-Pin connector from the MiniProg3. Which pins should I use? The main confusion is that the CY8C4013LQI-411 does not include an XRES pin.
Show LessHey folks,
I am trying to extract data out of a DHT11 Temperature sensor. Can you tell me whether there exists an example project or a library?
Trying to write it myself wasn't successful yet...
Show LessI'm sending temperature data using DieTemp over a Custom Event bluetooth connection. I have generated the same process for sending CapSense proximity data but it seems that when I click "Notify" on the CySmart mobile app I am only able to see the temperature data. Is there a sequencing issue? Is the stack busy sending temperature data?
Show LessHi All
I would like to know the User SFlash base address and row size for a CY8C4248LQI-BL483 device.
I am currently using the CY8C4247LQI-BL483 which has the following:
USER_SFLASH_BASE_ADDRESS (0x0FFFF200u)
USER_SFLASH_ROW_SIZE (128u)
Also where is this information defined, as I have spent quite along time looking for it without success.
Thanks
John
Show LessHi,
The PSoC is acting as an I2C slave. When new data is received via Bluetooth the PSoC raises a pin, alterting the master that data is available. When the I2C read by the master is complete the PSoC sets the pin low.
My main loop:
for(;;)
{
handleComs();
/* Process BLE Events. This generates events in the callback function */
CyBle_ProcessEvents();
/* To achieve low power in the device */
LowPowerImplementation();
}
This is part of the BLE event handler where the interrupt pin is set high (active) to indicate new data was received via BLE:
case CYBLE_EVT_GATTS_WRITE_REQ:
/* This event is generated when the connected Central */
/* device sends a Write request. */
/* The parameter ‘eventParam’ contains the data written */
/* Extract the Write data sent by Client */
wrReqParam = (CYBLE_GATTS_WRITE_REQ_PARAM_T *) eventParam;
/* If the attribute handle of the characteristic written to
* is equal to that of PX Config characteristic, then extract
* the PX Config data */
if(CYBLE_PX_CONFIG_PX_CONFIG_CONTROL_CHAR_HANDLE ==
wrReqParam->handleValPair.attrHandle)
{
/* Store data in local array */
for(i=0;i<PX_CONFIG_DATA_SIZE;i++)
{
pxConfigData = wrReqParam->handleValPair.value.val;
i2cReadBuffer = wrReqParam->handleValPair.value.val;
}
/* Update the GATT DB for PX Config read characteristics*/
UpdatePxConfigcharacteristic(pxConfigData,
sizeof(pxConfigData),
CYBLE_PX_CONFIG_PX_CONFIG_CONTROL_CHAR_HANDLE);
}
/* Send the response to the write request received. */
CyBle_GattsWriteRsp(cyBle_connHandle);
BLE_INT_Write(1); //Set the PX Interrupt pin active
break;
.....
In handleComs, this is where the interrupt pin is set low (cleared) after the master read via I2C:
/* Read complete: expose buffer to master */
/*This is a READ BY THE Master of the BLE */
if (0u != (I2C_Slave_I2CSlaveStatus() & I2C_Slave_I2C_SSTAT_RD_CMPLT))
{
BLE_INT_Write(0); //Set the Interrupt pin inactive
/* Clear slave read buffer and status */
I2C_Slave_I2CSlaveClearReadBuf(); //just sets the read index to zero
(void) I2C_Slave_I2CSlaveClearReadStatus();
}
When I am debugging this works great. The BLE receives data, sets the pin high, the master reads, and the BLE sets the pin low. When I am NOT running the debugger the interrupt pin never gets set low,
Ideas?
Thanks
Rich
Show LessThe CyBle_EnterLPM() return CYBLE_LP_MODE_T: The actual power mode that BLE stack is now set to.
and CyBle_GetBleSsState() return CYBLE_BLESS_STATE_T current operational mode.
which function returns the state of BLESS?
Show Less