Quantcast
Channel: EngineerZone : Discussion List - All Communities
Viewing all 51060 articles
Browse latest View live

Fast Fourier Transform - FFT - CFFT - arm_cfft

$
0
0

Hi,

 

I try to use the fft code provided in the arm library. For the moment i only generate a sinus to test these codes but i already have an issue. Here is the code that i use to generate the sin :

 

int freqHz = 100;
int fsanpling = 4000;
float32_t result[512];

 

for(int j=0;j<256;j++){
result[j]=sin(2*3.1415*freqHz*j*1/fsampling);}

 

Then i apply the fft :

 

  arm_cfft_radix2_instance_f32 S[1];
  arm_cfft_radix2_init_f32(S,256,0,1);
  arm_cfft_radix2_f32(S,result);

 

The problem is that when i plot (with excel or Matlab) the output of the fft, i get the first spike at f=200Hz instead of 100Hz. And this for differents values of fsampling (Always over 2*fmax). However when i process the fft on Matlab with the sinus values obtained above (with the first code), the output is fine and i get the spike at the right position. So i guess the problem comes from the way i use the fft or configurate it. I tried with the radix4 and get the same problem.

 

If anybody has already used these codes, thanks in advance for your help

 

Aurelien


ADV212 STOP DREQ signal

$
0
0

My Customer use 3 chip of ADV212  ,and sometimes stop decoding.

If it's used for about 1000 hours, a DREQ signal doesn't reply any more.

 

Combination of wavelet transformation and the resolution was doubted, but it seems no problem.

(A chip for each of resolution is used at Y,C (Cb/Cr) and K in 1920 x 1080 (60i).)

 

I checked data of EZ and i find, ADV212 JPEG2000 problem? I have my hands full! 

 

It say that ”Monitor the price of the SWFLAG register and SCOM [3:0]."

 

Isn't there material of SCOM [3:0]?

 

A signal of DREQ is the phenomenon which doesn't come any more, and would I be able to receive advice?

adv7611 audio

$
0
0

Hi:

 i have some question about adv7611 audio.

video is ok but audio is not ok,it does not have voice.

the HDMI reg value 0x36——0x3a is 0x4,0x80,0x10,0x2,0x2

the bclk is 3.071M. 

BUT the voice is not appear!

can you give me some  suggestion!

i do not have evaluate board!!

HMC547ALC3 state when A & B are at 0V

$
0
0

I am using HMC547ALC3 as RF switch. During power up of my board, the control pins A and B are both at 0V . What would be the state of RFC pin ? If A & B are at 0V and RF power of 10dbm is applied on RFC when A& B are at 0V.

HMC595A/HMC574A transients

$
0
0

What is the video transient/feed-through for the following RF switches.

 

HMC595A
HMC574A

VDSP 5.1.2 and win10

$
0
0

Hi !

I have a VDSP(5.1.2) installation on my desktop with Win7 , and in addition a VDSP installation on my laptop(formerly WIN7)

I have updated my laptop from win7 -> to win10.

No the VDSP unstallation(flexible license manager) report the following error on start

ERROR: invalid host

the hosted of this system does not match the hosted specified in the license file.

Feature : VDSP-DEBUGGER

Hostid: .....

 

what should I do, to get the laptop installation working again?

 

regards chris

CFFTF bug with N>=512 in CCES2.6.0 and SC584

$
0
0

Hi all,

I migraged my ADSP-SC584 project to CCES 2.6.0 in recent days, and I found the cfftf function works not properly. This is my test code with core1 (sharc):

#include <sys/platform.h>
#include <sys/adi_core.h>
#include "adi_initialize.h"
#include "testfft_Core1.h"

#include <filter.h>
#include <string.h>

 

#define FFT_SIZE 1024

#pragma align FFT_SIZE
static float dm fft_buf_r[FFT_SIZE];
#pragma align FFT_SIZE
static float pm fft_buf_i[FFT_SIZE];

float dm twid_r[FFT_SIZE];
float pm twid_i[FFT_SIZE];

float dm temp_r[FFT_SIZE];
float pm temp_i[FFT_SIZE+1];

 

