16F88 bootlader with Internal OSC


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,621


    Did you find this post helpful? Yes | No

    Default

    Thanks a lot Darrel,
    I'll give it a go first thing in the morning, concidering your track record I feel confident ;-) I'll let you know ASAP though.

    I guess you changed the Goto bootloader adress to actually jump past the bootloader, setting OSCCON and then back to the bootloader? Or do I need to worry about overwriting those 'certain locations'?

    Never used meProg but I did spend a couple of hours today looking for dissassemblers and stuff, found a few, some I couldn't get to work at all, and some showed me an asm listing but no way to save it without coughing up money (fair enough I guess).

    And of course, OSCCON should be set to $60 and not $68, don't know why I was trying to set a read-only bit.....

    Again, thanks alot!
    /Henrik.

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by HenrikOlsson View Post
    I guess you changed the Goto bootloader adress to actually jump past the bootloader, setting OSCCON and then back to the bootloader? Or do I need to worry about overwriting those 'certain locations'?
    Yes, there's a small area just past the bootloader that didn't appear to be used, and I only put about 5 words in there. So it won't affect the amount of code you would normally be able to use.

    My only fear is if that area is used by the bootloader, it may only work once. I don't think it will overwrite it, but I can't test it here to be sure.

    Fingers crossed.


    And of course, OSCCON should be set to $60 and not $68, don't know why I was trying to set a read-only bit.....
    Since you can't write to that bit ... a 1 is just as valid as a 0.
    DT

  3. #3
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,621


    Did you find this post helpful? Yes | No

    Default

    Hi Darrel,
    Your bootloader file seems to be working perfectly! I've only downloaded a few very short test-programs but so far but it seems to work just fine.

    Now off to get a 100Hz timer interrupt going, with DT-Ints of course ;-)

    Thank you!
    /Henrik.

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Great. sometimes a gamble pays off.

    Now off to get a 100Hz timer interrupt going, with DT-Ints of course ;-)
    Of course.

    Using the Timer Template ?
    <br>
    DT

  5. #5
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,621


    Did you find this post helpful? Yes | No

    Default

    Hi Darrel,
    Yes, using the timer template I was able to get it going in a matter of minutes - awsome piece of work that Instant Interrupt system!

    A bit OT: I've also started playing a bit with this Ladder compiler for PIC's, pretty cool and the hex-files it produces leaves the first four bytes of program memory empty so I can program the chip with MCLoader, sweet.

    /Henrik.

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Hmmm, was it a Freudian slip.
    Funny how the thread was spelled ... and it ends up you're using a Ladder program.

    Back when I was working with PLC's I never really liked dealing with Ladder Logic.
    That program you pointed to brought back some Scary memories.

    But thanks for pointing it out, because I'm really interested in the SolveSpace program on the same website.

    That'll suck up a few hundred hours of my time.
    <br>
    DT

  7. #7
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,621


    Did you find this post helpful? Yes | No

    Default

    Hi Darrel,
    Yeah, I noticed I had mis-spelled the thread title, I hate it when that happens and I can't seem to figure out how to go back and edit it.

    I'm not very comfortable with ladder programming myself but I think it has its place. I did look at the solve space video on the site, pretty cool, please don't disappear from here ;-)

    /Henrik.

Similar Threads

  1. Internal vs. external osc for comms
    By mtripoli in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th January 2010, 15:58
  2. 16f88 internal osc 8mhz max serial baudrate ?
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 17th December 2008, 00:27
  3. 18F4520 and internal osc & PLL
    By pwhitt in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 15th September 2008, 07:38
  4. Internal Osc help
    By BobK in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 12th January 2007, 21:50
  5. 12f675 internal osc question.....
    By Gabe@SPdFtsh in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 6th January 2004, 07:33

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