Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
What's that got to do with anything?.I downloaded Multicalc but keep getting error message
MSSTDFMT.DLL
the error says this must be installed
MrDEB
I am not clear whether your question is about contrast of the LCD characters or brightness of the backlight, as implied in the title. Either can be controlled from your MCU, but the approaches are a bit different. If it is the backlight, you may need more than the 25 mA a PIC can typically supply. Some displays need 100 mA or so. If it is contrast, then one needs to know a little more about the LCD you have. I suspect from context that your display has an onboard negative voltage generator. If not, that too can be done by the MCU.
// set tmr2 for pwm6 (for contrast adjustment)
T2CLKCON = 0x01;
T2HLT = 0x00; // T2PSYNC Not Synchronized; T2MODE Software control; T2CKPOL Rising Edge; T2CKSYNC Not Synchronized;
T2RST = 0x00; // T2RSEL T2CKIPPS pin;
T2PR = 0x65;
T2TMR = 0x00;
PIR4bits.TMR2IF = 0; // Clearing IF flag.
T2CON = 0x80; // T2CKPS 1:1; T2OUTPS 1:1; TMR2ON on;
// PWM routines for contrast adjustment
PWM6_Init(void)
{
PWM6CON = 0x80;
// DC 12;
PWM6DCH = 0x0C;
// DC 2;
PWM6DCL = 0x80;
// Select timer
CCPTMRS1bits.P6TSEL = 1;
}
PWM6_Duty(unsigned int duty)
{
if(duty<1024)
{
PWM6DCH = (duty & 0x03FC)>>2;
PWM6DCL = (duty & 0x0003)<<6;
}
}
PWM6_Start(void)
{
T2CONbits.TMR2ON = 1;
}
PWM6_Stop(void)
{
T2CONbits.TMR2ON = 0;
}
If you're trying to install the old mister-E PIC MultiCalc utility you're likely missing some of the required DLL's, which you'll have to download and install.I downloaded Multicalc but keep getting error message MSSTDFMT.DLL
As he specified the 10K pot to adjust the display it's pretty clear he's talking about the contrast, as 5K or 10K are the standard pot values used.
I don't disagree, but it will still help to know which LCD he is using. Assuming it's the common Hitachi variant (HD44780 compatible) may not be correct.jpanhalt said:If it is contrast, then one needs to know a little more about the LCD you have.
But the odds are greatly in favour of that - if you hear hoof beats, think horses nor zebrasI don't disagree, but it will still help to know which LCD he is using. Assuming it's the common Hitachi variant (HD44780 compatible) may not be correct.
Can you elaborate? My datasheet only has the "power supply rise time", nothing about the contrast pin.Datasheet will cover that requirement.
Or a 555, why use the micro when you can add additional chips?Why not just use a digital pot?? You only need an 8 bit one and SPI (2 pins) as you dont need to read.