5 Bit Barker Code

Thanks for everyone for help this code has replaced hardware it’s apart of something I am planning to have fun with (autocorrelation and matched filter)

I have built this project years ago using microcontroller Z80 and a lot of logic integrated circuits

1 Like

pulscompression.big

kor7

https://www.radartutorial.eu/08.transmitters/Barker%20Code.en.html

@glv

Thank you very much for all your efforts

And be absolutely sure that the reward is much greater than what you offer

you are very great person

good luck

1 Like

@paulgoux

hi how are you

i made other version of your code


int i, j;
float counter;
int  N =5 ;
float x[]={1, 1, 1,-1, 1};
float y[]={1, 1, 1,-1, 1};

int buffer;
  for (buffer = -N + 1; buffer< N; buffer++){
 counter  = 0;
    for (i=0; i<N; i++)
    {
      j = i + buffer;
      if ((j < 0) || (j >= N)) 
        continue;
      else
  counter  += (x[i] * y[j]);
   
  }
 println( counter  );

}

thanks again for you

1 Like