PSoC™ 4 Forum Discussions
i want to make temp sense device which sense RTD temperature and thermocouple temperature. i show the example of psoc 3 and psoc5. They are using DELTA SIGMA ADC and psoc 4 has a SAR ADC. can SAR ADC work same as a DELTA SIGMA ADC??
Show LessHello,
I am in the process of developing communication between a Master device and a Slave device. In my Slave device code, I started off with having the I2C in the main() (polling). After several communication tests, I found that this is not desirable for my project. I then researched on I2C interrupt driven. The code I have attached is currently I2C interrupt driven but may not be implemented correctly. I have found results where my devices "hang" and don't respond to a command. I want to make sure that the slave receives the entire message from the Master, executes the command, and can safely receive the next command. Any help is appreciated.
Thank you,
Rick
Show LessOK, so this might seem like a pretty basic level question, but I'm a bit of a newbie.
I have two Low Power Comparators in my design, and in order for these to kick my CPU out of DeepSleep, have these linked to a Global Signal component configured with a combined Low Power Comparator interrupt.
Where I'm having trouble is in determining which of the two LPC's has triggered the interrupt so that I can direct my ISR code to undertake the appropriate task.
I thought a simple "if" statement, using the GetInterruptSource() API, but I'm not actually sure what this API returns and so I'm not sure how to check it and see which of the two LPC's has triggered my interrupt.
Can anyone help me understand how to go about this? I may not actually be approaching this from the correct angle, so if you're sitting here reading this thinking "hmmm, you're making life difficult for yourself there pal!", feel free to gently steer me in the correct direction
Cheers,
Mike
Show LessDear's
I'm having a problem with building my project. Have the following error code
Build error: 'CapSense_LINEARSLIDER0_LS' undeclared (first use in this function)
Build error: The command 'arm-none-eabi-gcc.exe' failed with exit code '1'.
kindly tell me how to solve this error
thank you
Rajasekar
Show LessHello!!!
I have a problem to store a data in memory PSoC . My code is as follows:
uint8 datos [1 ]
.......
datos [ 0] = WriteRequestedParameter- > handleValPair.value.val [ 0];
// Call the function to save
Save_memory ( & datos [ 0] , sizeof (datos), CYBLE_BMP180_PRESSURE_CHAR_HANDLE ) ;
//Function Save
void Save_memory ( uint8 * Data, len uint8 , uint16 attrHandle )
{
CYBLE_GATT_HANDLE_VALUE_PAIR_T datos_a_escribir ;
datos_a_escribir.attrHandle = attrHandle ;
datos_a_escribir.value.val = Data ;
datos_a_escribir.value.len = len ;
CyBle_GattsWriteAttributeValue(&datos_a_escribir,0,&cyBle_connHandle,CYBLE_GATT_DB_LOCALLY_INITIATED);
}
If such datos [ 0] contains 48 , I stored in memory 30 and not know why.
- & Are wrong?
- Where I have to put them?
- datos [ ] array has to be a mandatory or may be only uint8 datos ;?
Hi,
I use DieTemp for information of temperature. The result of the api CountsTo_Celsius is not the same when i modify the sample rate. With the sample rate minimun i have 29°C and with the sample rate max i have 14°C. Why the temperature varies depending on the sample rate?
Thanks,
Eric
Show LessHello,
I am establishing communication between PROC BLE as a central device and PSOC BLE as a peripheral device. All events upto CYBLE_EVT_GATTC_DISCOVERY_COMPLETE are generated and fine i.e. connection is established and GATT server is discovered.
Now as I have the service UUID I am using function CyBle_GattcDiscoverPrimaryServiceByUuid(cyBle_connHandle,uuid) in which uuid is a structure of type CYBLE_GATT_VALUE_T .
The structure contains pointer to array of uuid. I found these two ways to assign the arrays.
uint8 point[4]={0xAu,0x0u,0x0u,0x0u } ; point[0]='A';point[1]='0';point[2]='0';point[3]='0';
Which one is correct ? Service uuid at the server is A000.
Also after calling this function CYBLE_EVT_GATTC_FIND_BY_TYPE_VALUE_RSP event is not generating. Directly ATTRIBUTE_NOT_FOUND error code is generated which signifies completion of process. I am unable to get the event parameters from CYBLE_EVT_GATTC_FIND_BY_TYPE_VALUE_RSP as it is not generated by BLE .
What may be the possible faults ?
Thanks.
Show LessNot sure if this is the right place to ask. I am interested in the CapSense Gesture offered by CYBL10563, but I don't seem to find the information in the design guideline for a "touch pad". Can anyone point me to an app note or something?
Thanks.
Show LessHi Guys,
I was going through the datasheet of PSoC 4 BLE - CY8C4248. For my application , I need 12 analog inputs ( 0 - 5V range) which i need to measure/sample through the SAR ADC. Timing is not so crucial, so I can afford to serially scan all the channels. I see that there is a SARMUX, but it seems to be a hardware sequencer for 8 channels. Is it possible to get 4 more or should I go for an external mux?
Secondly, I need 6 PWM channels working simultaneously with different duty cycles. I see that there are only 4 fixed timers. Can i use the UDB to create more PWM channels?
I am using PSoC 4 BLE, since i need the above two features along with BLE.
Is all above possible?
Regards.
Show LessWe have a system based on a FX3, and we need to add bluetooth functionality.
What would be the most compact solution for us? Ideally, we would like to have the FX3 combined with some sort of EZBLE™-PRoC module to keep things small and simple.
Show Less