Introduction
This is the documentation of using the picsim simulation library functions.
Library functions usage simple example
Demonstration of a simple example of using picsim library functions
picsim_simple.c
#include<picsim/picsim.h>
#include<stdio.h>
int main()
{
int i;
unsigned char val;
pic_init(&pic1, P16F628A,
"../../../examples/shift/shift.hex",1,20e6);
for(i=0;i<1000;i++)
{
}
}
Makefile
CC= gcc
FLAGS= -Wall -ggdb
all: picsim_simple.c
$(CC) $(FLAGS) picsim_simple.c -o picsim_simple -lpicsim
clean:
rm -rf picsim_simple
run:
picsim_simple P16F628A ../../examples/shift.hex