Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Fast PWM

2007-07-15 by John Samperi

At 05:23 AM 15/07/2007, you wrote:
>Did I missed something?

Probably the fact that you can't really trust the simulator
when it comes to timers...and a lot of other things too :-(

Have you tried with real hardware?

>         ldi temp, 0x08
>         out DDRB, temp
............
 >       ldi temp, 0xB3
 >       sts TCCR2A, temp
 >       ldi temp, 0x09
 >       sts TCCR2B, temp

Using numbers instead of bit NAMES makes it very hard for anyone
to follow your code (at least it does for me) as I would have to
grab the data sheet and try to figure out if you are setting the
correct bits.

Apart from that, nice comments and layout :-)


Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495       Fax (02) 9674-8745
Email: john@ampertronics.com.au
Website  http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.10.6/900 - Release Date: 14/07/2007 3:36 PM

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.