EmbeddedRelated.com
Forums
Memfault Beyond the Launch

pic18f simulator in source code

Started by joolzg December 1, 2010
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
------------------- ----- ---- -- -

On Dec 1, 6:21=A0pm, joolzg <joo...@btinternet.com> wrote:
> Anybody know of source code for the pic18f, i know about gpsim, but i nee=
d a bog standard c one if possible,
> > Trying to simulate some code but need to make modifications as it uses bi=
t 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 > ------------------- ----- ---- -- -
Probably Isis can make it. But whats the problm with Microchip Sim? It works fine for me...
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
------------------- ----- ---- -- -

On Dec 2, 8:10=A0am, joolzg <joo...@btinternet.com> wrote:
> 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. Just select the register and enter the value you need. You need to have them displayed, of course, or use a watch window, 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
------------------- ----- ---- -- -

On 12/3/2010 1:27 AM, joolzg wrote:
> 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.
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

Memfault Beyond the Launch