void test_fft(void)
{
    int n;

    memset(fft_buf_r, 0, FFT_SIZE*sizeof(float));
    memset(fft_buf_i, 0, FFT_SIZE*sizeof(float));

    for (n=0; n<FFT_SIZE/2; n++)
        fft_buf_r[n]=1.0;

 

 

    twidfftf(twid_r, twid_i, FFT_SIZE);

    cfftf(fft_buf_r, fft_buf_i, temp_r, temp_i, twid_r, twid_i, FFT_SIZE);
}


/**
* If you want to use command program arguments, then place them in the following string.
*/
char __argv_string[] = "";

int main(int argc, char *argv[])
{
/**
* Initialize managed drivers and/or services that have been added to
* the project.
* @return zero on success
*/
    adi_initComponents();

/* Begin adding your custom code here */

    test_fft();

    return 0;
}

If FFT_SIZE is 512 or more, the results is not correct. If FFT_SIZE is 256 or less, it works fine.

The result should be a pulse in fft_buf_r[] and fft_buf_i[], but is seems to be filled with huge numbers, see the attached figure.

I also attched the test project. The version of CCES is 2.6.0. In older version, It seems works fine.

 

Kader.M

fmcomms2 No-OS software (SocKit + RFC AD9361), Unsupported PRODUCT_ID error

$
0
0

Hi,

 

When I run No-OS software (no-OS-2015_R1) on hdl design hardware (hdl-hdl_2015_r1) using ARM DS-5, I got the following error messages in App Console window:

 

ad9361_reset: by SPI, this may cause unpredicted behavior!

ad9361_init: Unsupported PRODUCT_ID 0x0 ad9361_init: AD9361 initialization error

 

I don't know where to set this product_id on both hardware (hdl design) and software code.

Please help me to solve this problem.

 

Thank you so much!

Thuc


UART in DMA mode (using driver in ROM)

$
0
0

Hello,

 

I try to configure UART in DMA mode by using driver coming with CCES. It works when I use the RAM version of the driver.

 

But it does not work when I try to use UART driver in ROM through UTILITY_ROM_UART option. 

 

But if I configure the UART in interrupt mode, the driver still works. The silicon version of processor is 1.0. 

 

I would like to know if anyone else has encountered same problem. Is there any solution for that?

 

Best Regards,

 

Bo Peng

Where can I find No-OS driver code for feeding and capturing waveform to DAC and ADC OF ad9364?

$
0
0

 I am using ADRV9364-Z7020 Eval Board.

ADL5205 Maximum input voltage swing

$
0
0

I'm looking to use the ADL5205 Dual digital VGA but am confused by the rated input swing in the datasheet.

 

In Table 1 Page 3 it shows "Maximum input swing: 8 Vp-p" in the input stage section

In Table 3 Page 6 "Absolute Maximum Ratings" it says:

-"Input Voltage (VINx+, VINX-): -0.5V to +3.1V"

-"Differential Input Voltage((VINX+)-(VINX-)): +/- 1V"

 

So how can the input swing be 8 Vp-p with an absolute maximum differential voltage of +/- 1V?

Is there a mistake in the datasheet or am I misunderstanding this?

 

Thank you

 

Tom

Access SRAM on SMC0 from the ARM core

$
0
0

Hello,

 

we are using a custom sc589 design and have SRAM attached to SMC0.

I have configured SMC0 registers

 

SMC_B0CTL.EN = 1; /**< Bank 0 Enabled */

SMC_B0CTL.MODE = 0; /**< Memory Access Mode Async SRAM */

SMC_B0CTL.SELCTRL = 2; /**< Select Control : ????? Angeblichsind AMS, AOE und AWE angeschlossen !!*/

SMC_B0CTL.RDYEN = 0; /**< ARDY Enable */

SMC_B0CTL.RDYPOL = 0; /**< ARDY Polarity, don't care */

SMC_B0CTL.RDYABTEN = 0; /**< ARDY Abort Enable */

SMC_B0CTL.PGSZ = 0; /**< Flash Page Size, don't care */

 

SMC_B0TIM.WST = 7; /**< Write Setup Time, max 7 */

