PSoC™ 5, 3 & 1 Forum Discussions
Hi all,
So I've been working on this small project here and there for awhile and I started taking a more in depth look at some of the results I was getting, and I realized that the arm_cfft_q15.c wasn't returning what it should be.
If I had
q15_t ADC_samples[2048]
q15_t mag_of_fft [1024]
and ADC_samples where samples of a 1kHz wave sampled at 10Khz you would expect the resulting peaks to be at 1/5 pi and 9/5 pi.
when I do
arm_cfft_q15(&arm_cfft_SR_length1024, ADC_samples, 0,1);
which basically says compute the 1024 pt fft of ADC_samples, with the inverse fft bit false and the bit reversal bit true.
and
arm_cmplx_mag_q15(ADC_samples,mag_of_fft,1024);
which says compute the magnitude of the 1024 pt fft in ADC_samples
I get peaks at 2/5pi and at 8/5 pi?
I have confirmed my results in matlab as well. I have checked my ADC sampling, and just about everything I can think of.
I have also tried the example, but unfortunately they don't tell you the sampling rate and with the white noise they added in to their values it becomes pointless.
what am I doing wrong? I can't imagine arm has got it wrong. as my use is only for the relativity of results to each other and I can always just increase my ADC's clock, this isn't slowing me down, but it is very concerning that I may be mis-interpreting how one of these functions handles things.
Any help is greatly appreciated,
scarlson
Show LessI ues the wifi module RS-CY8C001-220X(based on redpine RS9110-N-11-22).The PSoC 3.2 and kit software 1.09 of wifi module are prepared. When running the demo application TestPSoC5_SPI,the creator says the components are old version and it still doesn't work after update the component(Project-->update component). Does anyone have the related experience?
Show LessHello Everyone
I want to work in the direction to port uClinux on PSoC5. As I am a novice in porting an operating system on a microcontroller, I need help to start it from the scratch. Everybody is most welcome to share whatever he/she knows about these concepts whether it be documents, links, books or explanations.
Thank you in advance.
Shaunak Vyas
Show LessDefect report: Extended ASCII prints chinese charaters, not US
sprintf(tstr,"%ldµV",ivolts);
LCD_PrintString(tstr);
should give "1234567µV"
but does give "1234567XYV"
Where X and Y are chinese characters see image
Show LessHi
Hi I am new to PSoC.
I want to read 3 pulses in a row and then set a pin High.
This is my code it does not work.
int main()
{
CyGlobalIntEnable;
UART_1_Start();
/* Place your initialization/startup code here (e.g. MyInst_Start()) */
/* CyGlobalIntEnable; */ /* Uncomment this line to enable global interrupts. */
for(;;) {
high = Pin_1_Read(); // reading the pin
while(count < 3)
{
count = count+high;
}
if(count > 3)
{
Setpin_Write(1);
}
else
Setpin_Write(0);
Hi Everyone,
Currently now i'm able to read two temperature values through ADC[i.e for 60 & 90 degree],
I'm reading this temperature by calculating values given in the NTC thermistor table.
But now i'm not able to read more than 2 temperatures,I have defined atleast 5 tempeartures,
but able to read only 2,Kindly suggest how to read multiple temperature values through ADC.
Regards,
Angiey
Show LessDefect report: sprintf() with floats just prints 0x00 with no error.
This error existed earlier with the nano lib, and the fix was to either:
a. Disable newlib-nano in the linker, or
b. Enable newlib-nano Float Formatting, or
c. Add "-u _printf_float" to the linker command line
Now, none of these fixes does anything anymore.
Show LessHI,
I have a problem with ADC - DAC conversion, I am getting a signal in the input of ADC and don't get any signal at the VDAC output
1. If there any option to check where is the failure? to check if the data passed the ADC ? I know how to check the analog parts but don't know hot to check the digital...
2. Any idea? wrong C code maybe?
Thanks
Show LessHi all
I want to interface Graphical LCD(ks0108 - RG12864J ) with FreeSoC2 (sparkfun electronics),is any component available in PSOC creator 3.2 ?,
it would be great if anybody share example project.
Show LessHi,
I use an SPI bus with different hardware components attached (sharing the same MISO/MOSI/SCLK hardware connections). Some of the components use CPHA=0, CPOL=0 others however use CPHA=1, CPOL=0. Is there a way to switch between both modes through a software API? Any other suggestions?
Best regards,
Kris
Show Less