Using the Alternate Pin Funztion Configuration register APFCON on a PIC12F1840 causes gpsim to crash with the following message:
gpsim: p1xf1xxx.cc:94: virtual void APFCON::put(unsigned int): Assertion `m_ccpcon' failed.
the code location at which the simulation fails is the third one hereby reported:
BANKSEL APFCON
clrf APFCON
bsf APFCON,CCP1SEL
gpsim version 0.30.0
OS: Linux debian
Anonymous
I cannot reproduce this in gpsim 0.31.0 which has been out for over 6 months and there has been significant changes in this area. I suggest you download the latest SVN code files and build it. Alternativly if you are using the latest gpsim package from debian, request that it be upgraded to 0.31.0.
Compiled 0.31.0 and the bug disappeared. Thank You