HSERIN / SERIN Problem with 16f690


Results 1 to 25 of 25

Threaded View

  1. #9
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by rborsuk View Post
    Skimask,
    Okay, I put in your program. The light blinks once (when I release from reset - I don't touch anything), no character is displayed and that's it. I tried putting a HSEROUT before your main loop and it does send out a character. Any thoughts about turning off the built in analog stuff?
    My bad...yes, turn off all of the analog ports...everything over to digital.
    Code:
    Include "modedefs.bas"
    DEFINE OSC 3
    DEFINE HSER_RCSTA 90h
    DEFINE HSER_TXSTA 24h
    DEFINE HSER_SPBRG  92
    DEFINE HSER_CLROERR 1
    cm1con0 = 0 : cm2con0 = 0 : ansel = 0 : anselh = 0
    Char VAR BYTE : led var portb.6 : output led : input portb.5 : output portb.7
    led=1 : pause 500 : led=0 : pause 500 : led=1 : pause 500 : led=0 : pause 500
    Main: HSERIN [Char] : led = 1 : HSEROUT [Char] : pause 10 : led = 0 : GOTO Main
    END
    Last edited by skimask; - 28th October 2008 at 16:11.

Similar Threads

  1. HSERIN problem
    By eggman in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 6th October 2007, 21:31
  2. Serin Problem 16f819
    By jjohannson in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd March 2007, 22:50
  3. SERIN AND SEROUT PROBELM USING 16f690 PIC
    By Charles in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 18th January 2007, 03:59
  4. Problem with PBP interrupt and Serin, please help
    By rgregor in forum mel PIC BASIC
    Replies: 0
    Last Post: - 22nd August 2006, 19:02
  5. HSERIN problem
    By s_syafiq81 in forum Serial
    Replies: 2
    Last Post: - 1st January 2006, 11:05

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