Simulating FFT with PIC32 Clock system

OP #1920865
Hello,

I am studying the book Programming 32-bit Microcontrollers  in 
C:Exploring the PIC32 by Lucio Di Jasio and I am having a problem 
simulating the FFT Program in chapter 7 Running page 152-167.

The Problem is that I become different result.
After setting the Breakpoint on the line containing the while(1) loop 
and pressing Run, a become different Result for t and f  variables.
On other hand the result of the simulation of Mr. Di Jasio (Figure 7.7) 
are:
t = 6142543
f = 0.170626194444444

I am using a  PIC32 Ethernet Starter kit with a PIC32MX795512L 
µcontroller. Is that good enough for the Simulation???

On page Page 159 Mr. Di Jasio  mention about combining Timer 4 and Timer 
5 to capture the required Time, but he has not mention where we put the 
Code Snippet. I put it on the run.c (main) but I am not sure about the 
correctness of the order of my Implementation.

I read the Updates Section on the PIC32 Website and I tried to adjust my 
Code (Configuration Bits Setting on the #Pragmas)
to the Hardware Specification but it does not work.
I changed the Configuration Bits Settings as the Author suggest in the 
Book but also that to does no Effect. So a Reset them to the Default.

I've also attached the full Project zipped and 2 Screenshot of my 
Configuration Bits Settings and watch window.
Attached files:

Reply

A question of your own? This thread is over 16 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.