Show Posts
Pages: [1]
1  Products / Arduino Due / Re: Timer Interrupts on Due on: November 29, 2012, 08:34:53 am
Well this last explanation was perfect! I have now managed to translate the VirtualWire library to the Arduino DUE. It is to be knowledge that it is a primary version and that I have tested it only with the standard speed of transmission (2000 bps) and it may have errors changing it (because the time of interrupt is not more dependent of the speed).
2  Products / Arduino Due / Re: Timer Interrupts on Due on: November 28, 2012, 03:18:58 am
Quote
Thank you for your detailed answer.
Can somebody explain the following code?
I want to use it to execute a function after every XY CPU counts:

        TC_Configure(tc, channel, TC_CMR_WAVE | TC_CMR_WAVSEL_UP_RC | TC_CMR_TCCLKS_TIMER_CLOCK4);
        uint32_t rc = VARIANT_MCK/128/frequency; //128 because we selected TIMER_CLOCK4 above
        TC_SetRA(tc, channel, rc/2); //50% high, 50% low
        TC_SetRC(tc, channel, rc);
        TC_Start(tc, channel);
        tc->TC_CHANNEL[channel].TC_IER=TC_IER_CPCS;
        tc->TC_CHANNEL[channel].TC_IDR=~TC_IER_CPCS;

I have the same question. I'm trying to create an Interrupt every 62.5 microseconds but I'm incapable! Do you know if it is possible and if it is how should I proceed? As I have understand I should modify the variable RC and reading through the net I came with a possible answer being (VARIAN_MCK/8)/SPEED of transmission (I need the interruption to modify the VirtualWire library for the DUE, which I have almost done  smiley-wink) but it doesn't work!
3  Products / Arduino Due / Arduino Due + Virtual Wire on: November 23, 2012, 01:12:44 pm

Hey guys!

I just received the new Due and was trying to set up a simple sketch to transmit and receive data over RF.

Has someone figured out how to get the "Virtualwire" library working with the Arduino Due? I get the error code

/Applications/Arduino.app/Contents/Resources/Java/libraries/VirtualWire/VirtualWire.cpp:20: fatal error: util/crc16.h: No such file or directory

every time i try to compile a sketch.

Thank you!

Pages: [1]