pic18f simulator in source code

Anybody know of source code for the pic18f, i know about gpsim, but i need a bog standard c one if possible,

Trying to simulate some code but need to make modifications as it uses bit banging i2c to get data and i cannot get microchips simulator to work.

joolz

--
--------------------------------- --- -- -
Posted with NewsLeecher v4.0 Beta 21 (RC)
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -
Reply to
joolzg
Loading thread data ...

d a bog standard c one if possible,

t banging i2c to get data and i cannot get microchips simulator

Probably Isis can make it. But whats the problm with Microchip Sim? It works fine for me...

Reply to
Sink0

ive tried to simulate serial flash and an external eeprom but cant get it to let the code get past the check for data sent.

if you have an idea how to inject data into the spi registers to simulate reading from a flash i would be grateful of some help.

joolz

--
--------------------------------- --- -- -
Posted with NewsLeecher v4.0 Beta 21 (RC)
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -
Reply to
joolzg

to let the code get past the check for data sent.

reading from a flash i would be grateful of some help.

Just select the register and enter the value you need. You need to have them displayed, of course, or use a watch window,

Leon

Reply to
Leon

yeah and i would need to do that for every byte read/written to the device!!

how about automation, which is why i wanted source code so i could have an externa eeprom file to test my code with.

i dont want to modify the code to get around the problem as i want the real code running.

will have to look at getting the hardware back, its in test so i have no access at the moment.

joolz

--
--------------------------------- --- -- -
Posted with NewsLeecher v4.0 Beta 21 (RC)
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -
Reply to
joolzg

externa eeprom file to test my code with.

My recollection is that MPLAB has some facility for automated external device simulation. I don't have a copy handy to check now. My recollection is that you can schedule writing a location or I/O at a particular simulated time. I used it years ago by computing the desired scheduled activity and importing the activity file.

--
Thad
Reply to
Thad Smith

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.