What frequency for the PWM? What else is the processor doing, if anything, while generating the PWM? Bob Ammerman RAm Systems ----- Original Message ----- From: "Scott Dattalo" To: Sent: Tuesday, March 18, 2003 5:16 PM Subject: Re: [PIC]: 4 software pwm in C > On Tue, 18 Mar 2003, Andre Abelian wrote: > > > Hi to all engineers, > > > > I need to generate 4 outputs like this and all 4 duty cycle > > Get changed at the same time. Even I had 4 hardware PWM in pic > > I do not think I could make it start like that. > > > > 0d 90d 180d 270d 360d > > > > |-----|-----|-----|-----| > > > > > > |------------| > > ________| |-- > > > > --------| |-- > > |____________| > > > > |-----------| | > > | |___________| > > > > | |-----------| > > |___________| | > > > > > > I use hi-tech c 18f452 any idea or recommendation > > Will highly appreciate. I was thinking to use array > > But then how to change duty cycle. The frequency is 60hz > > It ain't C, but you should be able to inline it: > > http://www.dattalo.com/technical/software/pic/pwm8.asm > > Scott > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads > -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.