Forum: µC & Digital Electronics Simulating FFT with PIC32 Clock system

von Kamal A. (ellgafsi)

Attached files:

Rate this post
0 useful
not useful

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) 
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.

von Kamal A. (ellgafsi)

Rate this post
0 useful
not useful

Antworten auf Deutsch sind auch herzlich willkommen :-)

Danke für eure Unterstützung!


von oways (Guest)

Rate this post
0 useful
not useful
i have problems in the code as you..
so if you solve yours pls inform me how.


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.