18f6722 PWM2 Pinout?
Posted: Thu Nov 04, 2010 12:16 am
Hi again,
have had to upgrade to a bigger chip, so thought id go all out and use the 18f6722 loads of pins and memory.
I want to use PWM2, looking at the datasheet this is set by default to RC1.
I would like to use PWM2 using pin RE7, This is also set in the defines but is set as 2a.
#define MX_PWM_TRIS1 trisc
#define MX_PWM_1 2
#define MX_PWM_TRIS2 trisc
#define MX_PWM_2 1
#define MX_PWM_TRIS2a trise
#define MX_PWM_2a 7
#define MX_PWM_TRIS3 trisg
#define MX_PWM_3 0
#define MX_PWM_TRIS4 trisg
#define MX_PWM_4 3
#define MX_PWM_TRIS5 trisg
#define MX_PWM_5 4
Are both outputs active at the same time?? or is there a way of selecting one or the other???
have had to upgrade to a bigger chip, so thought id go all out and use the 18f6722 loads of pins and memory.
I want to use PWM2, looking at the datasheet this is set by default to RC1.
I would like to use PWM2 using pin RE7, This is also set in the defines but is set as 2a.
#define MX_PWM_TRIS1 trisc
#define MX_PWM_1 2
#define MX_PWM_TRIS2 trisc
#define MX_PWM_2 1
#define MX_PWM_TRIS2a trise
#define MX_PWM_2a 7
#define MX_PWM_TRIS3 trisg
#define MX_PWM_3 0
#define MX_PWM_TRIS4 trisg
#define MX_PWM_4 3
#define MX_PWM_TRIS5 trisg
#define MX_PWM_5 4
Are both outputs active at the same time?? or is there a way of selecting one or the other???