PDA

View Full Version : uart problem



OYMYAKON
- 24th March 2011, 14:47
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

Bruce
- 24th March 2011, 15:49
If you need direct control of the TX pin your only option is to disable the hardware uart.

OYMYAKON
- 25th March 2011, 08:33
Thanks a lot.
Paul

retepsnikrep
- 25th March 2011, 11:52
Can't you just say


PortB.5 = 0
sleep
PortB.5 = 1
restart Uart etc if reqd