Help with pic16f690 -max232cpe


Results 1 to 2 of 2

Threaded View

  1. #2
    Join Date
    Mar 2010
    Location
    Minnesota, USA
    Posts
    41

    Default

    I have never used HSEROUT before but I use SEROUT.

    Try this code just change your output pin from PORTB.0 to what ever one you are using:

    Code:
    DEFINE OSC 4
    
    Baud   con     2                           ' Define serial mode
    
    main:
       Serout PORTB.0,Baud,["Hello World",13,10]
       pause 1000
    goto main
    If the "Baud con 2" doesn't work change it to "Baud con 6"
    This is the Mode - 2 is 9600 TTL True and 6 is 9600 TTL Inverted
    Last edited by wolwil; - 17th April 2010 at 17:50.

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