Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 20th December 2003, 05:59 PM   (permalink)
Default PIC simulator

what is simulator and what is it for?
is it used to simulate the code that i written but in GUI format before i build the physical hardware?
i am using PICBasic Pro compiler.is there any simulator compatible with it?

and finally what is called bootloader?
electricano is offline  
Old 20th December 2003, 07:48 PM   (permalink)
Default

Yes, a simulater lets you test certain fragments of code on your pc, to see it acts like you would like it to. But there is a limit to simulating, not all perhepials can be simulated.

Picbasic pro compiles your basic code into pic assembler before an acutal hex file is produced. So you'll always be able to simulate the produced assembly with any pic simulator. But i've never seen a simulator for pic-basic wich simulates on the basic language level itself.

A bootloader allows certain pics to self-program. The bootloader program is first put into the pic using normal programming methods (a normal programmer). Then you can use the bootloader to get a new program from any source the pic is capable of interfacing with (a pc connected to the serial port for example) and let the pic write it to its own program memory.

Not all pics are capable of this , as far as i know only the 16F87X series and most flash 18F's can
Exo is offline  
Old 20th December 2003, 08:30 PM   (permalink)
Default

use pic simulator IDE

its made to go well with the picbasic package, but it works with the hex code....so you can use assembly.

I use it all the time at work, definately worth the $20 to register it.
frodus is offline  
Old 21st December 2003, 07:07 AM   (permalink)
Default

is hex code produced by one compiler is different than what produced by other compiler?
electricano is offline  
Old 21st December 2003, 10:33 AM   (permalink)
Default

Quote:
Originally Posted by electricano
is hex code produced by one compiler is different than what produced by other compiler?
HEX code is simply the code that the programmer transfers to the PIC, while different compilers will produce different code in their HEX files they should all be compatible. There are actually three different HEX files types supported by MicroChip, have a look at Appendices A3, A4, and A5 in the MPASM helpfile - the first one is the usual one (and the only one I bother supporting in my programmer).
Nigel Goodwin is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 07:44 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker