PDA

View Full Version : can HWPM use in PIC16f84a?



tkly36
- 20th November 2006, 17:19
i am confuse about using HPWM...
can we use HPWM in pic16f84a?
what is the meaning of channel HPWM command?

my target project now is to control the rotation speed of dc motor.

sougata
- 20th November 2006, 17:35
Hi,

PIC16F84 does not have a hardware PWM peripheral on it and thus cannot be used with the HPWM function. For this you need a PIC that supports it. Basically in a Harware PWM you just program your PWM once and it goes on in the background without any software intervention.

HenrikOlsson
- 20th November 2006, 17:38
Hi,
The HPWM command uses the chips CCP module(s) but the 16F84A doesn't have any so it won't work. Look at the, for example, 16F628 instead.

Some PIC's have more than one CCP module and the value channel specifies which of them you want to use. The command supports channel 1 and 2 only.

/Henrik Olsson.