PSoC™ 4 Forum Discussions
I built some simple sensors of 4 buttons in CSD mode, and have interfaced to to the CY8CKIT-145-40XX.
However when I probe the sensor pads after programming the boards I don't see any signals on the scope.
int main()
{
/* Enable Global interrupts for CapSense operation */
CyGlobalIntEnable;
/* Start EZI2C block */
EZI2C_Start();
/* Set up communication data buffer to CapSense data structure to
expose to I2C master at primary slave address request. */
EZI2C_EzI2CSetBuffer1(sizeof(CapSense_ADC_dsRam), sizeof(CapSense_ADC_dsRam),
(uint8 *)&CapSense_ADC_dsRam);
/* Start UART block */
UART_Start();
/* Set LED brightness to zero */
LED_CONTROL_WriteCompare(PWM_MIN);
/* Start PWM block */
LED_CONTROL_Start();
/* Start CapSense_ADC component */
CapSense_ADC_Start();
/* Scan the CapSense sensor */
CapSense_ADC_ScanAllWidgets();
/* Set the next scan state to ADC to perform voltage measurement */
scanState = STATE_ADC;
for(;;)
{
/* Initiate the CapSense or ADC scan only when previous
CapSense or ADC process is completed */
if((CapSense_ADC_NOT_BUSY == CapSense_ADC_IsBusy()) && (CapSense_ADC_AdcSTATUS_IDLE == CapSense_ADC_AdcIsBusy()))
{
/* If scan state is CapSense, initiate CapSense scan and
process last cycle ADC data
*/
if(scanState == STATE_CAPSENSE)
{
/* Update CapSense parameters set via CapSense Tuner */
CapSense_ADC_RunTuner();
/* Scan configured sensor */
CapSense_ADC_ScanAllWidgets();
/* Read the measured voltage value from last ADC cycle */
mVolts = CapSense_ADC_AdcGetResult_mVolts(CapSense_ADC_AdcCHANNEL_0);
/* Control LED brightness depending on the input voltage value and shows
ADC conversion value on hyperterminal */
ADC_DisplayState();
/* Configure next scan state to ADC to perform input voltage measurement */
scanState = STATE_ADC;
}
else if (scanState == STATE_ADC)
{
/* Start an ADC Conversion conversion */
CapSense_ADC_AdcStartConvert(CapSense_ADC_AdcCHANNEL_0);
/* Process previous cycle CapSense Data */
CapSense_ADC_ProcessAllWidgets();
/* Set variable to scan CapSense sensor in the next cycle */
scanState = STATE_CAPSENSE;
}
}
/* Delay added to sample input voltage every 100 milliseconds */
CyDelay(100);
}
}
My main file is as above, I used it from a sample project and modified it to my minimal needs?
Is there any init line that I'm missing from the above?
Show LessHi Sir ,
Now I have a problem in installation of psoc programmer in Win 10. The version of Psoc programmer is 3.28.
But in fact , the version of .NET Framework is 4.5 , so I can not install .NET Framework 3.5 .
How to solve the problem?
Thanks 。
Show LessHello
How do I change the Vref on the SAR ADC during run time? I'm using single ended configuration with VSS at negative Vinput.
thank you
Shawn
Show LessHi SIr,
我查看datasheet发现16pin,8pin的芯片没有引出reset脚出来,只有24pin以上的才有XRES 。
那么对于16pin的芯片,烧录的时候,是否只需要接VCC,GND,SWD_CLK,SWD_Data就可以?
https://community.cypress.com/thread/14818?q=psoc4014%2016%20pin
根据上面的讨论,如果是通过miniprog3烧录,可能需要选择Power Cycle,但是我通常都是通过Pioneer kit烧录,只能默认是Reset,那么这样可以给16pin的芯片烧录吗?
Thanks,
Leo
Show LessI am using the CY8C4247AZI-M485 on a CAN bus project. To use the internal clock to drive a CAN bus the WCO must be enabled and used to trim IMO. However when I trim IMO with WCO I cannot get a serial port UART to work. I simplified my project to just have one UART to talk to a terminal. Everything works fine as long as "Trim" on IMO is set to none. If I set the trim with WCO the UART no longer works. I have tried several baud rates and using the UART with and without "clock from terminal" selected. I make sure that the actual baud rate of the component is within less than 2.5% of the baud rate of the display terminal. In all settings just switching trim from "WCO" to "none" allows the UART to write to the terminal. This wouldn't be a problem except that the next step of the project requires the addition of a CAN bus component which will require WCO trim. Thoughts? Things to try?
Glen
Show LessHi Friends,
I've CY8CKIT-042 Pioneer Kit, I tried to interface RFID Reader RC522 via SPI.
In this, I need to configure my PSoC 4 as an SPI Master Receiver, I tried by modifying the demo example code, SCB_SpiCommMaster, but I didn't succeed.
Can anyone help by giving me a way where I can get a video or demo example code for PSoC 4 as an SPI Master Receiver?
Chinmay
Show LessHi
I'd like to use the pattern shown below to realize single click, slide up and down.
There are 4 sensors in a line. CapSense needs to recognize up and down directions.
Could PSoC 4000 realize the functions ?
Thanks.
BR
Grace
Show LessHello,
I found that the following Declaration ID was registered in the Bluetooth launch studio.
-Upgraded Declaration ID: U047134
https://launchstudio.bluetooth.com/ListingDetails/91896
-Upgraded Declaration ID: U047234
https://launchstudio.bluetooth.com/ListingDetails/92177
Based on this information, I believe that v5.1 is supported by PSoC4BLE.
What do you think?
If yes, can I support by replacing PSoC Creator version or Component version?
Or will a new PSoC4BLE model number be added?
Best regards,
Kenji Takahashi
Show Less