Serin Problem with 12F629/PBP


Closed Thread
Results 1 to 6 of 6

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    I think I have never used serin successfully, therefore let me ask <b>you</b> an <u><font color = red><b>unqualified question:</u></b></font color> How many letters can you store in a single byte variable, like B0 ? And as I am leaving the house right now and do not have my manual handy, I may be all wet as to this line of questioning.
    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.

  2. #2
    Join Date
    Mar 2009
    Posts
    4


    Did you find this post helpful? Yes | No

    Default

    Joe,

    Thanks for replying to my post. Of course, the single byte variable can only store one ascii charactor (char in C). One charactor is just enough to reply to a Yes/No ( Y )/( N ) query presented with SEROUT. Please understand that I am just trying to get this to work and will build on that... As of now, I cannot get past inputting a single char SERIN. I dont know if it is my hw implementation ( using MEL suggested resistors ), am missing something unique to 12F629 programming, or my serial port setup on the PC.

    Further information about my configuration:
    - Using a 4Mhz external resonator
    - Selected XT on meProg..
    - SEROUT working beautifully...
    - Hyperterm set to 8N1 and receives ASCII from 629

  3. #3
    Join Date
    Mar 2009
    Posts
    4


    Did you find this post helpful? Yes | No

    Default

    Hello All,

    I got SERIN to work.. I summized that my code was no different than half a dozen other 629/675 SERIN code snippets in the archives.. So I thought that maybe I was barking up the wrong tree ( code problem ). Maybe my problem was the input interface. I was using the MEL suggested 22k resistor ( 22.1k ) on the PIC input with no luck. I Googled "PIC RS232 Interface" and found multiple links that use only a 10k input resistor. I changed my input resistor to 10k and bang it worked...

    Thanks everyone for the support. As I learn more, I hope to be an active member on this board.

    George

Similar Threads

  1. Serin Problem 16f819
    By jjohannson in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd March 2007, 22:50
  2. Serin serout problem
    By lerameur in forum mel PIC BASIC Pro
    Replies: 336
    Last Post: - 6th February 2007, 04:25
  3. Problem with PBP interrupt and Serin, please help
    By rgregor in forum mel PIC BASIC
    Replies: 0
    Last Post: - 22nd August 2006, 19:02
  4. serout and serin problem
    By nicolelawsc in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 11th April 2006, 19:44
  5. 16F877A serin problem with baud rate 19200
    By leemin in forum Serial
    Replies: 1
    Last Post: - 31st July 2005, 09:45

Members who have read this thread : 1

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts