Author |
Message |
Topic: Guitar tuner project |
Felipe S.
Replies: 31
Views: 23839
|
Forum: General CCS C Discussion Posted: Sun Jan 11, 2009 3:12 pm Subject: Guitar tuner project |
Isn't that supposed to reset the "sample" variable, too? No, it isn't. With CCS C you have to use either a global #zero_ram instruction or an individual initialisation of variables, when nee ... |
Topic: Guitar tuner project |
Felipe S.
Replies: 31
Views: 23839
|
Forum: General CCS C Discussion Posted: Sun Jan 11, 2009 1:36 pm Subject: Guitar tuner project |
Looks like sample isn't reset before a new measurement.
I forgot to mention that I reset the whole program before taking any new measurement. Isn't that supposed to reset the "sample" var ... |
Topic: Guitar tuner project |
Felipe S.
Replies: 31
Views: 23839
|
Forum: General CCS C Discussion Posted: Sat Jan 10, 2009 10:48 am Subject: Guitar tuner project |
Hi again.
FvM, thanks to your last post I was able to come up with a really fast math operation for my filter. The difference between regular division and bit shifting is certainly astounding.
N ... |
Topic: Guitar tuner project |
Felipe S.
Replies: 31
Views: 23839
|
Forum: General CCS C Discussion Posted: Mon Dec 08, 2008 2:27 pm Subject: Guitar tuner project |
I previously suggested integer arithmetic and replacing the /10 division by a faster shift operation.
Applying 'scaling' to replace the floating points for integers? I did this:
int32 out, out ... |
Topic: Guitar tuner project |
Felipe S.
Replies: 31
Views: 23839
|
Forum: General CCS C Discussion Posted: Sun Dec 07, 2008 8:51 pm Subject: Guitar tuner project |
The low pass looks better now
However, it can be simplified. All digital first order low passes can be basically represented by the form
Y(n) = a*X(n) + (1-a)*Y(n-1) ... |
Topic: Guitar tuner project |
Felipe S.
Replies: 31
Views: 23839
|
Forum: General CCS C Discussion Posted: Sat Dec 06, 2008 7:57 pm Subject: Guitar tuner project |
The problem I see with your code is that it is not structured to be a streaming process. It looks more like what you would do after all there data was collected and you then went back and filtered ... |
Topic: Guitar tuner project |
Felipe S.
Replies: 31
Views: 23839
|
Forum: General CCS C Discussion Posted: Thu Dec 04, 2008 5:46 pm Subject: Guitar tuner project |
^^ Me. Forgot to log in again. |
Topic: Guitar tuner project |
Felipe S.
Replies: 31
Views: 23839
|
Forum: General CCS C Discussion Posted: Mon Oct 27, 2008 2:50 pm Subject: Guitar tuner project |
Ok, nevermind, I found for(buc=0;buc<=522;++buc) {
disable_interrupts(global);
enable_interrupts(INT_AD);
clear_interrupt(INT_A ... |
Topic: Guitar tuner project |
Felipe S.
Replies: 31
Views: 23839
|
Forum: General CCS C Discussion Posted: Fri Oct 24, 2008 5:21 pm Subject: Guitar tuner project |
^^ That is me. Forgot to log in. |
Topic: Guitar tuner project |
Felipe S.
Replies: 31
Views: 23839
|
Forum: General CCS C Discussion Posted: Thu Oct 23, 2008 7:19 pm Subject: Guitar tuner project |
Hi all. For my grade project in college, I decided to build a digital guitar tuner based on a PIC18F2550.
The phase I'm currently on is testing the sampling capabilities of the PIC's ADC converter ... |
|