Post Created date
Generating a 4Mhz square wave/clock for the ATMEGA644P
unebonnevie wrote: I experimented with different OSCCAL values a bit, and below is what I saw on my scope.  I'll probably go with 0x65, which gives OC0B very close to 4Mhz...
Thursday, 11 July 2019 - 16:05
Nichicon Alternative
I'd Bet Money on it!   --Mike  
Thursday, 11 July 2019 - 03:43
Generating a 4Mhz square wave/clock for the ATMEGA644P
unebonnevie wrote: At 4.03Mhz!  0.3Mhz extra.  Probably I can set OCR0B to 1 to get rid of the extra 0.03Mhz.   Your clock is probably running at 8.06 MHz. ...
Wednesday, 10 July 2019 - 21:10
Nichicon Alternative
I kind-of expected to hear that any of them would be fine.   Clicking on Nichicon was just one of the ways to make the parameter list more manageable.  Sort of like "...
Wednesday, 10 July 2019 - 20:11
Help with DDS and PWM
Also, why 65535?  I would think you'd want 65536.   --Mike  
Wednesday, 10 July 2019 - 01:16
Can't read port C in ATmega328p
My ISR isn't updating the counter.   --Mike  
Tuesday, 9 July 2019 - 17:13
Prototyping Code?
Another option is to actually do something with the result like send it out over a USART.   --Mike   EDIT: spelling  
Tuesday, 9 July 2019 - 16:34
Generating a 4Mhz square wave/clock for the ATMEGA644P
It sounds like you have an 8MHz clock and want to generate a 4MHz output.  For this, you do not need PWM. Set up a timer to run at full speed in Clear Timer on Compare match...
Tuesday, 9 July 2019 - 02:49
Interrupt driven USART only transmitting one character and garbage afterwards
joshagirgis wrote: unsigned int number = (F_CPU)/(16*(BAUD0)-1);   This should be: unsigned int number = F_CPU/16/BAUD0 - 1;  Even better, set the U2X bit and change...
Monday, 8 July 2019 - 19:44
Audio pitch down code debugging
Off-topic: I just saw a film about Woodstock which was great and it reminded me of an effect pedal Jimi Hendrix used to double the pitch of his guitar (opposite of what the OP is...
Monday, 8 July 2019 - 00:43
ATmega128 old age
It was even dumber at 23V !!   --Mike  
Sunday, 7 July 2019 - 22:37
ATmega128 old age
In my defense....  ;-)   Initially I trusted the label and used one of the "9V" regulators to power a circuit which had a 7805 to generate the required 5V.  This...
Sunday, 7 July 2019 - 21:17

Pages