LCD Display not working - PIC heating...


Closed Thread
Results 1 to 33 of 33

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default

    On thing is still unclear to me after this experience: the DEFINE commands.

    Since I want to understand this thing clearly, I have wired my display once more on the "original" layout (as in post #1) and modified the DEFINE commands back to "original" too. No worries, still working.

    I had to try this without the DEFINE commands and guess what, it works!!!

    Since I understood these command would be almost mandatory, it's beginning again to be a mess in my (small) brain. I'll open a new thread with this question.

    Thanks again to all of you.

    ***************************
    Mille mercis Steve,

    Tu avais la solution. Bravo! Alors, dansons la gigue :-)
    Roger

  2. #2
    Join Date
    Jun 2006
    Location
    Bangalore, India
    Posts
    136


    Did you find this post helpful? Yes | No

    Post Over heating not good

    Usually when a pic heats, it means it is fried. Try replacing it.
    If the LCD also heated when the pic did, it could also be fried...

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


    Did you find this post helpful? Yes | No

    Default

    it's been said... post #22
    Steve

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

  4. #4
    Join Date
    Jul 2005
    Posts
    78


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by flotulopex
    Since I understood these command would be almost mandatory, it's beginning again to be a mess in my (small) brain.
    "Almost" is the opperational word here. The DEFINEs are optional if you connect the LCD the way PBP assumes you will connect them: data lines DB4-DB7 to Port A.0 to A.3, RS to A.4, E to B.3.

    If you connected your LCD this way then the defines are truly optional (and since you said your code did work without them then you had to have done just that).

    The manual says just this, check page 95.

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


    Did you find this post helpful? Yes | No

    Default

    For most DEFINE's, there is a corresponding default value declared in the library files. Perhaps we should create an FAQ that lists them, since there aren't that many. But for now, they can be found in the PBPPICxx.lib file in the PBP folder. Here are the LCD defaults from the PBPPIC14.lib.
    Code:
    ;****************************************************************
    ;* Default LCD port values                                      *
    ;****************************************************************
    
        ifndef LCD_DREG             ; LCD data pins port
    LCD_DREG EQU PORTA
        endif
        ifndef LCD_DBIT             ; LCD low order data bit (0 or 4)
    LCD_DBIT EQU 0
        endif
        ifndef LCD_RSREG            ; LCD register select pin port
    LCD_RSREG EQU PORTA
        endif
        ifndef LCD_RSBIT            ; LCD register select pin bit
    LCD_RSBIT EQU 4
        endif
        ifndef LCD_RWREG            ; LCD read/write select pin port
    LCD_RWREG EQU LCD_RSREG
        endif
        ifndef LCD_RWBIT            ; LCD read/write select pin bit
    LCD_RWBIT EQU LCD_RSBIT
        endif
        ifndef LCD_EREG             ; LCD enable pin port
    LCD_EREG EQU PORTB
        endif
        ifndef LCD_EBIT             ; LCD enable pin bit
    LCD_EBIT EQU 3
        endif
        ifndef LCD_BITS             ; Number of LCD data bits (4 or 8)
    LCD_BITS EQU 4
        endif
        ifndef LCD_LINES            ; Number of lines in LCD (1, 2, 4)
    LCD_LINES EQU 2
        endif
        ifndef LCD_COMMANDUS	; LCD command delay in us
    LCD_COMMANDUS EQU 2000
        endif
        ifndef LCD_DATAUS		; LCD data delay in us (0 - 255)
    LCD_DATAUS EQU 50
        endif
    DT

  6. #6
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default

    Thank you Darrel.

    It makes it more clear to me what PBP does "in the dark".
    Roger

Similar Threads

  1. Simple LCD code not working!...WHY?
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 29th November 2009, 19:48
  2. Replies: 2
    Last Post: - 5th November 2009, 17:07
  3. PIC16f690 LCD Not Working
    By hhosteam in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 3rd June 2009, 06:26
  4. Replies: 3
    Last Post: - 27th November 2007, 08:56
  5. A/D display result on LCD
    By winsthon in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 10th January 2004, 10:09

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