loup-garou
New Member
Hi all,
I'm a begginer in PIC18F programming (I started yesterday ), I'm using Microchip C18 compiler in MPLAB, I compiled some simple programms that I found in the C18 getting started from Microchip web sitehttps://ww1.microchip.com/downloads/en/DeviceDoc/MPLAB_C18_Getting_Started_5129 5f.pdf
like this one for led flashing:
I build and simulate it with MPLAB SIM succesfully, but when i tried to simulate it in schematic using ISIS the PIC did nothing !!!
how can I solve this problem ??
I joined the entire project + ISIS simulation file above
thanks in advance for any kind of help.
I'm a begginer in PIC18F programming (I started yesterday ), I'm using Microchip C18 compiler in MPLAB, I compiled some simple programms that I found in the C18 getting started from Microchip web sitehttps://ww1.microchip.com/downloads/en/DeviceDoc/MPLAB_C18_Getting_Started_5129 5f.pdf
like this one for led flashing:
Code:
#include <p18cxxx.h>
#pragma config WDT = OFF
void delay (void)
{
unsigned int i;
for (i = 0; i < 10000 ; i++)
;
}
void main (void)
{
TRISB = 0;
while (1)
{
/* Reset the LEDs */
PORTB = 0;
/* Delay so human eye can see change */
delay ();
/* Light the LEDs */
PORTB = 0x5A;
/* Delay so human eye can see change */
delay ();
}
}
I build and simulate it with MPLAB SIM succesfully, but when i tried to simulate it in schematic using ISIS the PIC did nothing !!!
how can I solve this problem ??
I joined the entire project + ISIS simulation file above
thanks in advance for any kind of help.
Attachments
Last edited: