can't get serin to work


Results 1 to 14 of 14

Threaded View

  1. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    It's just too bad that there's no OSCCAL or OSCTUNE on that one

    Serial com=crystal

    OR manually set the USART SPBRG value and find the one that work not something i would use...
    Code:
    DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
    DEFINE HSER_TXSTA 20h ' Enable transmit, BRGH = 0
    DEFINE HSER_SPBRG 25  ' 2400 Baud @ 4MHz, 0.17%
    DEFINE HSER_CLROERR 1 ' Clear overflow automatically
    
    Pause 500
    
    Start:
         FOR SPBRG=15 to 30
              HSEROUT ["SPBRG=",#SPBRG]
              PAUSE 250
              NEXT
         GOTO Start
    you may try to use the same method but with SEROUT2.

    Good luck!

    PS: Use Microcode Studio serial communicator (F4), easier ....
    Last edited by mister_e; - 15th April 2007 at 23:45.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. serin not work
    By mpardinho in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 20th March 2007, 10:36
  2. Problem with PBP interrupt and Serin, please help
    By rgregor in forum mel PIC BASIC
    Replies: 0
    Last Post: - 22nd August 2006, 19:02
  3. Serin with low voltage
    By f_lez in forum General
    Replies: 3
    Last Post: - 21st August 2006, 11:52
  4. SerIn and SerOut
    By Dwayne in forum FAQ - Frequently Asked Questions
    Replies: 0
    Last Post: - 21st July 2004, 15:54
  5. Pin RA4 doesn't work
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 0
    Last Post: - 15th July 2004, 12:03

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