16F88 internal clock configuration


Closed Thread
Results 1 to 29 of 29

Hybrid View

  1. #1
    Join Date
    Feb 2005
    Location
    Bellevue
    Posts
    125


    Did you find this post helpful? Yes | No

    Red face

    ...wow, that easy huh? Well, I removed some of the code, and it does run much better, indeed!! I still see some odd behavior however:

    1. The voltage calculation is inaccurate
    2. The 'initialize' subroutine does not fire, or only partially fires
    3. The N, S, E, W Select Case does not appear to be working as the values are missing in the output
    4. The Select Case routine for the lock flag (which is 1,2, or 3. is showing an ERROR - or something besides these values.

    The other calculations look right...

    I think all this may be convincing me not to try to port over, as this program runs really well on the other chip... arghhh

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Post your new code here to see wha can it should be.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Feb 2005
    Location
    Bellevue
    Posts
    125


    Did you find this post helpful? Yes | No

    Default

    Here it is..

    It won't do much unless you have this particular type of GPS that outputs the wierd data.. I captured some as a text file(which it is not).

    Attached is a zip file with

    1. shorter program files (Less the LST - it was too big)
    2. the 16F88 include file I use

    TG
    Attached Files Attached Files

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    probably i'm getting older and need to sleep after only 22 hours awake but, i can't see why it's not working. I really suspect an hardware problem now. 0.1 uF ceramic Capacitor close to the PIC.

    i didn't get any compile error with the select case stuff.

    did you install the PBP patch for the F88???

    Here's the patch

    about the calculation what about if you skip the hexa to decimal and do like Bruce propose few post ago!!!
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Feb 2005
    Location
    Bellevue
    Posts
    125


    Did you find this post helpful? Yes | No

    Default

    Thanks.. I'll try the patch and see what happens. Is the CAP from Gnd - + close to the V+ pin? I have nothing there.

    What post about skipping the Hex conv? I don't see that post in this thread.

    TG

  6. #6
    Join Date
    Feb 2005
    Location
    Bellevue
    Posts
    125


    Did you find this post helpful? Yes | No

    Default

    Odd.. that patch does not work for me. It says the 16F88 file is an "unknown version"...

  7. #7
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    hhhhhhhhhhaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa So you don't have the PBP 2.45!!!! probably the main cause of all your problem. OR if you have V2.45, remove it, reboot your system in 'safe mode', reinstall everything, and after that install the patch. everything should be done in a shell environement.

    start>> all programs>> accesories>> command prompt

    AND yes the capacitor must be place between 5 volt and ground as close as you can to the PIC.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  8. #8
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Tom Gonser
    What post about skipping the Hex conv? I don't see that post in this thread.

    TG
    i thought it was on this post... sorry

    there you go
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  9. #9
    Join Date
    Feb 2005
    Location
    Bellevue
    Posts
    125


    Did you find this post helpful? Yes | No

    Default

    Hmmm.. Reinstalling PBP is just copying files to a folder I thought. I think I need to do this, but am not sure exactly how to 'deinstall'. PBP does not show up in WinXP as a program that has a de-installer. I can move them out of a folder, restart, then put them back, but I don't see what that would do.

    Also, I think the 16F88.bas file is corrupt because the installer tries to update it, but says it fails because of an unknown version of that 16f88.bas.... This is probably the reason for the odd behaviour.

    I'll ping MELABS..

    Thanks for all your help!

    Tom

Similar Threads

  1. 16F88 bootlader with Internal OSC
    By HenrikOlsson in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 2nd August 2009, 10:15
  2. external clock / internal clock
    By grounded in forum General
    Replies: 4
    Last Post: - 31st May 2008, 17:44
  3. Setting up internal clock correctly?
    By JohnM in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th March 2008, 20:29
  4. 16F688 Internal clock and MCLR
    By manxman in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 18th August 2007, 18:38
  5. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 20:36

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