PSoC™ 6 Forum Discussions
Hello everyone,
I am currently in need of a 30-channel ADC with a 1 MSps sampling rate for my application. While I am willing to decrease the samples per second slightly, I would prefer to have it operate at 1 MSps. I came across an article (https://www.embedded.com/sampling-a-16-channel-sar-with-an-8-channel-programmable-soc/?unapproved=75...) that sparked my interest.
Since the availability of the 1x SAR PSoC6 is better than the 2x SAR PSoC6, I am curious whether following the example in the article would result in the 30-channel ADC that I require. However, as a newcomer to the PSoC family, I would appreciate any input as I am unable to try this on my own.
I have examined the demo board CY8CPROTO-063-BLE, which utilizes the CY8C6347BZI-BLD53 and has the necessary universal data blocks (UDBs) as well as 1x SAR.
Any feedback would be greatly appreciated.
Show LessHi all,
I am using PSoC62S2 with CY8CKIT-028-TFT shield. There is a feature called ambient light sensor on the CY8CKIT-028-TFT board, and I would like to use it. I found this repository https://github.com/Infineon/sensor-light#quick-start , but the code inside it does not work in my case. I keep getting "Info : dropped 'gdb' connection" and "Break at address "0x190" with no debug information available, or outside of program code.". I am using "Run KitProg3_MiniProg4". I guess there is something wrong with the light sensor pin since it only printed out "start" and "enter loop". Does anyone know which pin should I use?
Here is my current code:
#include "cyhal.h"
#include "cybsp.h"
#include "mtb_light_sensor.h"
#include "cy_retarget_io.h"
#define LIGHT_SENSOR_PIN (CYBSP_A0)
cyhal_adc_t adc;
mtb_light_sensor_t light_sensor;
int main(void)
{
cy_rslt_t rslt;
rslt = cybsp_init();
CY_ASSERT(rslt == CY_RSLT_SUCCESS);
rslt = cy_retarget_io_init(CYBSP_DEBUG_UART_TX, CYBSP_DEBUG_UART_RX,
CY_RETARGET_IO_BAUDRATE);
CY_ASSERT(rslt == CY_RSLT_SUCCESS);
rslt = cyhal_adc_init(&adc, LIGHT_SENSOR_PIN, NULL);
CY_ASSERT(rslt == CY_RSLT_SUCCESS);
rslt = mtb_light_sensor_init(&light_sensor, &adc, LIGHT_SENSOR_PIN);
CY_ASSERT(rslt == CY_RSLT_SUCCESS);
printf("start\n");
for(;;) {
printf("enter loop\n");
uint8_t light = mtb_light_sensor_light_level(&light_sensor);
printf("light level: %d\n",light);
cyhal_system_delay_ms(1000);
}
}
Thanks a lot!
Show LessHi there,
For my application, I would need a 30-channel ADC with 1 MSps. I can slightly decrease the samples/s but I would love to see it work 1 MSps.
This article caught my attention: https://www.embedded.com/sampling-a-16-channel-sar-with-an-8-channel-programmable-soc/?unapproved=7517&moderation-hash=7596ddd3fcdb121c9b03821d2f10d360#comment-7517
As the availability of 1x SAR PSoC6 is better than the 2x SAR PSoC6, I wondered if following the above example would get me the 30-channel ADC I'm looking for. I'm rather new to the PSoC family, so I'm not really able to try it by myself without any input.
I checked the demo board CY8CPROTO-063-BLE which uses the CY8C6347BZI-BLD53 and this one has 1x SAR and also the required universal data blocks (UDBs).
Any thoughts are welcome.
Cheers.
Show LessI have create a BSP for my board and am trying to test it on PSOC6 CY8CKIT-062S2-43012, and the build was successful but when am trying to program my device its giving me the following error.
* The detected device does not match the configuration file in use.
* Flash programming will not work. Please use the "psoc6_2m.cfg"
* configuration file, or attach a kit that matches the configuration file.
am trying to upload simple hello world program into the board
Show Less
Xin chào các bạn!
Tôi đang xây dựng một chương trình điều khiển, trong đó tôi điều khiển thiết bị của mình thông qua ứng dụng di động. Mục đích của tôi chỉ là một điều khiển để bật hoặc tắt thiết bị được kết nối qua Bluetooth LE. Tuy nhiên, không hiểu sao tôi không làm được. Có ai có một ví dụ mẫu về điều này?
Cảm ơn!
I bought a CY8CPROTO-062-4343W, it has on board debugger KitProg3.
If I build our prototype board, what kinds of debugger will be used? Segger debugger is very expensive.
Show Less
HI,
I'm using CY8C6136FDI-F42 and battery charger IC.
PSoC6 is used as a USB device (Using Dp, Dn), and the battery charger IC is also using Dp, Dn (BC1.2).
The Dp, Dn pins are switched through a switching IC(DPDT Switch IC) to avoid collision.
However, I would like to remove the DPDT Switch IC for low cost.
Q1) Is it possible to set the Dp, Dn of the PSoC6 to floating as needed and then set to USB?
Q2) Is this a way to remove the Switch IC?
Thanks and Regards,
YS
Hi,
We are using secureblinky project as our base project and we are trying to use the HAL libraries but we are facing the issue in cyhal_spi_transfer api.
The procedure I am following is,
cyhal_spi_init to init the spi pins and to configure in master mode.
cyhal_spi_set_frequency to set the frequency at 10Mhz
cyhal_spi_transfer to send a stream of data
After the transfer API the system will hang and I am not able to see any output on the oscilloscope.
Kindly help me to resolve this.
Thanks
Deepak H M
Show Less
In the basic ADC example (clean example from New Application), how can I change the default GPIO from P10_0 as defined by VPLUS_CHANNEL_0 to another GPIO?
#define VPLUS_CHANNEL_0 (P10_0)
When I tried to reassign the GPIO for example to P9_2, the error message below is shown.
-----------------------------------------------------------
HAL: ADC using HAL
-----------------------------------------------------------
ADC initialization failed. Error: 67240192
In the Device Configurator, there is no initialization of P10_0 for the ADC. Is this hard coded somewhere?
Thanks
Gary
Show LessWhen I try to "export memory " it return a file filled with 0s, even like in the case below where I can see the register has different values.
Show Less