PSoC™ 6 Forum Discussions
The question is almost the same as in this other thread, but some moderator just blocked it and he said to me to open a new thread..., since I have to open a new thread, I will extend my question.
I'm trying to get ultrasonic sounds using SPH0641LU4H-1, according to the thread above linked, just changing the SINC_RATE parameter does the job, but I could not find the SINC_RATE parameter either in PCM_PDM example in ModusToolbox or PSoC creator. So...
1.- Where can I find this parameter?
2.- Which are the ranges of this parameter?
3.- Which PSoC 6 can I use to get ultrasonic sound from a PDM microphone since some of them seem limited at 24.000Hz?
Thanks.
Show LessThe PSoC 6 literature says these MCU's support "two PDM channels". (I assume this actually means the device support one PDM port, which can interface to two multiplexed PDM microphones. If I want to expand the number of microphones, is it possible to use one or more UDBs to add more PDM ports to a design?
The 6X family datasheet also specifies a maximum PDM clock frequency of 3.072 MHz (SID403), and maximum audio sample rate of 48 ksps (SID404). Typically a 3.072 MHz PDM clock rate would be used to enable ultrasonic mode on microphones like the SPH0641LU4H-1 enabling frequency response of up to 80 KHz! Can the PDM audio block provide a higher sample rate for ultrasonic sensing applications?
Show LessCan i clear the memory when i am done writing to it ?
I am trying to transmit data over several characteristics using the cy smart app and writing ascii values as strings(chars )..
All of my characteristics have the same length (32 bytes).
Problem is, when I copy the data from the memory writeReqParameter->handleValPair.value.val to a char array, i dont know how to clear the memory and therefor I will copy both old and new data to my char array, if my new trasmitted data is of shorter length.
How can i avoid this?
I have tried using a simple memset, but this makes the program crash.
Show LessI am trying to get a Microsoft Windows App to pair with a CYBLE-416045-02 module using pin confirmation. I can successfully pair with the module using CySmart, so I am pretty sure that I have the basics correct on the module side. But my windows app goes off the rails. Of course, one of the big differences is that CySmart goes through its custom BLE dongle, while the Windows app tries to use the PCs bluethooth system.
In the Windows app, I followed the guidance at Pair devices - UWP applications | Microsoft Docs and did the following:
DevicePairingKinds pk = DevicePairingKinds.ConfirmPinMatch;
DeviceInformation deviceInfo = btdev.DeviceInformation;
DeviceInformationPairing devicePairing = deviceInfo.Pairing;
DeviceInformationCustomPairing custom = devicePairing.Custom;
custom.PairingRequested += pairhandle;
DevicePairingResult result = await custom.PairAsync(pk);
custom.PairingRequested -= pairhandle;
But on the module side I get:
CY_BLE_EVT_GAP_AUTH_REQ: bdHandle=1, security=3, bonding=1, ekeySize=10, pairing=1, err=0
CY_BLE_EVT_GAP_SMP_NEGOTIATED_AUTH_INFO: bdHandle =1, security=3, bonding=1, ekeySize=10, pairing= 1, err=0
CY_BLE_EVT_GAP_AUTH_FAILED: bdHandle=1, securitye0, bonding=50, ekeySize=2, pairing= a, err=a
If I change the security levels in the module to not require pairing, all the rest of the system works as expected. I can connect, get the characteristics and read and write to them.
So, has anybody out there managed to pair with a Psoc 6 module from a windows app using ANY level of pairing? And if so, how did you do it?
Thanks,
Ed H.
Show LessHi Everyone,
I am currently programming on PSOC CY8C6137BZI-F54 . My majority work is for the analog DAC and current source. I tried making the schematic attached with this post. While building the code I receive the error mentioned below.
"Net "Net_261" is connected to analog mux "AMux_3" and analog mux "AMux_2", but it may connect to only one analog mux when it is an analog mux common connection."
Also I wanted to ask the analog multiplexer can also work as de-multiplexer? Please help me on this.
Show LessHi There,
I am using PSOC6 to communicate with a controller board over UART. I am using TXS 0104 between the PSOC6 micro and the RS422 driver. The message length is about 300 bytes sent every 100 milliseconds. The issue is every few messages I get extra bytes (1 to 3 bytes) the extra bytes are 0xFF.
Any Idea what what might be causing this behavior?
Show Less
Hello,
I'm a college student using a Cypress CY8CPROTO-063-BLE (PSoC6) board for a course, this is my first time working with this board. I was trying to use the board for the first time to run a Hello World example, and opened PSoC6 creator inside my Windows 10 VM, running on my MacBook.
PSoC6 creator said it expected a firmware of 1.01, while the board firmware was 1.05, and said to update through PSoC6 Programmer. Thus, I opened the programmer (while keeping the creator open, which I later learned I'm not supposed to do), and tried to updating firmware. The first few times I tried update, the VM software would prompt me as to whether I want to connect the board & bootloader to Mac or Windows, which would cause an error before the upgrade began, with a pop up saying the boot loader was not recognized. I then marked the prompt to always connect to Widows without asking, and tried updating again. This time, the update began successfully, with a green bar appearing, but then a pop up said the boottloader was not recognized again, and the update failed again.
After this, the board was no longer recognized by the programmer, and no longer appears in device manager. I've tried unplugging a number of times, restarting Windows on the VM, and even holding the reset button for ten seconds as was recommended somewhere. The device simply doesn't appear in device manager anymore (it appeared under USB as COM3 before the failed update). MacOS also doesn't recognize the device. Note that the orange status LED2 by the microUSB is still flashing quickly, as it was before the update failed, and the orange power LED1 is still solid. A green LED was on before and after the update failed, including when I was trying to fix this and tried to reset it, but right now while I am writing this post, that LED is now off for some reason.
I'm honestly very lost at the moment. I'm in touch with my professor regarding acquiring a new PSoC6 board, but if anyone knows how I could fix this, it would be extremely appreciated.
Show LessHi.
My project uses a PSoC 6 to drive an external ADC device. The ADC requires a clock source, and I'm using the PSoC 6 to generate that clock via a PLL and the one CLK_HFn clock source that can be connected to an external pin (CLK_HF5 on the CY8CPROTO-062-4343W). This works well, except that we also want to drive the PSoC 6 from an external VCTCXO clock source on EXTCLK.
When I enable EXTCLK, though, the Device Configurator will no longer allow me to select an output pin for my ADC clock.
Is it possible to have both an external clock input (on EXTCLK) and and external clock output in the same design?
Thanks,
-Nick
Show LessI connected a PDM Mic(IM69D120) with my PSoC6, I want to save the PCM data to RAM by DMA, and I use the sample code CE220762,
but I found when I cutoff the power supply of MIC, and there was no data on PDM Data line, but DMA could still get the data from RX_FIFO_RD,
Why the PDM data line no data but DMA can still get the data from RX_FIFO_RD?
Hardware:PSoC63
Software:CE220762 – PSoC 6 MCU PDM to I2S Example
Mic:infineon IM69D120
Show Less
Dear Cypress,
One of my customer has been developing their product using PSoC 6 (CY8C6136BZI-F14).
Their product will use both USB and I2S and they want to run CM4 as fast as possible.
To support Audio frequency of 48kHz and 44.1kHz, they are planning to feed 34.4064MHz to ECO.
They will generate 147.456MHz clock using PLL and for the USB clock they are planning to feed 48MHz to External Clock.
But when I tested with PSoC Creator, the maximum frequency I could feed to ECO was 33.3MHz.
Meantime in the data sheet the maximum frequency of ECO source is stated as 35MHz.
The customer also confirmed this using MTB 2.2.
But to stay in the safer side, they want to confirm/ask the following questions.
Question 1.
Can the customer feed 34.4064MHz as the source of ECO?
Or is/are there limitation that ECO can accept only up to 33.3MHz?
Question 2.
How much diffusion between I2S clock and USB Audio is allowed?
Can it be in the order of 0.1% or 0.01%?
Best Regards,
28-Oct-2020
Motoo Tanaka
Show Less