mwickert

Members
  • Content Count

    2
  • Joined

  • Last visited

  1. mwickert

    Analog Shield With Timerone On Uno32

    JColvin, Thank you very much for your reply. I had started read about some of the chipkit libraries, but never drilled down deep enough to find the valuable information you pointed me too. I now have a simple I/O running at programmable update rate. FYI: I am using the Analog Discovery logic analyzer, scope, and function generator to take measurements. To pass a single channel of ADC input to the DAC output takes about 28 us. I don't know if there is a way to speed that up. Here is my code snippet from the Callback: uint32_t MyCallback(uint32_t currentTime) { digitalWrite(7, HIGH); //digitalWrite(4,digitalRead( 4 ) ^ 1); input = analog.read(0); //read in on port labeled 'IN0' output = input; for(i=0; i < Nspin; i++) { sum += 1; } if (sum > Nspin) { sum = 0; } analog.write(0, output); //write out the value on port labeled 'OUT0' digitalWrite(7, LOW); return (currentTime + CORE_TICK_RATE/fs); Again thanks
  2. I would like to run TimerOne based examples for the Analog Shield on the UNO32. As I see it the Arduino TimerOne library is only for AVR parts. Is there an equivalent library for the UNO32 that provides this functionality. To me the Analog Shield under UNO32 is not very useful without the ability to do Timer/interrupt driven processing. Thanks for any insights the community can provide.