uart problem


Closed Thread
Results 1 to 4 of 4

Thread: uart problem

  1. #1
    Join Date
    Mar 2011
    Posts
    2

    Default uart problem

    Hi,
    I am trying to make a battery powered device so power is of a premium.
    When i put the Pic 16f88 to sleep the uart pin RB5 stays hi which is drawing current from the supply as it is going into a RF transmitter that is turned off.

    How can i turn RB5 off when in sleep, i have tried TRISB = %11111111 to no avail
    Cheers
    Paul

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default Re: uart problem

    If you need direct control of the TX pin your only option is to disable the hardware uart.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3
    Join Date
    Mar 2011
    Posts
    2


    Did you find this post helpful? Yes | No

    Default Re: uart problem

    Thanks a lot.
    Paul

  4. #4


    Did you find this post helpful? Yes | No

    Default Re: uart problem

    Can't you just say
    Code:
    PortB.5 = 0
    sleep
    PortB.5 = 1
    restart Uart etc if reqd

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