quick changing of ports for I/O use


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838

    Default quick changing of ports for I/O use

    Hi guys , was wondering where i should look in the electrical specs for the chip where the ports settle time between changing port inputs to output and back

    have need to do fast transition of direction over a group of port pins over several ports

    cheers

    Sheldon

  2. #2
    Join Date
    Aug 2011
    Posts
    408


    Did you find this post helpful? Yes | No

    Default Re: quick changing of ports for I/O use

    I don't know that there's a direct spec, but if you look in the AC (Timing) Characteristics section
    you'll find a 'CLKO AND I/O TIMING REQUIREMENTS' table. Parameter TosH2ioV should give you a ballpark
    idea as to the speed of the IO pins. The transitions into and out of tristate would probably be longer than this.

    Since you have a group of port pins over several ports the time required to change the direction will
    likely overshadow those numbers. Something like
    Code:
    TRISA = $55
    TRISB = $AA
    TRISC = $CC
    will take a min of 6 instructions (2 per TRIS setting), so on a PIC18 that's 6 x 4 = 24 Tosc periods.

  3. #3
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: quick changing of ports for I/O use

    ok thanks i am seeing longer times than i first thought ,

Similar Threads

  1. A quick question.....
    By Megahertz in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th December 2010, 15:25
  2. A quick way...
    By aherrera in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 28th November 2009, 10:52
  3. Just a quick one
    By Sphere in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 22nd March 2007, 08:45
  4. PIC16F84A - Quick question
    By samuelbarber in forum mel PIC BASIC
    Replies: 1
    Last Post: - 29th June 2005, 15:32
  5. quick question
    By Srigopal007 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd December 2004, 02:45

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