SMC_B0TIM.WHT = 7; /**< Write Hold Time max 7 */

SMC_B0TIM.WAT = 63; /**< Write Access Time max 63 */

SMC_B0TIM.RST = 7; /**< Read Setup Time, max 7 */

SMC_B0TIM.RHT = 7; /**< Read Hold Time, max 7 */

SMC_B0TIM.RAT = 63; /**< Read Access Time, max 63 */

 

SMC_B0ETIM.PREST = 3; /**< Pre Setup Time, max 3 */

SMC_B0ETIM.PREAT = 3; /**< Pre Access Time, max 3 */

SMC_B0ETIM.TT = 7; /**< Transition Time, max 7 */

SMC_B0ETIM.IT = 7; /**< Idle Time, max 7 */

SMC_B0ETIM.PGWS = 2; /**< Page Wait States 2-15, but ignored */

 

I try to access the SRAM at address 0x40000000, but still I cannot see any activity on AMS, AOE or AWE while trying to read or write to SRAM address.

 

Do I miss to configure something (maybe SCB ?)  to be able to access SMC0 from the ARM core ?

 

Regards

Robert

Harmonics generated by HMC1021

$
0
0

HI, 

I am using the power detector HMC1021 in my circuit . At the input side, it is generating Harmonics signal in 30 dBc down .

I m feeding 1.35 GHz pure signal with -20 dBm power level to the HMC1021. Now i m getting 2.7 GHz signal in ~30 dBc down . What will be the issue .

Find the attached SCH file.

How can I install µC/USB Device Stack for CrossCore Embedded Studio

Master Control Port Interface R/W

$
0
0

Hello,

 

i'm testing Master Control Port Interface Read and Write through SPI with GPIO triggering. I'm trying to write a simple value then read it back at boot time but this seems not to work.

 

