hserin


Closed Thread
Results 1 to 29 of 29

Thread: hserin

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Red face thanks

    thanks for the reply will try this have moved display over to a 628a and get
    fairly good some garbage dont know what that is

    also trying to send a escape sequence to set up the serial chip

    but that does not work any ideas on this tried
    dec 27 or hex 27 or "<esc>" not working
    interesting will not display esc here with the <>

    also why the garbarge do want to move this back to 677a so will be trying your setting
    again thanks for the feedback
    Last edited by jcleaver; - 20th February 2007 at 12:13.

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default

    Did you put a max232 or similar device between your LCD and PIC?

    Ioannis

  3. #3


    Did you find this post helpful? Yes | No

    Default max232

    tried it with and without max works better without

    does not seem to mater still get garbarge (some) also displays corectly

    and unable to fiqure how to setup chip escape sequence
    Last edited by jcleaver; - 20th February 2007 at 13:11.

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default

    It can't work with both cases (with and without max232) using HSER commands! Are you sure of what you are doing????

    I never used any Serial LCD's so I don't know of the ESC sequences. But with Serout commands you can drive a PC without MAX232. I am not sure if you can drive a slave device too... I'd use a MAX232 for sure.

    Ioannis
    Last edited by Ioannis; - 20th February 2007 at 14:18.

  5. #5
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    If this: http://www.redbinary.com/sld01a.php is the LCD driver you're using, then it looks like you'll want to use 9600 non-inverted. It should also work directly connected to your PIC hardware USART pin.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  6. #6


    Did you find this post helpful? Yes | No

    Default message

    I a getting the display to work with the attached file so i assume
    hook up and baud is right
    using serout2 commandportb.7 on a 628a not using the max works better
    however i also get garbage and cannot get the esc sequence to change the display properties

    file does not compile with the latest effort to send esc
    tried others no help
    Attached Files Attached Files

  7. #7
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    where you have "&lt;esc&gt;" in your code, that generally means the ASCII character "Escape" similar to how you see "&lt;cr&gt;" for carriage return.

    Try replacing that with 27 or $1B and see how you get on. (No difference between them except that 27 is decimal and $1B is hex.)
    Last edited by keithdoxey; - 20th February 2007 at 15:32.
    Keith

    www.diyha.co.uk
    www.kat5.tv

Similar Threads

  1. HSERIN and XOUT command
    By aratti in forum General
    Replies: 20
    Last Post: - 12th May 2009, 11:58
  2. Instant Interrupts and HSERIN
    By Rob in forum mel PIC BASIC Pro
    Replies: 26
    Last Post: - 31st January 2009, 05:13
  3. TMR0 interrupt and HSERIN
    By boban in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd September 2008, 11:48
  4. 16F877a Interupt driven Hserin
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd November 2006, 00:38
  5. Hserin
    By egberttheone in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 27th November 2004, 15:42

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