PDA

View Full Version : HPWM problems



Samoele
- 7th November 2006, 20:14
Hello,

does anybody know the usage of CCP1(PWM) modul in PIC16F876?

I have some problems, which I can not solve by myself.

1. I can reach frequency 100Hz on channel 1 only by 455KHZ resonator (HPWM pin,var,850). Does it exist some software solution (i.e. with timer settings by 4 MHZ clock)?

2. I would like to synhronize beginning of PWM pulse with outside frequency 50 HZ. Can CCP modul be activated with outside pin (INT)? I have tried to set register CCP1CON=11, but times of activation were not constant.
Can anybody explain all other settings for HPWM?

Thank you for your help in advance.

Samo, Slovenia

BigWumpus
- 7th November 2006, 21:48
If you want to serve such slow frequencies, it might be better to do it by software with a INT-routine and timers.

You want to do a dimmer for 50Hz ?

sayzer
- 7th November 2006, 22:02
Hi Samo,

Check this link;
http://www.picbasic.co.uk/forum/showthread.php?t=4994

and download the nice program of mister_e's.

It will give you what you need.


-----------------------

Samoele
- 8th November 2006, 07:23
Yes bigWumps, this will be a used for 50 Hz heater regulator. Do you have any working schema for this application?

Samo