1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

at892051 I/O help

Discussion in '8051/8951' started by aamir1, Jan 28, 2013.

  1. aamir1

    aamir1 Member

    Joined:
    Oct 8, 2011
    Messages:
    106
    Likes:
    0
    guyz how can we convert a port to input or output ?? and what is the initial stage of ports in the at892051 microcontroller and also the timer is same as 8051 means the TMOD register has the same configuration or not?
     
  2. dougy83

    dougy83 Well-Known Member

    Joined:
    May 18, 2008
    Messages:
    2,677
    Likes:
    215
    Location:
    Brisbane, Australia
    AFAIK 8051 doesn't have a data direction register; setting the port bits high allows them to be used as an input.

    This sets the pin high with a weak pullup that can be overcome by whatever you're connecting to it, e.g. a switch to GND.
     
  3. dengxinjun

    dengxinjun New Member

    Joined:
    Oct 5, 2014
    Messages:
    8
    Likes:
    0
    Are set register
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,310
    Likes:
    914
    Location:
    Rochdale UK
    ONLINE

    dengxinjun Please look at the date of the thread BEFORE reviving it!!!
     

Share This Page