PSoC™ 6 Forum Discussions
Hello,
I try to run Bluetooth mouse example on CY8CPROTO-063-BLE, after change device by device selector in project, bluetooth works fine. I try to add capsense button using capsense example - it look that capsense doesn't work at all, nothing change in tuner as well as in program also it doesn't give any reaction on touch.
When I create new project and add capsense it works fine ( only difference I found is clock that for bluetooth example is 50Mhz and for Cap sense is 100MHz ( it defines maximum modulator frequency for 50Mhz is 25000KHz and for 100Mhz is 50000kHz)
Code I add to Bluetooth mouse hid example:
......
__enable_irq(); /* Enable global interrupts. */
EZI2C_Start(); /* Start EZI2C Component */
/*
* Set up communication and initialize data buffer to CapSense data structure
* to use Tuner application
*/
EZI2C_SetBuffer1((uint8_t *)&CapSense_dsRam,
sizeof(CapSense_dsRam),
sizeof(CapSense_dsRam));
CapSense_Start(); /* Initialize Component */
CapSense_ScanAllWidgets(); /* Scan all widgets */
/***************************************************************************
* Main polling loop
***************************************************************************/
while(1)
{
/* Do this only when a scan is done */
if(CapSense_NOT_BUSY == CapSense_IsBusy())
{
CapSense_ProcessAllWidgets(); /* Process all widgets */
CapSense_RunTuner(); /* To sync with Tuner application */
if (CapSense_IsAnyWidgetActive()) /* Scan result verification */
{
Cy_GPIO_Write(Advertising_LED_0_PORT, Advertising_LED_0_NUM, 1);
/* add custom tasks to execute when touch detected */
}
else
{
Cy_GPIO_Write(Advertising_LED_0_PORT, Advertising_LED_0_NUM, 0);
}
CapSense_ScanAllWidgets(); /* Start next scan */
}
.......
I will be very thankful for any suggestions
Show LessHello,
I need to create a square wave signal generator in the range of 1.5Mhz-1.8MHz, in resolution of 10KHz, by PSOC63
How do I do that ?
When I try to use the PWM timer I can't reach the frequency resolution I need.
I can set in the "TopDesign" HW configuration several clocks with the frequencies I need, but I can't change them by SW like I am expecting
What would be the best way to do that ?
THank,
Shy
Show Less
I’m using CYW9P62S1-43012EVB-01.
I'm thinking of communicating with a PC via UART.
Can PSoC5LP(KitProg) on the board support for this?
Please let me know if you have any methods or recommendations other
than UART.
Hello Cypress,
I am trying to use an SCB UART but it is very hard to find a suitable and free pin to connect to. For example P3.0 and P3.1 would be suitable, according to the device configurator. Yet, I cannot find P3.1 on the breakout board !
Can you please suggest suitable pins to utilize an SCB UART for an external RS232 connection ?
Any help is greatly appreciated.
Regards,
Stefan
Show LessHello,
I try to implement 2 alarms with the RTC component on the PSOC6,
My issue it's when I call 2 functions to Set the 2 different alarms :
rtcApiResult = Cy_RTC_SetAlarmDateAndTime(&alarm1,CY_RTC_ALARM_1);
rtcApiResult = Cy_RTC_SetAlarmDateAndTime(&alarm2,CY_RTC_ALARM_2);
I got the good return for the first function, but an error for the second (CY_RTC_INVALID_STATE)
If I put a CyDelay(1) between the 2 functions, I don't have any trouble
My question is : how to set the 2 alarms correctly (use the delay it's maybe not the good way to do it)
Thank you
Hello Cypress,
I get a CYHAL_UART_RSLT_ERR_INVALID_PIN error result from calling
/* Initialize the UART Block */
rslt = cyhal_uart_init(&uart_obj, CYBSP_UART1_TX, CYBSP_UART1_RX, CYPSP_UART1_CLK_HW, &uart_config);
if(rslt != CY_RSLT_SUCCESS)
{
handle_error();
}
The pins are named just like this in the Device Configurator. Seems like I am having trouble allocating the resources correctly.
Or there is some well hidden syntax when naming pins or clocks ?
Debugging gets me down to CYHAL_HWMGR_RSLT_ERR_INVALID from the CYHAL_HWMGR. I have made the P8_0 and
P8_1 pins available as they are used in the PSoC 6 WIFI-BT Pioneer Kit - had to remove a resistor and to add two 0Ohms as explained in the kit documentation.
Any help is appreciated.
Regards
Stefan
Show LessI'm trying to read continuous data from a UART proximity sensor using PSoC 6. I'm getting the data mixed with garbage on tera Term .I am not sure how to receive the data correctly . If anyone can also advise on interfacing Pmod based SPI and I2C sensors to PSoC 6
I will attach my code and the output and here is part of the sensor data sheet info:
The Pmod MAXSONAR communicates with the host board via the UART protocol, analog output, and PWM timing. The module requires 250 milliseconds to power up and then will perform a self-calibration if the Receive Data (RX) pin is left at floating or logic level high voltage. The calibration will take 49 ms, and after an additional 100 ms of waiting time, the module will be able to take measurement readings every 49 milliseconds.
The UART protocol is configured with a baud rate of 9600, 8 bits, no parity, and a single stop bit. When the RX pin is left floating or held at a logic level high voltage, 5 bytes will be sent out over the Transfer Data (TX) pin beginning with the capital ASCII character 'R', three ASCII digits representing the detected distance, and a carriage return character (ASCII character 13).
An analog signal representative of the measured distance of the object in front of the Pmod MAXSONAR may also be read. The output itself has nine bits of resolution, so with a power supply at 3.3V each inch is equivalent to ~6.4 mV. Users that are measuring the incoming analog signal with a popular 10-bit ADC will have to divide their measured value by 2 before calculating the reported distance.
The Pmod MAXSONAR also provides distance data through a pulse-width modulation signal. Every 147 uS that the pin is measured at a logic level high voltage state is equivalent to 1 inch away. If the signal is measured to be high for 2.205 milliseconds, then the detected object is 15 inches away from the front of the Pmod MAXSONAR. The maximum measured pulse time of 37.5 milliseconds indicates that there is no object within 255 inches of the Pmod.
Hello,
I'm trying to use CY8C6145LQI in Modus Toolbox. But I can't find device selection.
In the PSoC Creator, I was able to selet the target MCU family and then use the device selector in the Workspace Explorer window to change specific device.
Is there no device selector in the Modus Toolbox? How to create new project with CY8C6145?
Regards,
YS.
Show LessHi,
I am using Toshiba NAND flash with CY8CKIT-062S2-43012. I am using this flash for OTA using HTTP with the sample application "AnyCloud_OTA_Using_HTTPS". OTA is successful with the local mongoose server as mentioned in the application.
Now instead of local mongoose server my requirement is to use AWS. I have placed the bin file and ota_update.json job document in a bucket in S3 AWS and these files are made public. I want to download these via HTTP. Can you please guide me how to implement this.?
I modified the HTTP_SERVER (bucket_name.s3.amazonaws.com) and HTTP_SERVER_PORT (changed to 80) in file ota_app_config.h
Can you please guide me on this?
Thanks,
Binsy M S
Show Less