I am trying to create a Monostable of 300mS than is triggered every second. It was easy enough when I worked with a 16 bit counter because a PWM counter (ms_Counter) with a period of 10000 (with a clock of 10KHz) and a Compare setting of 3000 was the perfect solution. Unfortunately I needed greater resolution for the period and since the component can only be configured for 16 bits, I went to a 24bit counter with a clock of 1MHz and a Period of 1000000 (OneSecCounter)which generated 1 Hz. I tried to get it to trigger (using the reload pin) a PWM counter with a period of 65000 and the Compare remained at 3000. I tried to get the TC of the 24 bit counter to reload the PWM counter as you can see in the attached drawing, but the monostable pulse occurred at a far longer period, perhaps the 65000 which would suggest that the reload does not work the way I think. I also tried the period at 4000 and the output was much faster than the desired 1 second.
According to the datasheet "For all devices, except PSoC 4000, PSoC 4100, PSoC 4200, it should only be used when the counter is not running.", so it seems that I can activate the Reload when it is running. I found the following in the data sheet a little confusing "In up and up/down counting modes, the counter is initialized with “0” (for PSoC 4000, PSoC 4100, PSoC 4200 devices).". Does that mean the reload should be active low? I tried both ways but it made no difference .
In the schematic you can see a divide by 2 D-FF to prove that the OneSecCounter is working. I also include the register settings
Does anyone have any idea what I can do generate the monostable pulse? Any help would be much appreciated!
I have severe problems getting USB peripheral of PSoC5 to work. Attached are schematics and layout of my board design.
Whatever I burn into MCU, nothing works...my application, any changes to it, USB-UART CDC example. This I believe rules out software problems. Device simply cannot be detected by computer at all. If I hard-reset USB data-line by applying external pull-up, unknown device is detected.
I have replaced MCU, ESD protection IC, series resistors, no change. I have sacrificed Cypress USB-BLE dongle's MCU, before unsoldering it was working fine. After moving to my board, it does not work.
If I disconnect computer, and burn firmware outputting clock on USB data-lines, I do not see clean square-wave (impedance mismatch to scope probe?), but I can definitively see correct frequency.
Now my question, what is happening there? I need this board to work correctly ASAP, but I am running out of ideas what to check.
Thanks in advance,
I try to use Charge Pump that can get in the Paper(AN60580)
but there is no spec of current.
so i ask to you, How much current does Charge Pump supply?
SIO sink current is 25mA, therefore maybe 25mA is maximum current.
is it true?
And if you know, how increse maximum current, please reply.
Thank you.Show Less
I recently looking into the 4700S series, but i found that there are not much code example for this series, only 8 of them.
I tried to follow those examples from PSoC4 such as 4200 series etc. but they are significantly different now.
Is there any resources you can share?
The way Cypress update or extend your component library is quite hard to do the sustaining process. All the functions and components are part specific, which is not quite user friendly, just my opinion.
Anyway, please see if you can share any helpful tips. Thanks!
I have CYBT-353027-EVAL and gonna connect codec to it to make self-made CYW920721B2EVK-02. I like CYBT-353027 for it small dimensions and functionality. In the WICED-Studio it is a A2DP Sink example for CYBT-353027 but in ModusToolbox there is no such example for my board. In CYBT-353027 datasheet it is written that it can be a BT Classic Audio device, not only BLE. I selected CYW920721B2EVK-02 in ProjectCreator and generated the project. Now I would like to change files in generated project to make it suitable for my EVAL to work with them in ModusToolbox.
What are this changes in generated files? Thanks!
planform: IMX8MM DDR4 EVK
Kernel:Linux imx8mmevk 5.4.47-lts-lf-5.4.y+g88b2efd7d692 #1 SMP PREEMPT Tue Sep 28 02:56:42 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
1.tar zxvf cypress-firmware*.tar.gz
2.build ko and insmod that.
3.show some error
[ 39.203712] brcmfmac: brcmf_fw_alloc_request: using cypress/cyfmac43455-sdio for chip BCM4345/6
[ 39.213195] usbcore: registered new interface driver brcmfmac
root@imx8mmevk:~/driver_5.4# [ 99.339971] brcmfmac: brcmf_fw_request_firmware: no board-specific nvram available (err=-11), device will use cypress/cyfmac43455-sdio.txt
[ 99.354189] brcmfmac mmc0:0001:1: Direct firmware load for cypress/cyfmac43455-sdio.txt failed with error -2
[ 99.364115] brcmfmac mmc0:0001:1: Falling back to sysfs fallback for: cypress/cyfmac43455-sdio.txt
[ 161.787139] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
The attached file is log and dmesg
Is he missing brcmfmac43455-sdio.txt ? Can it be provided? Could you help to bring up wifi ,thanks
I have a fresh install of ModusToolbox 2.4 on my Mac running Big Sur OS. I did a git pull of the Amazon FreeRTOS project and based on AWS tutorial info, I imported the aws_demos project into my running IDE.
I get an error in the console almost immediately:
10:37:00 **** Build of configuration Debug for project aws_demos **** /Applications/ModusToolbox/tools_2.4/modus-shell/bin/make CY_MAKE_IDE=eclipse CY_IDE_TOOLS_DIR=/Applications/ModusToolbox/tools_2.4 CY_IDE_BT_TOOLS_DIR= -j15 all Tools Directory: /Applications/ModusToolbox/tools_2.4 INFO: The path '../../../../../vendors/cypress/MTB/psoc6/psoc6make' set for CY_BASELIB_PATH does not exist. Attempting to use BSP provided path instead Makefile:187: ../../../../../projects/cypress/make_support/afr.mk: Operation not permitted /Applications/ModusToolbox/tools_2.4/make/startex.mk:398: *** Build support for the target device not found. Run "make getlibs" to ensure all required build and code dependencies are present.. Stop. "/Applications/ModusToolbox/tools_2.4/modus-shell/bin/make CY_MAKE_IDE=eclipse CY_IDE_TOOLS_DIR=/Applications/ModusToolbox/tools_2.4 CY_IDE_BT_TOOLS_DIR= -j15 all" terminated with exit code 2. Build might be incomplete. 10:37:00 Build Failed. 2 errors, 0 warnings. (took 159ms)
I can't understand the source of this error.
Any help appreciated.Show Less
I have a use case where 2 central devices need to connect to one peripheral. I am using psoc6 as a peripheral and phone as central devices.
The problem I see is that when one central device is connected to psoc6, the other central device does not discover the peripheral. I have increased the Max number of ble connection to 2 in BT configurator, but not able to connect two devices.
I am using 'BLE_Battery_Level_FreeRTOS' example and just increased the Max number of ble connection to 2. If I connect one phone via 'CYSmart' app, cysmart app on another phone does not show the peripheral in the list.
Is there anything additional thing needed to establish connection other than increasing the Max number of BLE connections in BT configurator?
Kit used: CYCKIT-062-BLE
On my CX3 board, the USBBulkSourceSink firmware example enumerates correctly, whether my board is is connected to a USB 3.0 or 3.2 socket.
However, when I download my own firmware onto the board, then it enumerates correctly when connected to the 30 socket, but not the 3.2 socket.
Is there something specific the firmware needs to do to allow it to enumerate correctly when connected to a USB 3.2 socket?
Due to lack of stock CY8C6247BZI-D34, new boards came out with CY8C6247BZI-D54 and am figuring out firmware compatibility, as by default JTAG ID is different, and cyacd2 also fails.
From the data-sheet it looks like the -D54 brings the crypto block in addition to what -D34 has, however hex file is different all over when recompiled for D54.
So I wonder do you think the same firmware can run on both CPU (and not using crypto at all) or there are more "fine details" making this impossible?