how do you clear the serial buffer at power up?


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Location
    Glasgow, Scotland
    Posts
    26


    Did you find this post helpful? Yes | No

    Default AP1200 serial printer

    hi again yes i am using serial out as follows
    printoutB:
    gosub GetBin
    gosub year10
    SEROUT PortC.6,T9600,[printit,"k =",#peak,"0 ftlbs",13,10]

    pause 100: return

    any suggestions please
    thanks again john

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


    Did you find this post helpful? Yes | No

    Default

    2 choice, Or you change it to HSEROUT (with the according DEFINEs + TRIS ) or you still use SEROUT BUT you give to that pin the right idle level when your program start.

    Somewhere at the top of your program, add those simple line
    HIGH PORTC.6
    PAUSE 50

    and post your results
    Steve

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

Similar Threads

  1. PIC16F88 HSERIN to LCD Problem
    By robbrownuk in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 6th June 2009, 23:32
  2. EDE702 where?
    By karenhornby in forum General
    Replies: 18
    Last Post: - 16th June 2008, 23:04
  3. Student Project
    By aggie in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 8th July 2006, 09:56
  4. USB Interface using PIC
    By Tissy in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 22nd May 2006, 17:04
  5. Serial Comms Buffer?
    By koossa in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 2nd December 2005, 02:29

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