I opened months ago a bug report about Master Control Port Interface (perhaps i can't find it anymore in my messages history) and as said it should have been fixed with Sigma Studio 3.15, the report was made for I2C since SPI wasn't still available with Sigma Studio 3.14.

 

 

These are in brief the steps i'm doing:

 

- write 6 to DC block

- download then burn eeprom 25AA1024 with the program

- write 7 to DC block

- push the Switch to trigger the write block

- power off then on the device

 

I would expect to get 7 on readback block but i get 6.

 

Can you please check this and tell me what's wrong?

 

Thank you

Omar


Unable to run Image Processing Toolbox examples on ADZS-BF707 BLIP2

$
0
0

I tried and successfully ran the VOS/IOS examples through the ADVision Sensor Control GUI. I also successfully debugged the char_echo example.
Now, I'm trying to run the corner_detect_bf707 example located in Image Processing Toolbox RF 2.4.0 but with no luck. I've tried following the user guide. I noticed that there aren't any specific instructions for BLIP2 so I've been following instructions for ADSP-BF707. At first, I noticed that the red LED on the BLIP2 would turn on after I started debugging the program. Upon further investigation, I noticed that the program would freeze at line 1482 of adi_pwr_v2.c (WaitForLock(pDevice);) and the following error was thrown in the console:

 

A non-recoverable error or exception has occurred.
  Description:   No dispatched handler available for the specified interrupt code.
  General Type:  RunTimeError
  Specific Type: NoDispatchedHandler
  Error Message: Enabled interrupt with ID (IID) 0x0013002c raised when it has no handler registered.
  Error PC:      0x11a000c8

 


I'm using CrossCore Embedded Studio v2.6.0.0 on Windows 10 Build 15063

ADV7391 625i Vertical Blank

$
0
0

Hi,

On a custom project, I use the ADV7391 in square pixel mode to generate PAL 625i.

I verified the vertical blanking and I noticed an non-compliance to the UIT-R BT.1700 (or ITU-R BT.470-6).

 

Indeed, on this standard, the "m" present 5 pulses.

 

UIT-R BT.1700

 

ADV datasheet

 

 

Measured:

 

 

Is there a register that control this characteristic ?

 

Regards,

Eval board BT656 doesn't display

$
0
0

I am using the EVAL-ADV7612-7511 board and AVES Blue 3.03.1557 program.  With the default jumper settings and power-up defaults, I can see my several video sources (Raspberry Pi, DVD player, and an automotive USB camera-to-HDMI device) displayed on the monitor after passing through the eval board.  

I'm trying to use an 8-bit wide BT656 (embedded syncs) as the communication path between the 7612 and the 7511.  I've edited a script from Mattp (script: 6-1dm3 576i ADV7612 8-bit BT656 embedded syncs ADV7511) to change the 576i entries to 480i settings.  I may have some mistakes in my settings, but I have 2 major concerns about my current results:

1. There seems to be a lot of automatic stuff going on in the background to make things work.

      a. For R-Pi to display, I power up the eval board, wait 30 seconds, run a terminal program, enter the HDMIA command,and the display shows the R-Pi output (with 75MHz DV_CLK) .

      b. For the DVD player, there is an intermittent set of steps to get the display, which I can't seem to repeat now . . .

      c. For the automotive HDMI, I only have to power up the board and the display shows on my monitor after 15 seconds.(with 75MHz DV_CLK).

 

Question 1:  Is there some startup step that I'm missing to reduce the ambiguity of my pass-through display of various HDMI inputs in power-up pass-through mode?

 

2. For the automotive HDMI input, I can power the eval board up to get a display, and when I run AVESBlue, the display blanks when I connect to the board using RS-232 serial. After I run the 7612 reset and the 7511 power up default scripts, and then run the 6-1dm3 script (without the last 8 lines (below) and the input video shows up on the monitor.  When I run these last 8 lines of the script (switching into BT656 mode):

 

98 03 00 ; 8-bit SDR ITU-656 mode
98 19 C3 ; LLC DLL phase (Matt)
98 04 42 ; OP_CH_SEL
98 05 2C ; AV code on
72 15 04 ; input id = 4
72 16 79 ; 8 bits, Style 1
72 48 00 ; even adjust
72 17 01 ; gen de

 

the display goes blank and the DV_CLK goes to 150MHz.  I think this clock frequency is above the specified operating range.

 

Question 2:  Is there something I'm doing wrong in my attempt to use BT-656 mode with my HDMI input?

 

Question 3:  Since I've been spending significant time not making real progress with my attempt, is there a better way (different input video sources, better troubleshooting approaches, magic) that might help to make better progress?

 

Thanks,
Carl

 

For ADV7441A is it possible to use ADC3 for YC chroma?

$
0
0

We have an existing fielded product with a newly discovered cabling problem.

We hope to fix this major problem with settings in the ADV7441A.

 

Is ADC1 always used for YC chroma?

 

We hope to use Ain5, Ain7 and Ain9 for YC chroma.

It seems that the analog input muxing options do not support routing Ain7 to ADC1.

 

Is it possible to use ADC3 for YC chroma?

In the functional block diagram shows a mux between ADC0-CHA, ADC1-CHB, ADC2-CHC, ADC3-CHD.

Is it possible to use this mux to rout ADC3 (can use Ain7) to CHB for SD-M YC chroma processing?

 

I have gone thru the latest versions of the ADV7441A Hardware and Software manuals.

In these documents I do not see an explicit association between ADC1 and YC chroma processing.

Can we use ADC3 for YC chroma processing?

 

Thank you,

ADAU1452 - warning (27,ExtDelay1): Preprocessor macro re-definition?

$
0
0

Hello,

 

i get this warning once i do the link-compile-connect or link-compile-download:

 

warning (27,ExtDelay1): Preprocessor macro re-definition of 'PIN_DRIVE_MAX_SPEED_NO_PULL'with different value (3922,0)

 

The application uses Voltage Controlled SPI Delay with 23LC1024 RAM and Master Control Port SPI Interface through 25AA1024 EEPROM (which holds program memory data too). When i run the program Voltage Controlled SPI Delay stops working and passes no signal anymore while Master Control Port Interface seems to work fine.

 

If i do remove blocks for Master Control Port Interface than Voltage Controlled SPI Delay starts to work again.

 

Can you help me understand what's happening?

 

If needed i can send the program but i would prefer not to publish it here.

 

Thank you

Omar

Viewing all 51060 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>