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