Need Help~~ simple serout and serin command, but i receive unknown character in PC


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    mengckid's Avatar
    mengckid Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e
    i don't see any INCLUDE "MODEDEFS.BAS" and/or DEFINE OSC x so what about ...
    SEROUT PORTC.6,0,["HELLO"]

    NO?? what about now
    SEROUT PORTC.6,4,["HELLO"]

    Since this PIC have an internal USART, why you don't use it??? HSEROUT, HSERIN + an external inverter circuit like MAX232.
    ya..i got include the INCLUDE "MODEDEFS.BAS" and define osc X..in my code. I haven try PIC 16F84A, but i think should be nope problem with the code that i mention above...thats y i am thinking is it PIC 16F874A problem? by using simple serin and serout command...

    By the way, i got include external inverter circuit like MAX232 in my hardware...emmm, just panic now, but i am sure my connection is correct...just receive the weird character only...

    emm..hehe, can u send me the simple code with HSERIN and HSEROUT to test...hopefully, can settle soon...

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


    Did you find this post helpful? Yes | No

    Default

    I am sure that with Hserout you will have no problem. Try to set the output BEFORE using the Serout command.

    Ioannis

Similar Threads

  1. PIC16f877 code crosses boundary @800h
    By inventosrl in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 6th April 2009, 23:03
  2. Advice-scrutiny for my serial controller
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 13th December 2008, 18:11
  3. Sending menu to PC from PIC16F876A
    By joseph Degorio in forum Serial
    Replies: 2
    Last Post: - 12th November 2007, 08:03
  4. Serial interface with RFID reader
    By brid0030 in forum Serial
    Replies: 8
    Last Post: - 23rd January 2007, 07:23
  5. SerIn and SerOut
    By Dwayne in forum FAQ - Frequently Asked Questions
    Replies: 0
    Last Post: - 21st July 2004, 16:54

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