LCD serial backpacks


Closed Thread
Results 1 to 40 of 68

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default

    Maybe it was just a typo, but TXSTA should have been changed to 24h, not 25h. But it probably wouldn't matter.

    And when you say "and used this time a 628-20 Mhz chip"...
    Do you mean that you used a 16F628 with a 20Mhz crystal and two 15-33pf capacitors?

    DT

  2. #2
    Join Date
    Jul 2007
    Posts
    65

    Default

    Tim,

    are you sending data to the screen to see if the message will clear out?

    I always see the clearing display message at start, but everything works fine when I send data (without my silly Disabled Interrupt trial..of course).

  3. #3
    Join Date
    Aug 2009
    Posts
    33

    Default On my way..

    Yes, was a typo I mean 24h. Yes, I used a 16F628-20 Mhz. I changed the crystal but not the caps, sorry. Mr. Flipper_ND, when I received the error I thought I shouldn’t go on, but I think that you got a point there, I’ll. First I’ll do the test with the two 15-33 pf caps in place and next test sending some data. I’ll report to both of you. Thanks.

  4. #4
    Join Date
    Aug 2009
    Posts
    33

    Default Still lost.

    Let me report to both of you: I changed the caps and same error. I send the serial data and received it but unreadable and there is no clear screen neither. The program I am using reads as:
    PAUSE 1000
    SEROUT PORTB.1, 4, [254, 1] ‘Clear the screen
    SEROUT PORTB.1, 4, [“ABCDE”]
    END
    I don’t know why but the PBP 2.50A compiler doesn’t accept
    SEROUT PORTB.1, N2400, [254, 1]. (Bad Expression) doesn’t like the N2400. I don’t know if there is a distinction between the N2400 and the 4 alone.
    I have spent hours investigating the hardware and the software for any error but find nothing bad. There may be a test program to check the backpack program.
    BTW, To be able to write and compile this four lines “text sending serial program” I had to restore the 16F628 .INC file back to it’s original text. (Take the (;) out).
    Any ideas of what may I doing wrong? Thanks.

  5. #5
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default

    The standard USART requires "TRUE" levels.
    N2400 is "Inverted".

    Use mode 0 (T2400).

    And to use the N2400, T2400 T9600 etc.
    Code:
    INCLUDE "modedefs.bas"
    DT

  6. #6
    Join Date
    Aug 2009
    Posts
    33

    Default Going in circles

    I did the Include "modedefs.bas" and also sent all kind of modes from 0 to 11 with different characters on the display but none of them good. What I thought would be the simplest trouble shooting became the hardest for me. I don’t know what to do next. Thanks

  7. #7
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default

    I don’t know what to do next.
    Me neither.

    DT

Similar Threads

  1. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 19:54
  2. Please help with EDE702 - Serial to LCD interface
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th October 2008, 02:48
  3. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  4. Serial LCD
    By Tobias in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 15th November 2007, 08:31
  5. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07

Members who have read this thread : 2

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