LCD BACKPACK on the DP USB stack, test hex file V1 here.

USB and serial backpack PIC_LCD_backpack for HD44780 character LCD screens.

Re: LCD BACKPACK on the DP USB stack, test hex file V1 here.

Postby ian » Thu Jan 12, 2012 9:30 am

Hi JTR,

I was going to do a release of the LCD backpack firmware with the serial UART enabled. I don't actually have this ported source, but if it is available I will use if for the next release.
User avatar
ian
Crew
Crew
 
Posts: 10803
Joined: Mon Jul 06, 2009 6:14 am

Re: LCD BACKPACK on the DP USB stack, test hex file V1 here.

Postby JTR » Thu Jan 12, 2012 4:03 pm

ian wrote:Hi JTR,

I was going to do a release of the LCD backpack firmware with the serial UART enabled. I don't actually have this ported source, but if it is available I will use if for the next release.


Hi Ian, I don't multitask anywhere near as well as you do. I tend to want to be slow and deliberate and you did send an SOS on the IR TOY 48 bytes bug and now the BPv4 is back in the shop, front and centre. So the LCB BP, the diolan Plus bootloader, the Logic shrimp port, and OLS port (hardware arrived and thanks!) as well as my own projects all are on the back burner. It is not like I can get on this or any other forum and ask why does the USB stack sometimes fail to work in polling mode on the PIC24 on a root host but not on a hub etc....

The good thing is that improvements and discoveries for one often translate to another. I will not hand over anything that is not on the unified USB stack and everything is being ported either upward or downward to a mature version of the stack but with all the changes required done so that other people don't have to change their code because the USB stack was updated.

Everything will have to be done by March as that is when I lose my disability pension and then what, I sell everything I have bought to do this work?

It is all coming and "I'm giving it everything she got Captain. Any more and she'll blow" :)
JTR
Sr. Member
Sr. Member
 
Posts: 335
Joined: Mon Jan 31, 2011 5:50 am

Re: LCD BACKPACK on the DP USB stack, test hex file V1 here.

Postby ian » Fri Jan 13, 2012 3:01 am

No worries, I appreciate all your help with everything, thank you. I won't push :)

You did send me the OLS source you worked on, so I was a little worried you had sent it and I lost it. Good to know I didn't.

Made the UART version using the old release and already gave it to the user who needed it, so problem solved.
User avatar
ian
Crew
Crew
 
Posts: 10803
Joined: Mon Jul 06, 2009 6:14 am

Re: LCD BACKPACK on the DP USB stack, test hex file V1 here.

Postby peeter123 » Thu Jan 03, 2013 7:53 am

Is the sourcecode available already? I'm asking because there is a bug in the standard firmware with regard to LCDproc and backlight.

I already tried to compile the fix in the main SVN firmware but thanks to the proprietary *** from Microchip I cannot get it working.
peeter123
Newbie
Newbie
 
Posts: 2
Joined: Thu Jan 03, 2013 7:50 am

Re: LCD BACKPACK on the DP USB stack, test hex file V1 here.

Postby ian » Wed Jan 09, 2013 5:14 am

Not as far as I know, though it may be part of another source pack. What is the bug? I'll try to get it working for you with the microchip crap ;)
User avatar
ian
Crew
Crew
 
Posts: 10803
Joined: Mon Jul 06, 2009 6:14 am

Re: LCD BACKPACK on the DP USB stack, test hex file V1 here.

Postby peeter123 » Wed Jan 09, 2013 7:59 am

The problem is in this piece of code(HD44780.c):
Code: Select all
//backlight control
//the LED draws a lot of power when it comes on
void LCD_Backlight(unsigned char c){
        unsigned char i;

        if(c){
                //turn on slowly with PWM
                for(i=0; i<255; i++){
                        LCD_BL=1; //backlight ON       
                        delayUS(i);//on for increasing us
                        LCD_BL=0; //backlight OFF
                        delayUS((255-i));//off for decreasing us
                }     
                LCD_BL=1; //exit with light ON 
        }else{
                LCD_BL=0; //backlight off
        }
}


LCDproc sends backlight on command every time it sends something to the display so the backlight is flashing. We should not soft turn-on the screen if it is already on.

I think it should be something like this:

Code: Select all
//backlight control
//the LED draws a lot of power when it comes on
void LCD_Backlight(unsigned char c){
        unsigned char i;

        if(c && !LCD_BL){
                //turn on slowly with PWM
                for(i=0; i<255; i++){
                        LCD_BL=1; //backlight ON       
                        delayUS(i);//on for increasing us
                        LCD_BL=0; //backlight OFF
                        delayUS((255-i));//off for decreasing us
                }     
                LCD_BL=1; //exit with light ON 
        }else if(!c){
                LCD_BL=0; //backlight off
        }
}
peeter123
Newbie
Newbie
 
Posts: 2
Joined: Thu Jan 03, 2013 7:50 am

Re: LCD BACKPACK on the DP USB stack, test hex file V1 here.

Postby assassins » Thu Sep 04, 2014 4:31 pm

peeter123 wrote:Is the sourcecode available already? I'm asking because there is a bug in the standard firmware with regard to LCDproc and backlight.

I already tried to compile the fix in the main SVN firmware but thanks to the proprietary *** from Microchip I cannot get it working.



Hello,

did you make it run ? Have same problems with lcdproc and backlight flickering
assassins
Newbie
Newbie
 
Posts: 3
Joined: Thu Sep 04, 2014 4:13 pm

Re: LCD BACKPACK on the DP USB stack, test hex file V1 here.

Postby DigiMatrix » Mon Sep 25, 2017 1:32 am

I am new to using pic, but i am trying to simulate the DP LCD USB_serial backpack in Proteus. Does anyone know if the code from this post also includes the serial portion of the backpack code as that is what I am trying to simulate? Thanks
DigiMatrix
Newbie
Newbie
 
Posts: 1
Joined: Mon Sep 25, 2017 1:25 am

Previous

Return to USB serial LCD backpack

cron