Sending text to GLCD using BV4612 interface


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2009
    Posts
    583

    Default Sending text to GLCD using BV4612 interface

    I seem to be going through these serial / i2c GLCD adapters like hot cakes.. anyway I took delivery of the up to date version and I've hit a problem regarding some syntax and using it with pbp.

    The manual (http://www.byvac.co.uk/downloads/dat...0DataSheet.pdf) has a command for positioning the cursor at a given row / column when a font has been selected.

    Code:
    esc[<row>;<col>H Y Move cursor to line and column
    Moves cursor to specified line and character position. The row and column values are effected by the
    current font. For the standard font the row value will be between 0 & 7 and the column between 0
    and about 31. Zero is the top left and so esc[0;0H will move the cursor to the home position. Values
    out of range will be ignored.
    The thing is the semi-colon is interpreted by pbp (MCS ?) as a comment and thus half the information for the column is ignored.... any ideas on how to get round this ?

  2. #2
    Join Date
    Jan 2013
    Location
    Texas USA
    Posts
    229


    Did you find this post helpful? Yes | No

    Default Re: Sending text to GLCD using BV4612 interface

    You would actually send the following if using Serout2.
    For Row 4 and Column 20
    Serout2 pin, mode, [$1b, "[4;20H"]

    Or you can do it all in hex.
    Serout2 pin, mode, [$1b, $5b, $34, $3b, $32, $37, $48]

    The ; is enclosed in quotation marks, so PBP will not treat it as a comment.
    Regards,
    TABSoft

  3. #3
    Join Date
    May 2013
    Location
    australia
    Posts
    2,388


    Did you find this post helpful? Yes | No

    Default Re: Sending text to GLCD using BV4612 interface

    show us the line you trying to send
    I was thinking
    Serout2 pin, mode, [27, 91,#row,59, #col, 72]
    Last edited by richard; - 27th June 2015 at 02:07. Reason: left ; out

Similar Threads

  1. Sending text to GLCD using BV4511 interface
    By Scampy in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 12th June 2015, 18:14
  2. Replies: 1
    Last Post: - 4th June 2010, 03:34
  3. How to prepare text (lots of text) for HSEROUT ?
    By Byte_Butcher in forum General
    Replies: 0
    Last Post: - 15th February 2010, 22:31
  4. Glcd help
    By santamaria in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 8th February 2009, 10:11
  5. Help with sending text file from pic
    By isaac in forum Serial
    Replies: 6
    Last Post: - 15th August 2006, 20:01

Members who have read this thread : 1

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