+ Reply to Thread
Page 4 of 4
First 1 2 3 4
Results 46 to 49 of 49

Thread: programming/compiling in MPLAB problem

  1. #46
    Help us help you blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent
    Join Date
    Jan 2007
    Location
    Toronto, Canada
    Posts
    10,710
    Blog Entries
    5

    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.
    Last edited by blueroomelectronics; 9th June 2008 at 03:25 AM.
    Bill
    Smart Kits build Smart People

    http://www.blueroomelectronics.com/


  2. #47
    David James Good David James Good David James Good David James Good
    Join Date
    Jul 2007
    Location
    East Yorkshire, UK
    Posts
    53

    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.

  3. #48
    BeeBop Excellent BeeBop Excellent BeeBop Excellent BeeBop Excellent BeeBop Excellent BeeBop Excellent
    Join Date
    Dec 2005
    Location
    Vancouver Canada
    Posts
    1,193

    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.

  4. #49
    reaver26 Newbie
    Join Date
    Oct 2009
    Posts
    19

    Default

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

+ Reply to Thread
Page 4 of 4
First 1 2 3 4

Similar Threads

  1. Programming C in MPLAB
    By simrantogether in forum Micro Controllers
    Replies: 11
    Latest: 11th February 2008, 06:40 PM
  2. Programming PICC through MPLAB
    By MatrixPhreak in forum Micro Controllers
    Replies: 25
    Latest: 9th December 2007, 03:56 PM
  3. Programming HEX file with MPlab/Inchworm
    By gregmcc in forum Micro Controllers
    Replies: 4
    Latest: 27th April 2007, 03:20 PM
  4. compiling with MPLAB
    By evandude in forum Micro Controllers
    Replies: 4
    Latest: 9th April 2005, 08:08 AM
  5. Compiling 16F628A - problem
    By kenmac in forum Micro Controllers
    Replies: 4
    Latest: 23rd September 2004, 05:00 AM

Tags for this Thread