PBP 2.50 UPGRADE problems!!!!


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Location
    Houston, TX
    Posts
    96

    Angry PBP 2.50 UPGRADE problems!!!!

    aaaaaahhhhhh!
    I just upgraded my PBP to 2.50 from 2.40, yep along time in the making.
    Now one of my codes no longer works the same as it used to.

    This is what I am seeing.....
    under my old code I have the following constants for my LCD lines for a 4x20 line LCD

    Row1 CON 128
    Row2 CON 192
    Row3 CON 148
    Row4 CON 212


    LCDOut 254,1
    LCDOut 254,Row1, " Welcome to the "
    LCDOut 254,Row2,0,1," All-In-One ",4,5
    LCDOut 254,Row3,2,3," Light & Water ",6,7
    LCDOut 254,Row4, " Controller! "

    Now when I ouput the same code as before...Row1 is shifted 2 places to the right on my LCD without me changing the code in any way. The crazy thing is that no matter what I do to the Row1 CONSTANT definition ex: CON 130 the text stays in the same place on the screen on line 1, I can only change the text by placing more spaces in between the " ". Even adding EX: Row1+3 had no effect. What is up?????

    I'm going crazy or something. I am using the same 16f877A chip as before, same PCB, same programmer, same MCS IDE, same fuse settings, just the newest PBP 2.50. Could my PIC be damaged?

    Like I mentioned before this program worked fine before the upgrade to PBP 2.50 ANY help would be great!
    Padawan-78

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by earltyso View Post
    aaaaaahhhhhh!
    What happens if you change the actual text?
    For instance, change 'Welcome to the' to 'Testing the new'
    Try it and and see what happens.

  3. #3
    Join Date
    Jan 2007
    Location
    Houston, TX
    Posts
    96


    Did you find this post helpful? Yes | No

    Default text

    The text changes but still off position by 2 places to the left, I should now correct what I was saying earlier, ROW1 has been shifted to the LEFT 2 places NOT to the right 2 places. Either way, the problem is still there.

    I also tried modifying the CONSTANTS for ROW's 2, 3, & 4,....they work fine and update with any editing, ex: Row2+4 and CON 194 change Row2 immediately.

    It's just Row1
    Padawan-78

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by earltyso View Post
    The text changes but still off position by 2 places to the left, I should now correct what I was saying earlier, ROW1 has been shifted to the LEFT 2 places NOT to the right 2 places. Either way, the problem is still there.
    I also tried modifying the CONSTANTS for ROW's 2, 3, & 4,....they work fine and update with any editing, ex: Row2+4 and CON 194 change Row2 immediately.
    It's just Row1
    Change all of those constants from:
    Row(whatever) to Ln(whatever)....
    see what happens.

    Also, it might be a timing problem. Shifting to the LEFT tells me it's missing an E pulse because the LCD is busy doing it's thing.
    -----LCDOut 254,1-----
    takes quite a bit more time to execute than the rest of the LCD commands.
    Increase your LCD_COMMANDUS value or put an extra pause of a couple milliseconds after that command.

  5. #5
    Join Date
    Jan 2007
    Location
    Houston, TX
    Posts
    96


    Did you find this post helpful? Yes | No

    Default Hot Dang

    You were right! There is some kind of timing problem that has come up with the new software that wasn't there before, perhaps my oscillator is spontaneously acting weird. I am going to guess that the newest PBP has changed the whole LCDOUT 254,1 command a bit. I am currently running at 4Mhz which I know is not recommended for the LCDOUT commands, I have always run 12 Mhz before but wanted to try 4 anyway.

    Thanks for your help, a small delay of 1ms seems to be enough for now until I change out the crystal.

    LCDOut 254,1
    pause 1
    LCDOut 254,Row1, " Welcome to the "
    LCDOut 254,Row2,0,1," All-In-One ",4,5
    LCDOut 254,Row3,2,3," Light & Water ",6,7
    LCDOut 254,Row4, " Controller! "

    Thanks again!!!!!!!
    Padawan-78

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Read the manual...You'll find DEFINE LCD_COMMANDUS and DATA_US. Increase those and you should be ok without the extra pause.

  7. #7
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    mmm, i don't know, it's working here. Maybe some timing issue for a 'X' lcd type. Try to insert a PAUSE after the LCDOUT 254,1.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. PBP 2.50 and Longs
    By mikendee in forum GPS
    Replies: 1
    Last Post: - 21st May 2008, 21:16
  2. Strange problem with PBP 2.50
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 16th October 2007, 20:45
  3. MCS+ with PBP 2.50
    By BrianT in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st September 2007, 05:52
  4. New PBP 2.50?
    By Dave in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 9th September 2007, 19:14
  5. PBP upgrade queries
    By muddy0409 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 7th November 2006, 12:45

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts