Page 1 of 1
CCP2 alternative pin
Posted: Fri Feb 06, 2015 9:24 am
by DirkB
Hello,
i am using PIC16F1825 and need all pins. I use only one CCP and all other pins are in use.
How to enable CCP2 on alternative pin A5? i have checked box "use alternative pin", but
it doesn't works. Is this a bug or a feature.
thanks
Dirk
Re: CCP2 alternative pin
Posted: Fri Feb 06, 2015 4:01 pm
by LeighM
Hi Dirk,
Looks like the alternative pin is not fully supported in V5.
Try adding the following C code
you will still also need to check the box "use alternative pin"
Regards,
Leigh
Re: CCP2 alternative pin
Posted: Sat Feb 07, 2015 2:29 pm
by DirkB
Hello Leigh,
thanks, but still doesn't works. Alternative pin is checked.
Dirk
Re: CCP2 alternative pin
Posted: Sat Feb 07, 2015 10:43 pm
by medelec35
Hi Dirk,
I have tried with FC5 setting up CCP2 alternative pin on 16F1824 since it uses the same RA5 and also requires same bit (0)of alternative pin function register apfcon1 to be set before it will work.
I can confirm it works.
If you are having trouble getting it to work, perhaps you can toggle RA5 high and low with outputs to see if connections are OK.
If you're still having problems after, then posting flowchart could help.
Martin
Re: CCP2 alternative pin
Posted: Thu Feb 12, 2015 5:04 pm
by DirkB
hello,
you are right. Alternative pin works.
But with timer1 in flowchart it in my
case doesn't!
thanks
Dirk
Re: CCP2 alternative pin
Posted: Thu Feb 12, 2015 5:19 pm
by medelec35
I have just check on the data sheet, and the issue you described is probably caused by the timer1 bug.
I posted a fix
here
Martin
Re: CCP2 alternative pin
Posted: Thu Feb 12, 2015 7:54 pm
by DirkB
Hello Martin,
it's the same with 16F1825? I try it an report you. I think
before matrix give up V5 there a lot of bug-fixes and should
documentation these.
In Flowcode V6 midi doesn't works correct. In V5 there is
no problem with midi. In V6 are a lot more midi component-makros
without any documentation. I have a big project with midi. After
importing from v5 to v6 midi doesn't work. This project had a lot
(six month) of work. That's the reason i will work with Flowcode V5
at the moment.
thanks a lot
Dirk
Re: CCP2 alternative pin
Posted: Thu Feb 12, 2015 8:17 pm
by medelec35
Hi Dirk,
I believe This bug has been present since the beginning of Flowcode.
But since with the earlier chips people would have not noticed the bug, then it's not been reported.
As far as i'm aware the bug has been fixed in FC6 which is now much better since the last update.
I have both Flowcode 5 and Flowcode 6 professional.
Because of the improvements sic the last V6 update i have switch from using V5 to V6 in all my latest projects.
With Flowcode V6 are now working like a charm.
Did the fix solve the issue?
Martin