PDA

View Full Version : HPWM...error message?



ibra
- 14th December 2007, 06:41
hi...

my pic16f877a worked well..now i am trying to control dc motor..
my first job succeeded..which is to read a variable resistor..
but when i tryed to compare and test the digital value and output a dutycycle with
HPWM instruction this message appeares:

error: macro hpwm?tcc not found in macro file.

what is the problem, i cant understand this error?

note: i still a beginner in microcontroller field.

mister_e
- 14th December 2007, 17:34
?TCC
Bit
Constant
Constant

i bet you use something like

HPWM PORTx.x, 127,1000 ?

But you just need to write the CCP# you want to use

say

HPWM 1,127,1000