You need to log in to create posts and topics.

Help implementing PIC18F

Good evening Forum folks, Could anyone help me with how I can implement the PIC18F 4520 series and others in the new SimulIDE, as the software is open source I thought I could do this, of course with Arcachofo's permission. Where do I start????? I didn't want to be a slave to the Proteus Simulator, to simulate microcontrollers!!!!!!

Rio has reacted to this post.
Rio

Hi Francisco.

To implement PIC18F the first thing to do is to implement the instruction set, stack and other stuff used by the CPU.
As an example the IS for PIC16F is implemented here:
https://github.com/eeTools/SimulIDE-dev/blob/master/src/microsim/cores/pic/pic14core.cpp
https://github.com/eeTools/SimulIDE-dev/blob/master/src/microsim/cores/pic/pic14core.h
https://github.com/eeTools/SimulIDE-dev/blob/master/src/microsim/cores/pic/picmrcore.cpp
https://github.com/eeTools/SimulIDE-dev/blob/master/src/microsim/cores/pic/picmrcore.h

Then you need to implement all the peripherals.
For example peripherals for PIC16F are implemented in all the files here:
https://github.com/eeTools/SimulIDE-dev/tree/master/src/microsim/cores/pic

Then you need to create configuration files for each model, describing memory map, registers. interrupts and peripherals used.
For example for PIC16F:
https://github.com/eeTools/SimulIDE-dev/tree/master/resources/data/PIC

 

Rio has reacted to this post.
Rio