LCD do display - but pins check out


Closed Thread
Results 1 to 28 of 28

Hybrid View

  1. #1
    Join Date
    Oct 2009
    Posts
    583

    Default LCD do display - but pins check out

    Guys, I'm debugging the mistakes I made when prototyping a PCB. I say I made, the schematic tested out OK in the DRC check, but the board failed to pick up some nets and thus I'm missing a few tracks to some components. However I've trouble shouted through the board and The PIC is running fine, I have comms through an FTDI 232RL chip, and it reads the 18B20 sensor and an corresponding monitoring LED flashes away to confirm the code is running, but the LCD simply lights up with the backlight and doesn't display anything at all.

    I've traced the routing for the 4 bit data lines using a multi-meter for continuity, and using a scope I get negative pulses on enable pin, and positive pulses on the R/W pin - these are around 1.2s frequency which seem slow given that the pic is running at 40 Mhz with a 10 Mhz xtal. There are no solid blocks regardless if the contrast is grounded or taken high (or 4k7 placed between it and the 5v rail). If I replace the PIC back on the development board it works fine ! and the schematic for the LCD was taken from the manual for the EasyPIC5 board - any suggestions or further testing I can do.

  2. #2
    Join Date
    Jan 2013
    Location
    Texas USA
    Posts
    229


    Did you find this post helpful? Yes | No

    Default Re: LCD do display - but pins check out

    What are you getting on the RS pin?
    Also have you checked the LCD's VDD pin to make sure it is at least 4.5V?
    Last edited by Tabsoft; - 8th May 2015 at 01:45.
    Regards,
    TABSoft

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: LCD do display - but pins check out

    sorry just reread your post. pulses on r/w doesn't sound correct, rs and r/w crossed?
    Last edited by towlerg; - 8th May 2015 at 02:03.

  4. #4
    Join Date
    Jan 2013
    Location
    Texas USA
    Posts
    229


    Did you find this post helpful? Yes | No

    Default Re: LCD do display - but pins check out

    True.

    Looking at the EasyPIC5 manual, R/W is tied to ground so you shouldn't read pulses on it.

    RS -- RB4
    R/W -- GND
    E -- RB5
    D4 -- RB0
    D5 -- RB1
    D6 -- RB2
    D7 -- RB3
    Regards,
    TABSoft

  5. #5
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default Confirmation

    Thanks for the replies,

    OK here's confirmation on how it's wired.

    LCD

    1 GND
    2 +5v
    3 +5v via 4K7 resistor
    4 RB4 (RS)
    5 GND (RW)
    6 RB5 (E)
    7 - 10 GND (D0 - D3)
    11 RB0 (D4)
    12 RB1 (D5)
    13 RB2 (D6)
    14 RB3 (D7)
    15 LED+ 5v via 100R resistor
    16 LED- GND


    I've attached traces of the pulses I get on RB4 and RB5 (sorry I made a mistake in my previous post) and on two of the data lines. I can confirm that the PIC is running as other functions such as RS232 coms and reading the DS18B20's all work fine. I will try a direct wiring option later (wires direct from the PIC pins), but as I can't find any shorts suspect that there is something else that's srewed on the board.

    Moral is not to submit gerbers at 1am in the morning after 14 hrs of drafting the design, but to wait a day and check the design with fresh eyes in the morning ! - This board has so many mistakes in it I must of been totally brain dead !!
    Attached Images Attached Images   

  6. #6
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default Re: Confirmation

    Interestingly, I get the same trace when the LCD is returned to the EasyPIC5 board, but on RB5 the pulses are positive going not negative going !!!

Similar Threads

  1. LCD Display
    By lambert in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 16th January 2010, 22:18
  2. Replies: 2
    Last Post: - 5th November 2009, 17:07
  3. glcd display vs lcd display
    By davids in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 3rd July 2009, 18:16
  4. number of PIC pins & 7-seg display
    By archendekta in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 2nd April 2009, 09:00
  5. LCD DB4-DB7 4bit mode change pins?
    By erice1984 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 6th March 2009, 01: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