-+PWM problem on Basic AVR & Pascal AVR Atmega8,16..NOT

Post your requests and ideas on the future development of mikroPascal for AVR.
Post Reply
Author
Message
andy_krider
Posts: 7
Joined: 19 Jun 2006 10:04

-+PWM problem on Basic AVR & Pascal AVR Atmega8,16..NOT

#1 Post by andy_krider » 19 Jun 2006 10:57

Hi,
i using ATMEGA8 for cheap and to keep it tiny...
why no source sample?
give as something to do on setting/inc/defs if we try other mC
such as ATTiny, other ATMEGA...
cos sometime, your build in sub procedure didn't WORK....
(PWM_init) and i cant EDIT/FIX it our self....(for tune up)

i try to compile PWM in sample for ATMEGA16, ATMEGA8, 8535
some of them NOT WORK...specially on ATMEGA8 deffenetly not at all...
why?
and it not generate *.asm....cos even it fail to compile,
at lease it generate *.asm, so i can fix it on AVR Studio or something.

or generate C !!! that would be Cool.
even it fail to compile.

Best Regards,
Andy_KRider

vanja
mikroElektronika team
Posts: 253
Joined: 27 Jan 2005 15:13
Contact:

#2 Post by vanja » 19 Jun 2006 11:52

Example for PWM is not working as is, because we forget to put DDR setting in a library.

If you put in example:

Code: Select all

DDRB:=$FF;
after you have initialize PWM, it would work.

Post Reply

Return to “mikroPascal for AVR Wish List”