Digital output (RA5) on 16f884


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Aug 2011
    Posts
    453


    Did you find this post helpful? Yes | No

    Default Re: Digital output (RA5) on 16f884

    TRISB = 15

    You're only setting RB0-RB3 as inputs

  2. #2
    Join Date
    May 2012
    Location
    Merseyside, UK
    Posts
    237


    Did you find this post helpful? Yes | No

    Default Re: Digital output (RA5) on 16f884

    Quote Originally Posted by tumbleweed View Post
    TRISB = 15

    You're only setting RB0-RB3 as inputs
    Thanks both for help..... Missing the obvious, for some reason I copied and pasted previous code, but left TRISB as 15.

    Changed to 255 and all works now......

    Thank you again

  3. #3
    Join Date
    Jan 2006
    Location
    Slovenia EU
    Posts
    32


    Did you find this post helpful? Yes | No

    Default Re: Digital output (RA5) on 16f884

    You have porta set to output try with resistor 4K7 between RA5 and VCC.

  4. #4
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: Digital output (RA5) on 16f884

    Just a tip for visual people like me:

    - use individual bits for fuses, it's much easier to determine which bit is ON or OFF.

    For example:
    TRISB=%00001111
    versus
    TRISB=$0F
    versus
    TRISB=15

    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  5. #5
    Join Date
    May 2012
    Location
    Merseyside, UK
    Posts
    237


    Did you find this post helpful? Yes | No

    Default Re: Digital output (RA5) on 16f884

    Quote Originally Posted by Demon View Post
    Just a tip for visual people like me:

    - use individual bits for fuses, it's much easier to determine which bit is ON or OFF.

    For example:
    TRISB=%00001111
    versus
    TRISB=$0F
    versus
    TRISB=15

    Robert
    Very good advice.... My problem is disciplining myself to carry it out.

    Maybe I need slow down a bit :-)

    BR
    Andy

Similar Threads

  1. Fuses issue on 16f884.... Locked out ??
    By andybarrett1 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 18th May 2017, 14:50
  2. Port Digital Output Not Changing Properly
    By rsocor01 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th March 2017, 07:06
  3. PIC16F685 RA4/RA5 pins
    By Adrian in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 9th November 2008, 15:45
  4. open drain output as digital output?
    By droptail in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 10th November 2006, 03:11
  5. Rx433 linear and digital output
    By mbw123 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 29th October 2006, 21:26

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

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