+ Post New Thread
Results 1 to 8 of 8
  1. #1
    Member level 1
    Points: 545, Level: 4

    Join Date
    Nov 2016
    Posts
    35
    Helped
    0 / 0
    Points
    545
    Level
    4

    PIC18F2520 interface 16x2 LCD

    LCD Display is Working Well . When I POWER OFF the microcontroller and LCD DISPLAY also OFF , When I tried to power ON AFTER 3 Seconds means MICROCONTROLLER AND LCD WORKING WELL,
    but when I POWER ON THE DEVICE suddenly after 1 seconds or below or repeatedly , the LCD DISPLAY SCRAMBLES. afterwards I will POWER OFF the device and I Tried to ON after 3 Seconds LCD DISPLAY Works well.


    My project is working in POWER INTERRUPTION AREA , So I want to solve the bug
    Give me an idea to solve this....................

    I attached the SCRAMBLED DISPLAY ALSO

    •   AltAdvertisement

        
       

  2. #2
    Super Moderator
    Points: 29,576, Level: 41
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Brazil
    Posts
    8,837
    Helped
    1114 / 1114
    Points
    29,576
    Level
    41
    Blog Entries
    9

    Re: PIC18F2520 interface 16x2 LCD

    Give me an idea to solve this
    I am really puzzled trying to understand how someone expect to have some help without posting any code nor schematic diagram.
    --------------------------------------------------------------------------------------------------
    Part of the world that you live in, You are the part that you're giving ( Renaissance )



  3. #3
    Advanced Member level 1
    Points: 5,308, Level: 17

    Join Date
    Jul 2004
    Location
    Hungary
    Posts
    479
    Helped
    189 / 189
    Points
    5,308
    Level
    17

    Re: PIC18F2520 interface 16x2 LCD

    Reconsider the PIC reset (MCLR) circuit.



    •   AltAdvertisement

        
       

  4. #4
    Advanced Member level 2
    Points: 3,716, Level: 14
    Achievements:
    7 years registered

    Join Date
    May 2012
    Posts
    500
    Helped
    117 / 117
    Points
    3,716
    Level
    14

    Re: PIC18F2520 interface 16x2 LCD

    I agree with Zuisti the problem is probably with the MCLR reset circuit, maybe the capacitor on the MLCR line does not have a discharge diode Show circuit.



  5. #5
    Member level 1
    Points: 545, Level: 4

    Join Date
    Nov 2016
    Posts
    35
    Helped
    0 / 0
    Points
    545
    Level
    4

    Re: PIC18F2520 interface 16x2 LCD

    I connected 5 Volt supply through 10 K resistor to the MCLR PIN of the MICROCONTROLLER.
    Any components have to add ..........Help Me



  6. #6
    Super Moderator
    Points: 259,231, Level: 100
    Awards:
    1st Helpful Member

    Join Date
    Jan 2008
    Location
    Bochum, Germany
    Posts
    45,258
    Helped
    13768 / 13768
    Points
    259,231
    Level
    100

    Re: PIC18F2520 interface 16x2 LCD

    More likely, it's a problem of missing or incomplete LCD display initialization. The software relies on power-on-reset state of the LCD controller but fails if the controller isn't fully reset.

    Implement LCD software reset according to datasheet. PIC brownout reset should be configured as well, worst case a power supply supervisory and hardware watchdog IC might be helpful.



    •   AltAdvertisement

        
       

  7. #7
    Banned
    Points: 5,417, Level: 17

    Join Date
    Jun 2016
    Posts
    1,159
    Helped
    126 / 126
    Points
    5,417
    Level
    17

    Re: PIC18F2520 interface 16x2 LCD

    Add a 200 ms delay as the first line in LCD Initialization routine. LCD needs some time to react.



  8. #8
    Super Moderator
    Points: 29,576, Level: 41
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Brazil
    Posts
    8,837
    Helped
    1114 / 1114
    Points
    29,576
    Level
    41
    Blog Entries
    9

    Re: PIC18F2520 interface 16x2 LCD

    The standard microcontroller's active low reset circuitry comprises not only a pull-up resistor, but also a capacitor and a diode which respectively provide the ability to filter possible glitches on the power bus (such as due to hot plugging the board to the power connector), but also allow the fast reset to avoid unespected behavior of the program during the voltage supply fall down, although not strictly necessary for this core which can detect it by proper flags.
    --------------------------------------------------------------------------------------------------
    Part of the world that you live in, You are the part that you're giving ( Renaissance )



--[[ ]]--