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
 
Tools
Old 9th June 2008, 04:23 AM   #46
Default

No it's running at 31.25kHz (default if I recall, I'll have to read the datasheet OSCCON)
You have to set OSCCON to 0x72 (8MHz)

Since you're using the 16F88 download the Firefly assembly instructions. It uses the 16F88 and has some tips in the manual. My favorite is the color instruction set.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com/

Last edited by blueroomelectronics; 9th June 2008 at 04:25 AM.
blueroomelectronics is offline  
Old 9th June 2008, 09:42 PM   #47
Default

Quote:
Originally Posted by Hank Fletcher View Post
Still nothing. Once I've saved the .asm, how do I get the .hex file? I've been going to file>export, then leaving the options as they are, and then saving as a .hex file. Then I import the .hex file. Is that right?
I could easily be wrong, but I don't think File | Export gives you anything useful unless you have already asembled your source (that is by Project | Make, Project | Build All or Project | Quickbuild).

Once you have assembled the source, you'll have a .hex file in the directory, and File | Export isn't needed in normal circumstances.
David James is offline  
Old 15th June 2008, 04:56 PM   #48
Default

Quote:
Originally Posted by David James View Post
I could easily be wrong, but I don't think File | Export gives you anything useful unless you have already asembled your source (that is by Project | Make, Project | Build All or Project | Quickbuild).

Once you have assembled the source, you'll have a .hex file in the directory, and File | Export isn't needed in normal circumstances.
Yes, I don't know how everyone missed this? Your assembly source is a series of human readable mnemonics which the *** assembler translates to machine instructions *** - binary. We find it much easier to read hex, than binary, but the data is the same. It is the way the data is presented which makes it binary or hex. Understanding this will help you understand the micro.

You can take a look at an assembled hex file in an editor, in concert with the Instruction Set - PICmicro Mid-Range MCU Family, found here:
Reference Manuals
and understand how the assembler works. There is a pdf, floating around the net, which explains the intel hex file, which mpasm spits out. If you want this, I'll find it for you.


Quote:
Originally Posted by Hank Fletcher View Post
Huh, those really are supposed to be greater and less than signs around the include! Fixed the "list" error and deleted the superfluous "config," but I'm still getting this:
...snip...
Help!
Most compilers or assemblers interpret angle brackets to mean 'search the default path,' and quotation marks mean 'search project directory.'

By now, I think you have figured out that your include file wasn't found, as the path was not correct.
BeeBop is offline  
Old 25th October 2009, 11:26 AM   #49
Default

do you guys have psudocodes for electronic pin code lock door with LCd display and interface to computer database via VB. net
reaver26 is offline  
Reply

Tags
mplab, problem, programming or compiling

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Programming C in MPLAB simrantogether Micro Controllers 11 11th February 2008 07:40 PM
Programming PICC through MPLAB MatrixPhreak Micro Controllers 25 9th December 2007 04:56 PM
Programming HEX file with MPlab/Inchworm gregmcc Micro Controllers 4 27th April 2007 04:20 PM
compiling with MPLAB evandude Micro Controllers 4 9th April 2005 09:08 AM
Compiling 16F628A - problem kenmac Micro Controllers 4 23rd September 2004 06:00 AM



All times are GMT. The time now is 05:00 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker