Search found 19 matches

by Tomper
02 Nov 2008 20:41
Forum: mikroC for dsPIC30/33 and PIC24 General
Topic: Compiler error
Replies: 3
Views: 2951

yes the internal error is the only error message I get and a suspicious pointer conversion warning..you are right about the 2kB of RAM
by Tomper
31 Oct 2008 14:14
Forum: mikroC for dsPIC30/33 and PIC24 General
Topic: Compiler error
Replies: 3
Views: 2951

Hi I would just like to add that I am using a dsPIC 30F4013@120Mhz with 1MB of RAM. This code is also not the whole code, this is just the FFt algorithm's code, the other code works fine, its when I want to add these functions that the troubles start
by Tomper
31 Oct 2008 14:07
Forum: mikroC for dsPIC30/33 and PIC24 General
Topic: Compiler error
Replies: 3
Views: 2951

Compiler error

Hi I have this code for a recursive FFT/IFFT algorithm, the thing is this code compiles fine under Borland C++ compiler but when I try to port it to MikroC it gives me a bunch of internal error messages. When I click the error it takes me to the fft_rec(N ,0, 1, x, X, XX) function call, I dont know ...
by Tomper
27 Oct 2008 22:10
Forum: mikroC General
Topic: Complex data types in MikroC
Replies: 4
Views: 2062

thanks for the info, but can you be a bit more specific..sorry, it must seem like I am retarded..but I dont quite understand. say I want to compute: exp(j*2pi) I would I go about it: exp(j*2pi)=cos(2pi) +jsin(2pi), so the real part would be cos(2pi) and the imaginary sin(2pi) how would I multiply th...
by Tomper
27 Oct 2008 17:04
Forum: mikroC General
Topic: Complex data types in MikroC
Replies: 4
Views: 2062

Complex data types in MikroC

Hi

Can I use complex numbers in mikroC? How would I go about using complex numbers? i.e a + b*I where I=sqrt(-1) is this possible? I am new to programming and really need help
by Tomper
27 Oct 2008 17:00
Forum: mikroC General
Topic: Float to binary?
Replies: 2
Views: 1515

Hi

Thanks a lot, that really helped!
by Tomper
27 Oct 2008 11:01
Forum: mikroC General
Topic: Float to binary?
Replies: 2
Views: 1515

Float to binary?

Hi I want to send float values to a DAC(mcp4822). But the thing is I see the DAC expect a 16 bit number where 4 bits are control bits, so that means the DAC accepts a 12 bit number at a time. I dont know if I am understanding this correctly. So what I want to do is, break the float which is 4 bytes ...
by Tomper
23 Oct 2008 07:59
Forum: mikroC General
Topic: write to text file
Replies: 4
Views: 2082

Thanks..

I'll take a look at it!
by Tomper
22 Oct 2008 13:28
Forum: mikroC for dsPIC30/33 and PIC24 General
Topic: Complex numer
Replies: 4
Views: 4625

Complex numer

Hi

Can I use complex numbers in mikroC? How would I go about using complex numbers? i.e a + b*I where I=sqrt(-1) is this possible? I am new to programming and really need help
by Tomper
22 Oct 2008 13:25
Forum: mikroC General
Topic: write to text file
Replies: 4
Views: 2082

Hi

I would like to test the FFT function. I want the data points from the FFT to be written to a text file on my computer..is this possible?
by Tomper
12 Oct 2008 23:58
Forum: mikroC General
Topic: write to text file
Replies: 4
Views: 2082

write to text file

Hi

Is there a way to write data to a text file, I see that the fopen syntax from C doesn't work unless I'm doing something wrong? I have an array that I would like the data of to be written to a text file
by Tomper
07 Oct 2008 20:43
Forum: mikroC for dsPIC30/33 and PIC24 General
Topic: 10-point FFT
Replies: 8
Views: 5551

Hi

Thanks for the replies..I now tried to implement a larger ifft(256). The next question is, is there a way of viewing these IFFT samples on a scope. Do I have to send these samples to a DAC to view them or is there another way?
by Tomper
15 Sep 2008 17:42
Forum: mikroC for dsPIC30/33 and PIC24 General
Topic: 10-point FFT
Replies: 8
Views: 5551

Hi I am trying to implement a qpsk modulator on the dsPIC, where the input to the pic is rs232 which is 8 bit. I map the inputs 00, 01, 10, 11 to 1+j,1-j,-1+j,-1-j. I then have to IFFT the data which at the moment is 4 points but doesn't give real data to the ifft output. To fix this I add 2 dummy z...
by Tomper
11 Sep 2008 20:08
Forum: mikroC for dsPIC30/33 and PIC24 General
Topic: 10-point FFT
Replies: 8
Views: 5551

Hi

thanks for the reply.

yes I am sure its a 10 point fft. I read somewhere the way to do this is a mixed radix algorithm, but I am struggling to find a C implementation that isn't too complicated
by Tomper
11 Sep 2008 12:39
Forum: mikroC for dsPIC30/33 and PIC24 General
Topic: 10-point FFT
Replies: 8
Views: 5551

10-point FFT

Hi

I have to implement a 10-point fft on a dsPIC, what would be my best bet as I see that the built in fft function only accepts sizes of N that are a power of 2. has anyone written this type of source code or could someone send me in the right direction please..

thanks in advance

Go to advanced search