Forum breadcrumbs - You are here:ForumGeneral: Report BugsPIC14 issues
You need to log in to create posts and topics.

PIC14 issues

Hello,

some instruction bugs:
- missing clrw instruction
- moviw does not affect WREG

Simulide version: 1.1.0-SR1

The asm and hex files in the zip are from MPLAB v8.92. In MPLAB SIM this demonstration code works as expected.

and a configuration bug:

I tried to add PIC16F1828. 20 pin package (like 16F685).
PORTB has the upper four bits with pull ups and analog inputs.
If I configure ANSELB and WPUB, SIMULIDE crashes.
The working configuration:
<port name="PORTB" pins="8" outreg="PORTB,LATB" dirreg="!TRISB" pinmask="11110000">
<interrupt name="IOC" mask="11110000"/>
</port>
but I need this:
<port name="PORTB" pins="8" outreg="PORTB,LATB" dirreg="!TRISB" pinmask="11110000"
 configregsA="ANSELB"
 pullups="WPUB">
<interrupt name="IOC" mask="11110000"/>
</port>

Thanks for your work. SIMULIDE is a great tool.

Uploaded files:

Hi and thanks for reporting.

I think CLRW, MOVIW, MOVWI are fixed now.
Keep an eye on the next tester build.

About PIC16F1828 I don't know what is needed to add it, I will have a look.

Hi,

I tested it with SimulIDE_1.1.0-260127_test.zip and both CLRW and MOVIW worked well.

Thank you.