I have seen that there are quite a lot of bugs in 12 series and 16 series smaller pics. They don't simulate RA2INT which flowcode v4 shows RB0INT although there is no PORTB in those microcontrollers. Some of the PICs with PORTA change on interrupt neither simulate nor work in hardware.
I have changed couple of those FCD files. To have your attention I have uploaded here one for PIC 16f676 in which there is no PORTB..so no RB0 rather RA2INT which doesn't simulate in FCv4 but works in hardware. PORTA change on interrupt shown as PORTB which neither simulate nor work in hardware..
I have modified it and now RA2INT simulate and works in hardware and PORTA change on interrupt works in hardware but not simulate..Can you help me to modify FCD for simulation as well.
Code: Select all
[Interrupts]
;first 3 should always be 1=TMR0, 2=RB0INT, 3=PORTB
;any other interrupts need to also have this set: "st_bit(intcon,PEIE);\n"
GeneralInit="st_bit(intcon,GIE);\n"
Count=4
1=TMR0
2=RA2INT
3=PORTA
4=TMR1
Code: Select all
[RA2INT]
Name="INT"
Code: Select all
[PORTA]
Name="PORT"
Code: Select all
ioca = 0x01; //To enable RA0..so change accordingly
Enamul