PSoC™ 4 Forum Discussions
Hi,
i want to generate pwm for diffrent %of duty cycle.
I know the formula of dutycycle is
dutycycle=100 x compare value/period.
But this formula is giving wrong results in som ecases.
For example.
i want to generate a dutycycle of 50% ,
then my settings are compare value=1,set period=2ms ,input fequency is 1000HZ .According to the formula it has to give 50% duty cycle.
But in the configuration window it shows the wavesorm of 70% .
so,please help me to resolve the issue
Thanks in advance.
Show LessTrying to interface digital mic with PSoC 4 and send decibel level to UART. The datasheet and examples are not geared to the PSoC 4 - i.e. no rx/tx DMA etc.
Video and datasheet www.cypress.com/
Example project but w/ PSoC 5LP www.element14.com/community/thread/28830/l/psoc-4-pioneer-kit-community-project102-usb-audio-using-the-psoc-5lp
I have available both a PDM mic as well as an i2c mic store.invensense.com/datasheets/invensense/INMP441.pdf and can use either. Just assuming the i2s mic will be easier?
One issue seems to be the clock - max audio sampling in the i2c - PSoC 4 seems to be 96kHZ while microphone min. is .5 MHz. Seems like this can't be right or I am missing something?
Any similar projects or guidance on the clock issue (or other thoughts) are much appreciated.
Show LessI have a fixed stack bootloader application that I built, but from time to time, would like to update the profile. I don't really need to update the BLE stack, so the memory price to implement a upgradeable stack is too high. I simply want to be able to add custom attributes/characteristics to the existing profile. My thought was that I could do that with a profile only BLE component in the bootloadable application and swap it in over the bootloader version when the bootloadable gets loaded?
Show LessHi,
This is my first time using both PSoC4 and PSoC creator so please bear in mind that I am a total beginner!
In my project I am using the two internal OpAmps which are routed to external pins. I made sure to use the pins allocated for the OpAmps. However when I compile I am given a "Failed to route" error.
I am sure I am missing something out. Any pointers in the right direction would be much appreciated.
I have attached the project in question.
Thanks,
Michael.
Show LessUsing EZ-BLE module (CYBLE-214009-00) , PSoC 4 with the pioneer board I have two pushbutton switches which I want my program to respond to when either has been pressed and held for 3-4 seconds. The response (for test purposes) should be that SW1 will toggle an output driving an LED and SW2 will do the same to another LED. If I program this code to the PSoC 4 without code for BLE operation installed, it works fine both when doing Debug and non-debug (program) operation. If I install code to allow BLE bonding when an iPhone or iPad is very close to the EZ-BLE module the switches still work properly when in Debug mode but not when "programmed" (non-debug mode).
Operation should be: when a PB is pressed and held a timer is started (set for a timeout of 3 seconds). If the button is held for more than the timeout period the timer initiates an interrupt at terminal count. The interrupt's ISR, based on a flag which indicates which button has been pressed, then toggles the pin driving the appropriate LED. Pressing and releasing the button before the timeout period is over simply stops the timer and nothing else happens.
In the situation when it's not operating properly, the first press of a button whether held or not does nothing to the LEDs and the ISR is not called. However, all subsequent presses cause immediate toggling of the LEDs without the required hold time. This despite the fact that nothing relating to BLE functions, such as bonding, has been done, except whatever the code itself does, no action on my part has been taken.
I'd sure be grateful for any advice anyone could give me on this. The (new) bundle is attached.
Thanks,
Dennis
Show LessPSoC4,PSoC5,PSoC6 can use J-LINK debugger and programmer?
Hi,
I have a gsm phone module outputting PCM audio on PCM_OUT, PCM_CLK(2.048MHz) and PCM_SYNC(8KHz).
Want to connect PCM signals to a BLE module for transmitting speech via bluetooth to a headset or other handsfree eqipment.
Is it possible with the CYBLE222005?
If not - which other BLE modules will do the job?
Regards
Viggo
Show LessHello
The customer has already done to save the SNR image files, but they are thinking that they would like to save data similar to the image waveform of SNR as a logging data. Please let us know If there is a method to save the logging data?
Best Regards,
Arai
Show Lesshello everybody,
I am using the CY8CKIT-040 ,now i can use the BCP to communicate with the CY8C4000 for IIC,
but now ,I want to play the secondary development with it,but i can not find how to use the library like “**.dll” to development my windows application,like this picture
can Cypress support the API or other mothod for help me to develop my windows,
In a word, I want to using the kit CY8CKIT-040 to develop a windows program ,and use its IIC to test my product with my windows program。
who can help me?
thanks!
Show Less