Hot!Can't get working the integrated LCD Controller on PIC16F19185

Author
imogetta
New Member
  • Total Posts : 11
  • Reward points : 0
  • Joined: 2008/10/29 04:06:24
  • Location: 0
  • Status: offline
2018/05/18 13:47:28 (permalink)
0

Can't get working the integrated LCD Controller on PIC16F19185

Hi!
I'm working with MPLABX 4.15 and MCC 1.65.2, and I want to drive two VI-302-DP-FC-S (3.5 digits, 7 segments LCD modules) on a PIC16F19185.
I've enabled 2 common pins (COM0 and COM1, one for each VI-302).
 
The initialization code generated by the MCC is:
 
void LCD_Initialize(void)
{
    // Disable module before configuring
    LCDCONbits.LCDEN = 0;

    // set the LCD to the options selected in the User Interface
    // LP 1:16; WFT Type-A waveform;
    LCDPS = 0x0F;
    
    // LCDCST Max contrast (Min Resistance);
    LCDREF = 0x00;
    
    // LRLAP Medium; LCDIRI disabled; LRLAT Always B Power mode;
    LCDRL = 0x80;
    
    // BIAS 3.78V; EN5V enabled; LPEN disabled;
    LCDVCON1 = 0x40;
    
    // CPWDT disabled; LCDVSRC Internal Resistor Ladder + Vdd for VLCD3;
    LCDVCON2 = 0x82;
    
 //Enable used segments
 LCDSE0 = 0xDF;
 LCDSE1 = 0x00;
 LCDSE2 = 0xDC;
 LCDSE3 = 0x1E;
 LCDSE4 = 0x07;
 LCDSE5 = 0x3F;
 
    // CS LFINTOSC; SLPEN enabled; WERR No LCD Write Error; LMUX 1/2 COM(1:0); LCDEN enabled;
    LCDCON = 0x82;
 
}

 
This is the first time I'm working with the LCD Controller. I can't get the module works. On the oscilloscope is a plain 0 Volts wave on every display pin.
 
I guess there's something I forgot to enable. Could somebody show me a working code, please?
 
Thanks in advance.
 
Regards,
     Iván.
#1

3 Replies Related Threads

    RISC
    Super Member
    • Total Posts : 5272
    • Reward points : 0
    • Status: offline
    Re: Can't get working the integrated LCD Controller on PIC16F19185 2018/05/18 15:04:03 (permalink)
    0
    Hi,
    Can you please show your schematic ?
    the issue could also be in the hardware if you never used LCD before.
    Regards
     
    #2
    imogetta
    New Member
    • Total Posts : 11
    • Reward points : 0
    • Joined: 2008/10/29 04:06:24
    • Location: 0
    • Status: offline
    Re: Can't get working the integrated LCD Controller on PIC16F19185 2018/05/19 06:02:45 (permalink)
    0
    RISC
    Hi,
    Can you please show your schematic ?
    the issue could also be in the hardware if you never used LCD before.
    Regards
     




    Hi RISC,
       Now I've attached the LCD part of the schematic.
       Regards

    Attached Image(s)

    #3
    JmLayton
    New Member
    • Total Posts : 27
    • Reward points : 0
    • Joined: 2016/01/11 12:11:15
    • Location: 0
    • Status: offline
    Re: Can't get working the integrated LCD Controller on PIC16F19185 2018/08/13 10:29:05 (permalink)
    0
    Were you ever able to get your LCD panel working with the PIC16F19185?
    #4
    Jump to:
    © 2018 APG vNext Commercial Version 4.5