This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Using P0 port for driving +3.3 V Devices

Hello,

I have a question. Can we use P0 port of 8051 for I/O of an external device which has +3.3V ratings for its I/O?

Thanks

Parents
  • for most (and I believe the AT89S52 - check the datasheet) old fashioned '51 derivatives P0 is 'open drain' which means that there is no pullup on the pins. Thus if you pull up with resistors connected to 3V3 this will, for output be a 3V3 bus. For input to PO you will have to check the output range (Voh Vol) of your other chip vs the input range of (Vih Vil) the AT chip and beware that you maintain a decent noise margin.

    Erik

Reply
  • for most (and I believe the AT89S52 - check the datasheet) old fashioned '51 derivatives P0 is 'open drain' which means that there is no pullup on the pins. Thus if you pull up with resistors connected to 3V3 this will, for output be a 3V3 bus. For input to PO you will have to check the output range (Voh Vol) of your other chip vs the input range of (Vih Vil) the AT chip and beware that you maintain a decent noise margin.

    Erik

Children