Skip to main content
7 events
when toggle format what by license comment
Dec 17, 2010 at 18:14 comment added vicatcu @tyblu interesting yes I agree it's probably only good for one I/O line of emulation and I concede that I was overly optimistic with the 16MHz hypothesis...
Dec 17, 2010 at 18:04 comment added vicatcu @fceonel Sure to approach the maximum rate, you'd probably have to use timer/PWM capability and maybe some optimized interrupt service routines (probably compare/match interrupts)... 4MHz out of a 600MHz CPU strikes me as something not quite right there...
Dec 17, 2010 at 18:00 comment added tyblu The Arduino will be very limited. Even using the most powerful one, the ATmega2560, its 12 hardware PWM modules can only do about 60kHz ("fast PWM"; f_clk/256 max). Some AVRs can do 200kHz, which still doesn't come close to your 24MHz. Bit-banging IO's won't do faster PWM, but you can get up to f_clk/2 on a single IO if that is all the chip does. I think the Netduino uses an ARM - maybe it could do something more?
Dec 17, 2010 at 17:38 comment added fceconel Thanks, sounds like a good candidate for a basic solution when you need just the basic functionality at a low clock. But I wouldn't be so optimistic about the maximum sample rate. To give an example, I am currently experimenting with a BeagleBoard C3, which runs at 600 MHz, and the maximum I was able to get at its GPIO was about 4 MHz - and in that case just flipping a bit in a tight loop.
Dec 17, 2010 at 16:48 comment added vicatcu @fceconel well the Arduino runs at 16MHz, there's going to be some overhead for the program that "executes the pattern" but if you implemented the code running on the Arduino intelligently making use of hardware peripherals, I would think you could achieve something approaching 16MHz.
Dec 17, 2010 at 16:06 comment added fceconel What would be the maximum sample rate in this approach?
Dec 17, 2010 at 15:58 history answered vicatcu CC BY-SA 2.5