using TOCK pin as output?


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2004
    Location
    Calabasas, CA
    Posts
    84

    Default using TOCK pin as output?

    Can the A.4/TOCK pin of a 16C716 be used as an LCD (serial) output? Something is unique about this pin/setup? Doesn't seem to work as other pins.
    thanks
    James

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


    Did you find this post helpful? Yes | No

    Default

    Or it's only an input AND/OR it's an open drain type AND/OR there's some analog stuff multiplex wich have to be disable. The datasheet will give you the answer(s).
    Last edited by mister_e; - 7th November 2006 at 23:23.
    Steve

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

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


    Did you find this post helpful? Yes | No

    Default

    Pin RA4 is multiplexed with the Timer0 module clock
    input to become the RA4/T0CKI pin. The RA4/T0CKI
    pin is a Schmitt Trigger input and an open drain output.
    All other RA port pins have TTL input levels and full
    CMOS output drivers.

    I have to see if the Timer0 module clock input which this pin MUX's with is enabled I believe. I don't know what role the open drain output has if any on the serout?
    Last edited by droptail; - 8th November 2006 at 00:49.
    James

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


    Did you find this post helpful? Yes | No

    Default

    place a 1K pull-up resistor to this pin and post your results.
    Steve

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

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


    Did you find this post helpful? Yes | No

    Default

    Pin RA4 is multiplexed with the Timer0 module clock input to become the RA4/T0CKI pin. The RA4/T0CKI pin is a Schmitt Trigger input and an open drain output.

    I cannot determine by the data sheet, if the peripheral is enabled by default, and if so, how to disable. This being figured out, will the above description support the desired function, that is open drain output to serout an LCD command?
    James

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


    Did you find this post helpful? Yes | No

    Default

    Yes, it works. This is because the pin has an open drain output rather then the usual bipolar stage of the rest of the output pins. This means it can pull to ground when set to 0, but it will simply float when set to a 1, instead of going high. Somewhat confusing in the data sheet, I believe this is not an optional analog pin, as the rest of PORTA.
    James

Similar Threads

  1. Is this a K Type sensor?
    By jessey in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 21st November 2009, 13:55
  2. Help changing CCP3 output pin
    By ChrisHelvey in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 15th July 2008, 02:30
  3. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  4. Serious Serial Situation Setbacks...
    By Dansdog in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th February 2007, 03:46
  5. Another RTC, DS1287
    By DavidK in forum Code Examples
    Replies: 0
    Last Post: - 12th December 2006, 17:07

Members who have read this thread : 1

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