Audino V5 in IDE 1.0 Possible Solution
hi,
for trying audino project run , finding pot 4 changes anything, need add volatile keyword variable declarations. assumption new compiler optimisation in arduino 1.0 replacing variables inside isrs local (register based) copies not updated analogreads in main loop.
i have left suggestion effect on audino project page project owners.
i breadboarding project @ moment mismatch of components, once have suitable set confirm results post suggestion arduino 1.0 compatible version, in meantime can add volatile of global variables such -
note - volatile keyword not needed in every case not have resources confirm @ moment.
edit - clarity.
duane b
rcarduino.blogspot.com
for trying audino project run , finding pot 4 changes anything, need add volatile keyword variable declarations. assumption new compiler optimisation in arduino 1.0 replacing variables inside isrs local (register based) copies not updated analogreads in main loop.
i have left suggestion effect on audino project page project owners.
i breadboarding project @ moment mismatch of components, once have suitable set confirm results post suggestion arduino 1.0 compatible version, in meantime can add volatile of global variables such -
code: [select]
volatile uint16_t syncphaseacc;
volatile uint16_t syncphaseinc;
volatile uint16_t grainphaseacc;
volatile uint16_t grainphaseinc;
volatile uint16_t grainamp;
volatile uint8_t graindecay;
volatile uint16_t grain2phaseacc;
volatile uint16_t grain2phaseinc;
volatile uint16_t grain2amp;
volatile uint8_t grain2decay;
note - volatile keyword not needed in every case not have resources confirm @ moment.
edit - clarity.
duane b
rcarduino.blogspot.com
quote
for trying audino project run , finding pot 4 changes anything,
i not understand problem.
why should make global vars volatile?
vars need volatile prevent compiler optimizing them registers.
typically used in synchronization issues between main program , isr's (and other cases).
Arduino Forum > Using Arduino > Audio > Audino V5 in IDE 1.0 Possible Solution
arduino
Comments
Post a Comment