PSoC™ 5, 3 & 1 Forum Discussions
Hi,
I am using a filter in PSOC 5, but I am unable to run/build it (i am not using a DMA).
the console says 'undefined reference to `Filter_Write24''
Filter_1_Start();
Filter_Write24(Filter_CHANNEL_A,ADC_sampleValue);
where ADC_sampleValue is a 32 bit uint, and Filter_CHANNEL_A is a uint8 type(how to set this?, ive only declared the variable as a uint8 type), and i have included the following header files:
#include <device.h>
#include "stdio.h"
#include "stdlib.h"
Show Less
When non synchronous signals or signals which are not actual clocks are routed as datapath clock, the synthesizer would throw an error telling that, it has to get through the clk enable block to be routed appropriately. What precisely needs to be done is the following,
There is an instance in which we can make the sync mode false and put in that clock signal as an input and take the asynchronous clock as output. That is precisely done below.
Now, we have to wire the a_clk to the datapath.
The synthesizer would yet throw a warning telling us that an asyncronous path exist. We can ignore that warning, because that is what we want:-).
cy_psoc5_udb_clock_enable_v1_0
#(.sync_mode(`FALSE))
PrcClkEn
(
.clock_in(clk),
.enable(1'b1),
.clock_out(a_clk)
);
Regards, Rahul Ram
Show Less
When non synchronous signals or signals which are not actual clocks are routed as datapath clock, the synthesizer would throw an error telling that, it has to get through the clk enable block to be routed appropriately. What precisely needs to be done is the following,
There is an instance in which we can make the sync mode false and put in that clock signal as an input and take the asynchronous clock as output. That is precisely done below.
Now, we have to wire the a_clk to the datapath.
The synthesizer would yet throw a warning telling us that an asyncronous path exist. We can ignore that warning, because that is what we want:-).
cy_psoc3_udb_clock_enable_v1_0
#(.sync_mode(`FALSE))
PrcClkEn
(
.clock_in(clk),
.enable(1'b1),
.clock_out(a_clk)
);
Regards, Rahul Ram
Show LessHi, i have a problem with a opamp:
when i don't starting the amp with "opam_start();" in my initialization function there's no problem and it works fine,
but if i do including the "opam_start();" the amp don't works. Which components do i have to start explicit with..._start() and which starts automatically?
Thank you
Im using the Creator 2.1 Pack 4.
Show Less最近在使用cyrf6936,不过在使用的过程中遇到了一些问题。
数据手册上说设定RX GO后,在其未清零前就不能重定设定,我不知道如果重新设定了会出什么问题?
还有那比如我开始对RX_CTRL_ADR写入0X93,当出现中断后(已收到>8个数据时),我能够再不影响接
收时对RX_CTRL_ADR重新写入0X83吗?我是个中国朋友,希望有人能看懂, 为我解答。Thank you!!
Show LessHi to all,
Can anybody tell me what are the necessary modifications to implement pulse oximeter on psoc 3
CY8C3866XAI-040ES2. Here i am attaching the minimal of the oximeter which was done on psoc 1 an example project i got .
Show LessSharing this insightful blog post by Mark Hastings on the application note AN69133.
The WaveDAC8 component and application note (AN69133) was released about a year ago. I found that many people see the title Easy Waveform Generation with the WaveDAC8 Component and think that it just generates a simple waveform. The component is far more flexible than that. The application note AN69133 contains four example projects to show the flexibility and ease of use. Granted the first project generates a simple sine wave but the other three projects go further.
The second project, 2_WaveDAC8_TwoWaves shows how you can alternate between two waveforms and easily switch right at the end of each wave. The project schematic is rather simple, and the source code can t get much simpler.
Project source code.
#include<device.h>
void main()
{
/* Initialize WaveDAC8 */
WaveDAC8_1_Start();
for(;;); /* Loop forever */
}
This is the waveform output, notice it is not just a simple sinewave.
The third project "3_WaveDAC8_UART_FSL" shows how to generate a simple FSK output when you combine the WaveDAC8 and UART components. Note the simplicity of the schematic below. By changing the two clocks you can generate any two frequencies you want.
The scope screen shot below shows the output of the UART and the WaveDAC8 output.
Again the code can t get much simpler to send out Hello World .
#include<device.h>
void main()
{
/* Initialize WaveDAC8 */
WaveDAC8_1_Start();
UART_1_Start(); /* Initialize UART */
Clock_1_Start(); /* Start both clocks */
Clock_2_Start();
for(;;)
{
/* Send "Hello World" */
UART_1_PutString((uint8 *)"Hello World");
CyDelay(250); /* Wait 500 mSec */
CyDelay(250);
}
}
The forth project was probably the most fun. Who doesn t enjoy dialing their phone with their own custom made PSoC controlled DTMF dialer. This project used two WaveDAC8 components, a couple of counters, an opamp to buffer the DAC outputs, and a single clock.
This project demonstrates another cool feature of PSoC. Since the WaveDAC8 component uses standard internal DACs to generate the output, connecting the two DAC outputs together is not a problem. When the DAC is in the voltage DAC mode, it is simply a current DAC with an internal resistor. Now the coolest thing about this project is that it gives you a good chance to use that FFT feature in your digital scope. I had the DTMF dialer project dial the sequence 159D which causes all of the eight tones to be exercised. Using the Tek MSO 2024 FFT mode I can see the frequency spectrum of the output, cool eh?
You can find the full application note, example projects, and WaveDAC8 component library on the AN69133 Application Note web page. The application note contains details about the design of the WaveDAC8 and information on sampling theory.
So just remember, although the WaveDAC8 maybe pretty, it has some brains as well. Since it does all it's work with DMA, it does not require any of the valuable PSoC 3 or PSoC 5 CPU cycles.
Show LessHello Japanese Readers
We have translated one more PSoC 1 Application Note in Japanese. Please download "AN2094 - PSoC® 1 - Getting Started with GPIO App Note" from the link http://www.cypress.com/?rID=2900. I hope you enjoy reading this Application Note.
If you need a specific Application Note to be translated, please send us a note at arvi@cypress.com and we would certainly add it to our translation plan for this year.
Best Regards
Anshul
Show Less