upasana2007
Junior Member level 1

Hi all,
I am trying to find the harmonic content of power signals. This is a part of a larger project and so I am looking for an easy way out. The problem is I am restricted to use 8051 as my main microcontroller(however a co processor may be used if all else fails)As of now, I have determined 3 ways to do this:
1)using goertzel algorithm(i just need to find 1st and second harmonic content)
2)using FFT - but that will mean using a co-processor
3) Interfacing with MATLAB- this is the last resort since I dont want to carry my computer to the industrial setting(I am trying to protect a Transformer)
So, My main query is, Can I USE GOERTZEL ALGORITHM IN 8051? I mean will it be fast enough? the rest of the code is not to complex....around 60 lines of assembly coding in keil ...mainly dealing with additions,subtractions and comparisions. Please help. My project is due in 10 days!
Also if someone has a code for the goertzel it would be great

I am trying to find the harmonic content of power signals. This is a part of a larger project and so I am looking for an easy way out. The problem is I am restricted to use 8051 as my main microcontroller(however a co processor may be used if all else fails)As of now, I have determined 3 ways to do this:
1)using goertzel algorithm(i just need to find 1st and second harmonic content)
2)using FFT - but that will mean using a co-processor
3) Interfacing with MATLAB- this is the last resort since I dont want to carry my computer to the industrial setting(I am trying to protect a Transformer)
So, My main query is, Can I USE GOERTZEL ALGORITHM IN 8051? I mean will it be fast enough? the rest of the code is not to complex....around 60 lines of assembly coding in keil ...mainly dealing with additions,subtractions and comparisions. Please help. My project is due in 10 days!
Also if someone has a code for the goertzel it would be great