Show Posts
|
|
Pages: [1]
|
|
5
|
Using Arduino / Programming Questions / Re: PWM @ 4MHz
|
on: October 19, 2011, 05:09:08 pm
|
|
Thanks for your help, but if anyone needs to do it, this is the code I used to get a 4MHz at 50% duty cicle on pin 3:
pinMode(3, OUTPUT); TCCR2A = 0x23; TCCR2B = 0x09; OCR2A = 3; OCR2B = 1;
With this I get a very nice square wave that I am using as a clock signal for a smart card.
|
|
|
|
|
6
|
Using Arduino / Programming Questions / PWM @ 4MHz
|
on: October 19, 2011, 12:19:32 pm
|
|
I hope someone can help me with this, I need to generate a 4MHz signal at 50% duty cicle using a PWM pin. It can be any of the PWM pins, can anyone help me with this. Thanks.
|
|
|
|
|