Simulating FFT with PIC32 Clock system

OP #1920865
Rate this post
useful
not useful
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

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now