hello, I am alejandro.
I have a small problem, I am converting a code in mikrobasic for 16f767( three PWM) in code gcbasic.
I have the problem of configuring ccp2 in # define.
someone to an example of configuring a 16f767?
sorry my English
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Huh, did not realize that any of the 16f'''s had three PWM channels, learned something new, very nice. Just got a 18f1330, to do just that also.
To use the hardware PWM in GCBasic, look to the command reference/ HPWM in the GCBasic folder/Help file. There you will find an example on how to use the HPWM sub. In the include/lowlevel folder there is the pwm.h file that shows how GCBasic sets up to three CCPxCON registers. Have fun.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Perhaps a bit of confusion on my part, see now that the 16f767 CCP2 pin can be mapped to RB3 pin by the config register. So presumably #config CPP2_RB3 worked, if that's what the goal was.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hello, I am alejandro.
I have a small problem, I am converting a code in mikrobasic for 16f767( three PWM) in code gcbasic.
I have the problem of configuring ccp2 in # define.
someone to an example of configuring a 16f767?
sorry my English
Huh, did not realize that any of the 16f'''s had three PWM channels, learned something new, very nice. Just got a 18f1330, to do just that also.
To use the hardware PWM in GCBasic, look to the command reference/ HPWM in the GCBasic folder/Help file. There you will find an example on how to use the HPWM sub. In the include/lowlevel folder there is the pwm.h file that shows how GCBasic sets up to three CCPxCON registers. Have fun.
resolved.
GCBasic uses default RC.1 as CCP2.
thanks.
Perhaps a bit of confusion on my part, see now that the 16f767 CCP2 pin can be mapped to RB3 pin by the config register. So presumably #config CPP2_RB3 worked, if that's what the goal was.
thanks for the reply.
even if it does not work, by mistake.
however the default setting CCP2 as RC.1 engines work very well
If configured with the register CCPMultiplex