uart problem



THE BOOK of DT's INTERRUPTS is an organization of interrupt service routines and other works written by Darrel Taylor, RIP.

Interrupt routines are arranged per Darrel's original list. Darrel Taylor's Instant Interrupts are an extension of the work of Tim Box whom in October of 2002 wrote INT_CTRL.pbp

Many of the forum members felt this is a long overdue project.

THE BOOK of DT's INTERRUPTS
will be a valuable resource and a tribute to Darrel Taylor the "Fanatical Contributor".

THE BOOK of DT's INTERRUPTS is located at http://dt.picbasic.co.uk/

+ Reply to 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts