hserin


Closed Thread
Results 1 to 29 of 29

Thread: hserin

Hybrid View

  1. #1


    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

  2. #2
    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.

  3. #3


    Did you find this post helpful? Yes | No

    Default thanks

    i know and i appreicate that however just at the begining stage and only a hobby
    so just trying to get some experience with pbp not pics
    mcs is microstudio plus

    does this pic have hserout2???

  4. #4


    Did you find this post helpful? Yes | No

    Default continued

    i guess my main problem is i am trying to get data to a serial lcd driver
    and cant get it to work even though there seems to be data from the pic
    thats why i wanterd to try the various commands for serout to get this working this seems to be a tough area for me

    thanks

  5. #5
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by jcleaver View Post
    i guess my main problem is i am trying to get data to a serial lcd driver
    and cant get it to work even though there seems to be data from the pic
    thats why i wanterd to try the various commands for serout to get this working this seems to be a tough area for me

    thanks
    Questions for Jack:
    Why do you want to use HSERIN, HSEROUT? Do you know why they are not Serin and Serout? Or HSERIN2? HSEROUT 2?The masked man wants you to know those things that is why he keeps pushing the manual to you. See then you can ask questions which makes everyone's brain hurt, that is why we all do this, it's for the pain
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  6. #6


    Did you find this post helpful? Yes | No

    Default it always hurt

    no pain no gain

    the problem is i am unable to get a serial lcd driver to function

    tried many many different things still nothing
    thought different commands would inprove nothing seems to work

    even though i am getting something (scope) out of the pic

    tried all the serial commands and different bauds ebven thought the device states 9600 8 n 1
    device did work using basic stamp instructions

  7. #7
    Join Date
    Aug 2005
    Location
    Vermont
    Posts
    15


    Did you find this post helpful? Yes | No

    Smile Give us more info

    Why not post your schematic and some of your code so that we can be more help. Just telling us that you have tried lots of different things with no success doesn't give anyone a starting point to help you.

  8. #8
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default :)

    Quote Originally Posted by jcleaver View Post
    no pain no gain

    the problem is i am unable to get a serial lcd driver to function

    tried many many different things still nothing
    thought different commands would inprove nothing seems to work

    even though i am getting something (scope) out of the pic

    tried all the serial commands and different bauds ebven thought the device states 9600 8 n 1
    device did work using basic stamp instructions
    It's not a basic stamp, while a stamp is a pic. HUH? WHATS THAT?
    PBP will program a stamp, but pics not always the same, little differences.
    Hserin will not accept N9600, has to be true.
    Serin wil accept N9600. Hserin will accept charactors incomming while pic is busy running subroutines, serin will not. Do a search for serial backpacks on this forum, this subject has been addressed. look at the code in my post on this subject after Darrel did his magic on it. It's sweet, uses hserin, DT instant interrupts and formats the same way as LCDOUT does. It is pretty well commented so you can learn how it works and change it to suit you.

    if you just want a serial in parallel out
    try
    Code:
    include "modedefs.bas"
    pause 500
    char var byte
    Lcdout $fe, 1, "RTFM"
    pause 1000
    LOOP:
    serin Portb.0, n9600, char
    LCDOUT char
    goto loop
    JS
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  9. #9
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by jcleaver View Post
    i know and i appreicate that however just at the begining stage and only a hobby
    so just trying to get some experience with pbp not pics
    mcs is microstudio plus

    does this pic have hserout2???
    What does the datasheet say as far as the number of USARTs (also reference the PBP manual, page 78, 2nd paragraph)?

    I understand you're trying to get experience with MCS/PBP and not PICs, but what is MCS/PBP without a PIC? Just an expensive text editor...

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