rs232 with hardware USART


Results 1 to 17 of 17

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    It seems we write our reply at the same time...

    As i experiment when Picbasic Pro is use, you don't really need to define them by any TRIS stuff. In many case you can use the same i/o pin for getting entry from push button and out to a led without any TRIS define


    And you write this for PIC16F876

    TRISC.6 = 1
    TRISC.7 = 0

    but PORTC.6 is for trasmit, so output... must be set to 0
    and PORTC.7 is for receive....................must be set to 1

    oops

    regards
    Last edited by mister_e; - 14th October 2004 at 01:51.
    Steve

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

Similar Threads

  1. RS232 comm
    By longdw in forum Serial
    Replies: 9
    Last Post: - 15th September 2009, 03:13
  2. Benefits of hardware usart over software?
    By sccoupe in forum Serial
    Replies: 2
    Last Post: - 19th March 2009, 01:16
  3. Replies: 6
    Last Post: - 31st August 2007, 09:31
  4. problem with USART
    By leemin in forum Serial
    Replies: 4
    Last Post: - 11th December 2006, 17:56
  5. 16F628 Hardware USART problem
    By atomski in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 26th May 2004, 07:10

Members who have read this thread : 1

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