LCD showing mostly jibberish on 16F716


Closed Thread
Results 1 to 22 of 22

Hybrid View

  1. #1
    Join Date
    Dec 2007
    Posts
    60


    Did you find this post helpful? Yes | No

    Default Re: LCD showing mostly jibberish on 16F716

    I noticed the LCD_BITS 4 line in your code. I've never used that line before and always used 4-bit LCDs. I added it anyway and no change. I also changed the LCD init line to same as yours, and outputted everything on one LCDOUT command like you. Same result.

    I'm sure I recall using a specific command to use the internal osc in the past, whereas this datasheet indicates clearing option register bit 5 will turn it on?
    To be honest I don't really know how to set the option register bits with the setup I am using now. I'm using the dos-based pickit2 so I don't get to choose the option bits before I hit program.

    I feel stupid for claiming I've done this before but not knowing how to set option reg bits.
    Last edited by davewanna; - 26th May 2015 at 17:19.

  2. #2
    Join Date
    Dec 2007
    Posts
    60


    Did you find this post helpful? Yes | No

    Default Re: LCD showing mostly jibberish on 16F716

    After reading more datasheet and looking at the PBP inc file for this chip, the best I came up with in my tired state is to change my first line to....

    @ __CONFIG _WDT_ON & _RC_OSC & _PWRTE_ON & OPTION_REG = %11011000

    Now I'm sure this is wrong, can anyone point me to the idiots guide to setting option regs?
    Thanks

  3. #3
    Join Date
    Dec 2007
    Posts
    60


    Did you find this post helpful? Yes | No

    Default Re: LCD showing mostly jibberish on 16F716

    Henrik,

    That would explain why I can't find an easy way of turning it on and off. Having said that, in my circuit the OSC pins are left floating. How is it doing anything?

    Edit: I think you're right Henrik, I've been trying to make it do something it isn't meant to do.
    I will add a crystal osc tomorrow and change the osc source and see how I go.
    Thanks
    Last edited by davewanna; - 26th May 2015 at 17:41.

  4. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default Re: LCD showing mostly jibberish on 16F716

    Yeah, with the OSC pins floating it might be picking up noise and running off of that.
    For that device you need an external crystal/resonator or an external R/C network - or an external clock signal for that matter. With both OSC pins floating you have neither.

    /Henrik.

  5. #5
    Join Date
    Dec 2007
    Posts
    60


    Did you find this post helpful? Yes | No

    Default Re: LCD showing mostly jibberish on 16F716

    You're exactly right Henrick.
    I put a 4Mhz osc on it thismorning, works perfectly.

    I'm surprised it worked at all with no external osc components.

    Cheers

  6. #6
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default Re: LCD showing mostly jibberish on 16F716

    I must admit I'm surprised that it doesn't have a built in oscillator. Thought that all pics had that ??

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


    Did you find this post helpful? Yes | No

    Default Re: LCD showing mostly jibberish on 16F716

    Hi,
    Actually, according to the product selector on Microchips website only 18 out of around 375 models (which are in production) is missing an internal oscillator of one type or another. They are:
    Code:
    PIC16F54
    PIC16F57
    PIC16F716
    PIC16F59
    PIC16F1454
    PIC16F1455
    PIC16F1459
    PIC16HV540
    PIC16F818
    PIC16F819
    PIC16F72
    PIC16F73
    PIC16F84A
    PIC16F74
    PIC16F76
    PIC16F77
    PIC18F6520
    PIC18F8520
    So it's close but not quite all ;-)

    /Henrik.

Similar Threads

  1. Replies: 6
    Last Post: - 19th August 2013, 12:22
  2. 16f716
    By amit28 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 28th November 2007, 18:56
  3. 16f716
    By mwhatley in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 3rd November 2006, 21:35
  4. Showing numbers in diffrent ways?
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 29th July 2005, 16:57
  5. Reading a Hex value from a Modem and showing it as Decimal..
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 16th March 2005, 18:58

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