16F88 internal clock configuration


Closed Thread
Results 1 to 29 of 29

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    so there's no analog to digital conversion on a.0 and a.1 ???

    you must disable those analog pins to make them digital.. at least

    ANSEL=3 'set a.0 and a.1 as digital input

    and capacitor should be consider.
    Last edited by mister_e; - 7th March 2005 at 17:26.
    Steve

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

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


    Did you find this post helpful? Yes | No

    Default

    Set the .. ANSEL=3 'set a.0 and a.1 as digital input, thx. Probably a good idea, but did not have any impact.

    Oddly as I test, I find that my setting for OSCAL 8 mhz or OSCAL 4 Mhz does not have any impact on the system..

    I have tried:

    OSCCON=%01101000 ' 4 mhz
    DEFINE OSC 4

    ----

    and in another test...

    DEFINE OSC 8
    OSCCON=%01111000 '8 Mhz


    Something must not be getting written somewhere. I'd expect that these settings would have a big impact on overall system operation.

    Is there some prescaler setting that I am missing?

    tg

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


    Did you find this post helpful? Yes | No

    Default

    prescaller have nothing to do with your code if you're not using TIMERs. Can you post your code here or it's a 'military secret'
    Steve

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

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


    Did you find this post helpful? Yes | No

    Default Program posting - no military secret here!

    This program reads a data sentence sent at 9600b 8,1.n. The sentence has two start bytes, then 34 data bytes. It works on the 16F876A on the test board from Microchip, but the plain old F88 on my breadboard is acting strange as the thread indicates..

    TG
    Attached Files Attached Files

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


    Did you find this post helpful? Yes | No

    Default

    reason is simple... you run out of memory...

    PIC16F876 : 8K
    PIC16F88: 4K
    YourCode :4287 words

    so you can for sure shrink it using internal or external EEPROM instead of arrays and few other things. It has to fit in a 4k memory space
    Steve

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

  6. #6
    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

  7. #7
    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.

Similar Threads

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