Help Getting Started


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Aug 2009
    Posts
    7


    Did you find this post helpful? Yes | No

    Default Thanks

    Thanks for the advice

    I did try changing the oscillator type to HS - no luck

    I will try the other suggestions. I read a fair amount before investing and was under the impression that the 16F877a was a reasonable place to start. Maybe not!

    Thanks

    Fred

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    I still think the 877A is a good starter chip. It can do enough things untill you need LONGS or something like that.

    Seems like there is some problem with the programs that set the fuses for you over riding the code. At least over the years it seems like this has come up before.

    On the test board, is the OSC a resonator or does it have capacitors added?

    Port D is non analog so that should not be the problem. MCLR has to be tied high on this one. High and Low make the pin an output so TRIS should not be it either.

    I still think it is in the programers software.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Aug 2009
    Posts
    7


    Did you find this post helpful? Yes | No

    Angry

    I think there is something wrong in the programmer. Nothing that I write in PBPRO seems to work. In fact, the ONLY thing I have gotten to run is the .hex X-1 board test file that came with the development board. The interesting thing is that this file is loaded directly into the programmer and never passes through PBPRO.

    I looked at the configurations of the compiler. PBPRO came with Mecanique microcode and that is the IDE I'm using. It also came with MPLAB so I played with it a bit. According to the info that came with the compiler, for the 16F series, the IDE automatically uses MPASMWIN - so I looked at that. It is creating a hex file, so I took the hex file and passed it to the melabs USB programmer and then programmed the chip - I even used the manual clear on the programmer and then checked the memory in the chip after programming to be sure that the same hex file was present in the chip as that created by MPASM. I also switched off MPASM and opted to use the PM assembler provided - no luck. I even wrote the a simple led on/off program in assembly using the ASM...ENDASM commands in PBPRO and that didn't work. The bottom line is that nothing I do in PBPRO works. The problem is likely so fundamental that "we" are all overlooking it. Yes, the board is plugged in and I have measured the Vdd (4.99V).

    Thanks

    Fred

  4. #4
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Hi Fred,
    Make sure which "Compile" you are using ICD Compile does not work unless you are using the ICD. PBP generates an INTEL Hex file and that is what your programmer needs to find, and load onto the chip. It generates asm and mac and some others too. All with the filename you chose.
    My comments regarding the 16f628 . . . is due to their not having adcon ansel . . .
    According to the info that came with the compiler, for the 16F series, the IDE automatically uses MPASMWIN
    PBP usually defaults to it's own assembler in MCS to use mpasm you have to change the setting . . . file, view, compiler options, assembler tab, check box use mpasm
    Last edited by Archangel; - 25th August 2009 at 05:00.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  5. #5
    Join Date
    Aug 2009
    Posts
    7


    Did you find this post helpful? Yes | No

    Default

    SUCCESS !!!

    Thanks everyone for your help. I really appreciate your insights!
    I did use the MPASM switch and it worked. The other thing that I did was send a "manual" erase from the programmer screen and then checked to be sure that the chip was blank before loading my program. I had lights flashing all night!! Now on to my project -

    Thanks AGAIN
    Fred

  6. #6
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    <h1> Congratulations !</h1> Feels pretty good huh?
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. Trying to get started w/ HPWM
    By circuitpro in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 20th February 2010, 18:42
  2. getting started
    By cunninghamjohn in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 15th November 2008, 18:42
  3. Getting started... again...
    By Neosec in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 31st May 2008, 02:09
  4. How did you get started .....
    By keithdoxey in forum General
    Replies: 25
    Last Post: - 13th April 2007, 19:29
  5. getting started with a PIC 18F4550
    By bigbear in forum General
    Replies: 2
    Last Post: - 16th October 2006, 02:31

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts