View previous topic :: View next topic |
Author |
Message |
Louati
Joined: 26 Mar 2012 Posts: 16
|
Use the Pin of MCLR as an I/O PIN |
Posted: Wed Jun 27, 2012 1:37 pm |
|
|
I simulate my program on isis and it show that the pin of MCLR is configurated as input despite I declarate it as input and I disactivated the MCLR in FUSES.
#include <18f4550.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP,PUT,NOMCLR
#USE DELAY(CLOCK=20MHZ, CRYSTAL)
#byte porte = 0xF84
#byte trise = 0xF96
void main (void)
{
trise=0b00000000;
porte=0b11111111;
while(1);
} |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19540
|
|
Posted: Wed Jun 27, 2012 1:39 pm |
|
|
Probably an ISIS bug.
Seriously, _forget ISIS as a PIC simulator_. I use it as an alternative to Spice for analog simulation, but on the PIC, it is so bad, that I stopped renewing the license...
Best Wishes |
|
|
Louati
Joined: 26 Mar 2012 Posts: 16
|
|
Posted: Wed Jun 27, 2012 1:51 pm |
|
|
Ttelmah wrote: | Probably an ISIS bug.
Seriously, _forget ISIS as a PIC simulator_. I use it as an alternative to Spice for analog simulation, but on the PIC, it is so bad, that I stopped renewing the license...
Best Wishes |
Thank you
Their is any other simulator for pic programs ? |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19540
|
|
Posted: Wed Jun 27, 2012 2:34 pm |
|
|
For really looking at the core, but complex to set up MPLAB. Big advantage, free. Realistically physical chip either with an ICD (but again these have problems), or trying directly.
Remember E3, _only supports operation as an input_. Look at the data sheet...
Best Wishes |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9243 Location: Greensville,Ontario
|
|
Posted: Wed Jun 27, 2012 2:43 pm |
|
|
Yup, ISIS is FULL of bugs, errors and faulty DRCs !!
If , and it's a big IF, you have to use a 'simulator, I second T to use MPLAB.
Frankly, in 20+ years of using PICs,double that for 'other' micros, I have yet to find a REAL simulator. One that ACTUALLY mimics the real world, properly configures the simulation for what YOU have input, etc.
Probably 99.994444% of the 'projects' presented here do not need 'simulation'. Progressive code building (making small code sections work) burned into real PICs, connected as they will be in the real world will work just fine. In fact better than ANY simulator. |
|
|
|