hemnath
Advanced Member level 3
Hi,
Controller: PIC24FJ128GL306
Display: Attached pdf.
MPLAB X IDE, xC16 compiler
Connections as per the attached circuit.
In program, initialization routine for display,
void V_InitializeDisplay(void)
{
LCDCON = 0x000F; // 1/8 Mux (8 Com), clk = FRC,LCD Disabled in sleep,
LCDPS = 0x0000; // Type A waveform,1/3 bias, no prescaler
LCDSE0 = 0xFFFF; // Segment 0 to 15 enabled
LCDSE1 = 0x00FF; // Segments 16 to 23 enabled
LCDREF = 0x80F0; // Ref ladder in B power,high power ladder mode, max contrast
LCDREG = 0x0001; // clk source for reg = 32khz lprc, charge pump vol = AVDD
V_LCDPowerON();
}
void V_LCDPowerON(void)
{
LCDCON |= 0x8000;
}
Voltage applied to controller: 3V
Only controller and display are connected. No external circuits are connected.
Once powered ON, characters on the display is not clear(Very dull).
Controller: PIC24FJ128GL306
Display: Attached pdf.
MPLAB X IDE, xC16 compiler
Connections as per the attached circuit.
In program, initialization routine for display,
void V_InitializeDisplay(void)
{
LCDCON = 0x000F; // 1/8 Mux (8 Com), clk = FRC,LCD Disabled in sleep,
LCDPS = 0x0000; // Type A waveform,1/3 bias, no prescaler
LCDSE0 = 0xFFFF; // Segment 0 to 15 enabled
LCDSE1 = 0x00FF; // Segments 16 to 23 enabled
LCDREF = 0x80F0; // Ref ladder in B power,high power ladder mode, max contrast
LCDREG = 0x0001; // clk source for reg = 32khz lprc, charge pump vol = AVDD
V_LCDPowerON();
}
void V_LCDPowerON(void)
{
LCDCON |= 0x8000;
}
Voltage applied to controller: 3V
Only controller and display are connected. No external circuits are connected.
Once powered ON, characters on the display is not clear(Very dull).
Attachments
Last edited: