open drain output as digital output?


Closed Thread
Results 1 to 8 of 8

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Will a port pin that is an "open drain output" support a SEROUT command?
    Yes for sure, use Dave's suggestion.

    The pin in question RA4 is multiplexed with a Timer0 module clock input. Can it still be used as a digital pin?
    Yes

    Will a SEROUT command set the pin digital output even if the pin was previously set as analog input?
    Nope, this is also why we see many question about that. Always make sure you disable multiplexed stuff(when possible) on an i/o before using it.

    ADCs/analog comparator are popular.
    Steve

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

  2. #2
    Join Date
    Nov 2004
    Location
    Calabasas, CA
    Posts
    84


    Did you find this post helpful? Yes | No

    Default

    I have success with 1k hold up for now.
    I also have no problems for years with SEROUT command working on a port pin set as analog and input, why?

    TRISA =255 'all PortA Inputs
    ADCON1 =0 'all PortA Analog

    SerOut PORTA.0,N2400 ...
    James

  3. #3
    Join Date
    Nov 2004
    Location
    Calabasas, CA
    Posts
    84


    Did you find this post helpful? Yes | No

    Default

    Thank you both for your help.
    James

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


    Did you find this post helpful? Yes | No

    Default

    Probably at slow baudrate it may work... but i will never trust or use that.
    Steve

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

Similar Threads

  1. Serious Serial Situation Setbacks...
    By Dansdog in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th February 2007, 03:46
  2. Replies: 0
    Last Post: - 15th December 2006, 19:16
  3. Rx433 linear and digital output
    By mbw123 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 29th October 2006, 21:26
  4. HSEROUT Newbie question/problem
    By Mark Scotford in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 11th July 2006, 14:44
  5. Digital Compass Project
    By BJSmith in forum Serial
    Replies: 2
    Last Post: - 7th April 2006, 19:32

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