hserin


Closed Thread
Results 1 to 29 of 29

Thread: hserin

Hybrid View

  1. #1

    Cool hserin

    pbp list 4 commands

    hserin hserout
    hserin2 hserout2

    would like to know how these pins are labled on the pic
    apparently you do not use pin numbers with this command

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by jcleaver View Post
    pbp list 4 commands

    hserin hserout
    hserin2 hserout2

    would like to know how these pins are labled on the pic
    apparently you do not use pin numbers with this command
    Page 75 and 79 of your PBP manual.

  3. #3


    Did you find this post helpful? Yes | No

    Default ?

    read the manual lots of info to digest maybe i missed it
    but only reference to pin # says to look at the pic documentation
    thats fine but how are the labled?

    does the 16f877a have these wre this something on newer pics

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by jcleaver View Post
    read the manual lots of info to digest maybe i missed it
    but only reference to pin # says to look at the pic documentation
    thats fine but how are the labled?

    does the 16f877a have these wre this something on newer pics
    Page 75 and 79 of your PBP manual...2nd paragraph of each page. Compare that to Page 111 of the 16F877 datasheet.

  5. #5


    Did you find this post helpful? Yes | No

    Thumbs down manual

    when i purchased pbp it was because it was simple to use and did not require
    master in programming or microchip documentation or much assembly
    that has not been the case with what i have done so for
    read the pic manual pg 113 which talks about this
    all i wanted was a description of how the pins for this were labled
    so i coulkd test this part of the pbp manual

    guess i am over my head again do not see descriptors
    i know there are pin liabled rx and tx but these are being used to connect to mcs

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by jcleaver View Post
    when i purchased pbp it was because it was simple to use and did not require
    master in programming or microchip documentation or much assembly
    that has not been the case with what i have done so for
    read the pic manual pg 113 which talks about this
    all i wanted was a description of how the pins for this were labled
    so i coulkd test this part of the pbp manual

    guess i am over my head again do not see descriptors
    i know there are pin liabled rx and tx but these are being used to connect to mcs
    I was just trying to learn you something so you could figure other stuff out in the future...
    HSERIN = receiving serial data = USART receiver = RX
    HSEROUT = transmitting serial data = USART transmitter = TX
    If the RX and TX on your particular chip in your particular system are already being used by something else, such as the MCS (which is what?), then you probably can't use HSERIN/HSEROUT without circuit mod's.

  7. #7


    Did you find this post helpful? Yes | No

    Default update

    they do shoot horses
    ? hserout does not work on the 627a why no usart on this ?

    serout 2 works using the max but data is garbled ? see attached file

    thanks for any updates

    know the program is hodge but just trying to see something on the display

    got to that but garbarge
    Attached Files Attached Files
    Last edited by jcleaver; - 21st February 2007 at 17:02.

  8. #8
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by jcleaver View Post
    they do shoot horses
    ? hserout does not work on the 627a why no usart on this ?
    ??? The 627 does have a USART. the 627/628/648 are the same apart from 1k/2k/4k memory

    serout 2 works using the max but data is garbled ? see attached file
    Just looked at the link posted earlier by Bruce. The driver chip you have is a 16F627A according to the schematics on the website so just connect the TX of your PIC to the RX of the LCD driver and comms should be perfect.

    It would seem that unlike a lot of Serial LCD backpacks, this chip is trying to be clever in so much as it wants to just display any serial data it receives....

    LCD Formatting

    The LCD can be configured for a specific number of columns and lines with two additional escape sequences.

    The desired number of columns is set by first sending the escape character, then a lower-case 'x', followed by two digits specifying the number of columns allowed before the SLD01a forces a line-break.

    The LCD line count is specified in a similar manner - escape, lower-case 'y', and two digits.

    Two digits must be used, even when the number of lines can be represented with one. For example, to set the SLD01a into a 16 x 2 format you would send "<esc>x16<esc>y02"

    The LCD configuration is saved in the SLD01a EEPROM which is persistant even when removed from a power source. This makes it only necessary to configure the SLD01a once for any given LCD format.


    Non-Text Characters & Escape Sequences

    When either non-printable linefeed or carriage return character is received the SLD01a will line-break by causing the LCD cursor to move to the first character placement on the next line of the display. After the last character of the last line is reached, the SLD01a will clear the display and begin again at the first character of the first line.

    When the non-printable delete character is encountered, the SLD01a will reposition the LCD cursor one position to the left, deleting the last displayed character.

    When the non-printable bell character (ASCII 7) is encountered the aux pin (pin 6) will briefly energize. This is the same procedure as the 'b' escape sequence.

    Proprietary escape sequences allow for some additional features. All escape sequences are triggered by sending the escape character (ASCII 27 [0x1B]) to the SLD01a. Table 1 lists the single character escape sequences recognized and the functions that they perform.


    CHR DESCRIPTION DEC HEX FUNCTION
    c lower-case C 99 63 clear LCD screen and place cursor at home position
    b lower-case B 98 62 briefly energize the auxillary output (pin 6)
    O upper-case O 79 4F turn auxillary output on
    o lower-case O 111 6F turn auxillary output off
    L upper-case L 76 4C turn LCD backlight on
    l lower-case L 108 6C turn LCD backlight off



    To me at least, that says it wont understand the LCD positioning commands you are trying to send it.

    MY interpretation is that once powered up and told how many characters and how many lines there are to the display (which it will remember forever) it will then start to print from the home position until the first line is full then it will print on the next line until it reaches the end when it will clear the display.
    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