541:
Port 0 outputs the low byte of the external memory address, time-multiplexed with the byte being written or read. Port 2 outputs the high byte of the external memory address when the address is 16 bits wide. Otherwise the Port 2 pins continue to emit the P2 SFR content. All the Port 3 pins, and two Port 1 pins (in the AT89C52)are multifunctional. The alternate functions can only be activated if the corresponding bit latch in the port SFR contains a 1. Otherwise the port pin is stuck at 0.
1825:
20:
540:
All four ports in the AT89C51 and AT89C52 are bidirectional. Each consists of a latch (Special
Function Registers P0 through P3), an output driver, and an input buffer. The output drivers of Ports 0 and 2, and the input buffers of Port 0, are used in accesses to external memory. In this application,
50:
Based on the Intel 8051 core, the AT89 series remains very popular as general purpose microcontrollers, due to their industry standard instruction set, their low unit cost, and the availability of these chips in DIL (DIP) packages. This allows a great amount of legacy code to be reused without
550:
88:
Atmel has also created an LP (low power) series of these chips with a "Single Cycle Core", making the execution speed of these chips considerably faster.
1870:
61:
More recently, the AT89 series has been augmented with 8051-cored special function microcontrollers, specifically in the areas of
1889:
1863:
1894:
70:
58:
microcontrollers, new product development has continued with the AT89 series for the aforementioned advantages.
1856:
74:
82:
62:
1769:
1741:
1663:
1607:
1554:
1426:
1370:
1292:
1186:
883:
829:
776:
723:
595:
1840:
1824:
40:
24:
961:
936:
911:
1836:
1504:
1479:
1454:
1398:
1239:
1136:
1086:
1061:
1036:
1011:
986:
698:
570:
1883:
1832:
1797:
1691:
1635:
1345:
1320:
1264:
1214:
1111:
858:
804:
751:
673:
648:
623:
51:
modification in new applications. While less powerful than the newer AT90 series of
1582:
1529:
1716:
1161:
102:
19:
36:
52:
66:
884:"Low Pin Count 8-bit MCU with A/D converter and 16 KB Flash Memory"
44:
18:
55:
108:
78:
551:
Atmel's 8051 family product page, updated link 09/23/2012
1844:
1658:
1656:
1421:
1419:
16:
Intel 8051-compatible family of 8 bit microcontrollers
1287:
1285:
1215:"AT89C55/55WD - Microcontrollers and Processors"
962:"AT89C5131A-M - Microcontrollers and Processors"
937:"AT89C5131A-L - Microcontrollers and Processors"
912:"AT89C5130A-M - Microcontrollers and Processors"
1505:"AT89LP6440 - Microcontrollers and Processors"
1480:"AT89LP4052 - Microcontrollers and Processors"
1455:"AT89LP3240 - Microcontrollers and Processors"
1399:"AT89LP2052 - Microcontrollers and Processors"
1240:"AT89EB5114 - Microcontrollers and Processors"
1137:"AT89C51RD2 - Microcontrollers and Processors"
1087:"AT89C51ID2 - Microcontrollers and Processors"
1062:"AT89C51IC2 - Microcontrollers and Processors"
1037:"AT89C51ED2 - Microcontrollers and Processors"
1012:"AT89C51AC3 - Microcontrollers and Processors"
987:"AT89C51AC2 - Microcontrollers and Processors"
699:"AT83EB5114 - Microcontrollers and Processors"
571:"AT80C51RD2 - Microcontrollers and Processors"
1864:
1798:"AT89S8253 - Microcontrollers and Processors"
1692:"AT89S4051 - Microcontrollers and Processors"
1636:"AT89S2051 - Microcontrollers and Processors"
1346:"AT89LP216 - Microcontrollers and Processors"
1321:"AT89LP214 - Microcontrollers and Processors"
1265:"AT89LP213 - Microcontrollers and Processors"
1112:"AT89C51RC - Microcontrollers and Processors"
859:"AT89C5115 - Microcontrollers and Processors"
805:"AT89C4051 - Microcontrollers and Processors"
752:"AT89C2051 - Microcontrollers and Processors"
674:"AT83C5136 - Microcontrollers and Processors"
649:"AT83C5135 - Microcontrollers and Processors"
624:"AT83C5134 - Microcontrollers and Processors"
8:
1583:"AT89LS52 - Microcontrollers and Processors"
1530:"AT89LS51 - Microcontrollers and Processors"
1717:"AT89S51 - Microcontrollers and Processors"
1162:"AT89S52 - Microcontrollers and Processors"
1871:
1857:
95:
1664:"AT89S2051/S4051 Preliminary Datasheet"
562:
7:
1821:
1819:
1843:. You can help Knowledge (XXG) by
14:
1823:
1:
536:Port Structures and Operation
92:AT89 Series Microcontrollers
39:-compatible family of 8 bit
1911:
1818:
43:(μCs) manufactured by the
724:"AT83EB5114 AT89EB5114"
1890:Atmel microcontrollers
1839:-related article is a
81:decoders and hardware
69:(two wire interface),
28:
22:
1895:Microcomputer stubs
29:
1852:
1851:
1749:www.microchip.com
1721:www.microchip.com
1696:www.microchip.com
1640:www.microchip.com
1615:www.microchip.com
1587:www.microchip.com
1562:www.microchip.com
1534:www.microchip.com
1509:www.microchip.com
1484:www.microchip.com
1459:www.microchip.com
1403:www.microchip.com
1350:www.microchip.com
1325:www.microchip.com
1269:www.microchip.com
1244:www.microchip.com
1219:www.microchip.com
1194:www.microchip.com
1166:www.microchip.com
1141:www.microchip.com
1116:www.microchip.com
1091:www.microchip.com
1066:www.microchip.com
1041:www.microchip.com
1016:www.microchip.com
991:www.microchip.com
966:www.microchip.com
941:www.microchip.com
916:www.microchip.com
891:www.microchip.com
863:www.microchip.com
809:www.microchip.com
756:www.microchip.com
731:www.microchip.com
703:www.microchip.com
678:www.microchip.com
653:www.microchip.com
628:www.microchip.com
603:www.microchip.com
575:www.microchip.com
533:
532:
77:bus controllers,
45:Atmel Corporation
33:Atmel AT89 series
1902:
1873:
1866:
1859:
1827:
1820:
1813:
1812:
1810:
1808:
1794:
1788:
1787:
1785:
1783:
1774:
1766:
1760:
1759:
1757:
1755:
1746:
1738:
1732:
1731:
1729:
1727:
1713:
1707:
1706:
1704:
1702:
1688:
1682:
1681:
1679:
1677:
1668:
1660:
1651:
1650:
1648:
1646:
1632:
1626:
1625:
1623:
1621:
1612:
1604:
1598:
1597:
1595:
1593:
1579:
1573:
1572:
1570:
1568:
1559:
1551:
1545:
1544:
1542:
1540:
1526:
1520:
1519:
1517:
1515:
1501:
1495:
1494:
1492:
1490:
1476:
1470:
1469:
1467:
1465:
1451:
1445:
1444:
1442:
1440:
1431:
1423:
1414:
1413:
1411:
1409:
1395:
1389:
1388:
1386:
1384:
1375:
1367:
1361:
1360:
1358:
1356:
1342:
1336:
1335:
1333:
1331:
1317:
1311:
1310:
1308:
1306:
1297:
1289:
1280:
1279:
1277:
1275:
1261:
1255:
1254:
1252:
1250:
1236:
1230:
1229:
1227:
1225:
1211:
1205:
1204:
1202:
1200:
1191:
1183:
1177:
1176:
1174:
1172:
1158:
1152:
1151:
1149:
1147:
1133:
1127:
1126:
1124:
1122:
1108:
1102:
1101:
1099:
1097:
1083:
1077:
1076:
1074:
1072:
1058:
1052:
1051:
1049:
1047:
1033:
1027:
1026:
1024:
1022:
1008:
1002:
1001:
999:
997:
983:
977:
976:
974:
972:
958:
952:
951:
949:
947:
933:
927:
926:
924:
922:
908:
902:
901:
899:
897:
888:
880:
874:
873:
871:
869:
855:
849:
848:
846:
844:
834:
826:
820:
819:
817:
815:
801:
795:
794:
792:
790:
781:
773:
767:
766:
764:
762:
748:
742:
741:
739:
737:
728:
720:
714:
713:
711:
709:
695:
689:
688:
686:
684:
670:
664:
663:
661:
659:
645:
639:
638:
636:
634:
620:
614:
613:
611:
609:
600:
592:
586:
585:
583:
581:
567:
96:
41:microcontrollers
1910:
1909:
1905:
1904:
1903:
1901:
1900:
1899:
1880:
1879:
1878:
1877:
1817:
1816:
1806:
1804:
1796:
1795:
1791:
1781:
1779:
1772:
1768:
1767:
1763:
1753:
1751:
1744:
1740:
1739:
1735:
1725:
1723:
1715:
1714:
1710:
1700:
1698:
1690:
1689:
1685:
1675:
1673:
1666:
1662:
1661:
1654:
1644:
1642:
1634:
1633:
1629:
1619:
1617:
1610:
1606:
1605:
1601:
1591:
1589:
1581:
1580:
1576:
1566:
1564:
1557:
1553:
1552:
1548:
1538:
1536:
1528:
1527:
1523:
1513:
1511:
1503:
1502:
1498:
1488:
1486:
1478:
1477:
1473:
1463:
1461:
1453:
1452:
1448:
1438:
1436:
1429:
1425:
1424:
1417:
1407:
1405:
1397:
1396:
1392:
1382:
1380:
1373:
1369:
1368:
1364:
1354:
1352:
1344:
1343:
1339:
1329:
1327:
1319:
1318:
1314:
1304:
1302:
1295:
1291:
1290:
1283:
1273:
1271:
1263:
1262:
1258:
1248:
1246:
1238:
1237:
1233:
1223:
1221:
1213:
1212:
1208:
1198:
1196:
1189:
1185:
1184:
1180:
1170:
1168:
1160:
1159:
1155:
1145:
1143:
1135:
1134:
1130:
1120:
1118:
1110:
1109:
1105:
1095:
1093:
1085:
1084:
1080:
1070:
1068:
1060:
1059:
1055:
1045:
1043:
1035:
1034:
1030:
1020:
1018:
1010:
1009:
1005:
995:
993:
985:
984:
980:
970:
968:
960:
959:
955:
945:
943:
935:
934:
930:
920:
918:
910:
909:
905:
895:
893:
886:
882:
881:
877:
867:
865:
857:
856:
852:
842:
840:
839:. 5 August 2012
832:
828:
827:
823:
813:
811:
803:
802:
798:
788:
786:
779:
775:
774:
770:
760:
758:
750:
749:
745:
735:
733:
726:
722:
721:
717:
707:
705:
697:
696:
692:
682:
680:
672:
671:
667:
657:
655:
647:
646:
642:
632:
630:
622:
621:
617:
607:
605:
598:
594:
593:
589:
579:
577:
569:
568:
564:
559:
547:
538:
441:4352 bytes RAM
419:4352 bytes RAM
331:1792 bytes RAM
309:1792 bytes RAM
287:1792 bytes RAM
276:2048 bytes RAM
265:1024 bytes RAM
254:1024 bytes RAM
243:1024 bytes RAM
232:1024 bytes RAM
155:1024 bytes RAM
144:1024 bytes RAM
133:1024 bytes RAM
122:1024 bytes RAM
94:
25:microcontroller
17:
12:
11:
5:
1908:
1906:
1898:
1897:
1892:
1882:
1881:
1876:
1875:
1868:
1861:
1853:
1850:
1849:
1837:microprocessor
1828:
1815:
1814:
1789:
1761:
1733:
1708:
1683:
1652:
1627:
1599:
1574:
1546:
1521:
1496:
1471:
1446:
1415:
1390:
1362:
1337:
1312:
1281:
1256:
1231:
1206:
1178:
1153:
1128:
1103:
1078:
1053:
1028:
1003:
978:
953:
928:
903:
875:
850:
821:
796:
768:
743:
715:
690:
665:
640:
615:
587:
561:
560:
558:
555:
554:
553:
546:
545:External links
543:
537:
534:
531:
530:
529:256 bytes RAM
527:
524:
520:
519:
518:256 bytes RAM
516:
513:
509:
508:
507:256 bytes RAM
505:
502:
498:
497:
496:128 bytes RAM
494:
491:
487:
486:
485:256 bytes RAM
483:
480:
476:
475:
474:256 bytes RAM
472:
469:
465:
464:
463:256 bytes RAM
461:
458:
454:
453:
452:128 bytes RAM
450:
447:
443:
442:
439:
436:
432:
431:
430:256 bytes RAM
428:
425:
421:
420:
417:
414:
410:
409:
408:256 bytes RAM
406:
403:
399:
398:
397:128 bytes RAM
395:
392:
388:
387:
386:128 bytes RAM
384:
381:
377:
376:
375:128 bytes RAM
373:
370:
366:
365:
364:256 bytes RAM
362:
359:
355:
354:
353:256 bytes RAM
351:
348:
344:
343:
342:256 bytes RAM
340:
337:
333:
332:
329:
326:
322:
321:
320:512 bytes RAM
318:
315:
311:
310:
307:
304:
300:
299:
298:256 bytes RAM
296:
293:
289:
288:
285:
282:
278:
277:
274:
271:
267:
266:
263:
260:
256:
255:
252:
249:
245:
244:
241:
238:
234:
233:
230:
227:
223:
222:
221:256 bytes RAM
219:
216:
212:
211:
210:128 bytes RAM
208:
205:
201:
200:
199:128 bytes RAM
197:
194:
190:
189:
188:128 bytes RAM
186:
183:
179:
178:
175:
172:
168:
167:
166:256 bytes RAM
164:
161:
157:
156:
153:
150:
146:
145:
142:
139:
135:
134:
131:
128:
124:
123:
120:
117:
113:
112:
106:
100:
93:
90:
15:
13:
10:
9:
6:
4:
3:
2:
1907:
1896:
1893:
1891:
1888:
1887:
1885:
1874:
1869:
1867:
1862:
1860:
1855:
1854:
1848:
1846:
1842:
1838:
1834:
1833:microcomputer
1829:
1826:
1822:
1803:
1802:microchip.com
1799:
1793:
1790:
1778:
1777:microchip.com
1771:
1765:
1762:
1750:
1743:
1737:
1734:
1722:
1718:
1712:
1709:
1697:
1693:
1687:
1684:
1672:
1671:microchip.com
1665:
1659:
1657:
1653:
1641:
1637:
1631:
1628:
1616:
1609:
1603:
1600:
1588:
1584:
1578:
1575:
1563:
1556:
1550:
1547:
1535:
1531:
1525:
1522:
1510:
1506:
1500:
1497:
1485:
1481:
1475:
1472:
1460:
1456:
1450:
1447:
1435:
1434:microchip.com
1428:
1422:
1420:
1416:
1404:
1400:
1394:
1391:
1379:
1378:microchip.com
1372:
1366:
1363:
1351:
1347:
1341:
1338:
1326:
1322:
1316:
1313:
1301:
1300:microchip.com
1294:
1288:
1286:
1282:
1270:
1266:
1260:
1257:
1245:
1241:
1235:
1232:
1220:
1216:
1210:
1207:
1195:
1188:
1182:
1179:
1167:
1163:
1157:
1154:
1142:
1138:
1132:
1129:
1117:
1113:
1107:
1104:
1092:
1088:
1082:
1079:
1067:
1063:
1057:
1054:
1042:
1038:
1032:
1029:
1017:
1013:
1007:
1004:
992:
988:
982:
979:
967:
963:
957:
954:
942:
938:
932:
929:
917:
913:
907:
904:
892:
885:
879:
876:
864:
860:
854:
851:
838:
837:microchip.com
831:
825:
822:
810:
806:
800:
797:
785:
784:microchip.com
778:
772:
769:
757:
753:
747:
744:
732:
725:
719:
716:
704:
700:
694:
691:
679:
675:
669:
666:
654:
650:
644:
641:
629:
625:
619:
616:
604:
597:
591:
588:
576:
572:
566:
563:
556:
552:
549:
548:
544:
542:
535:
528:
525:
522:
521:
517:
514:
511:
510:
506:
503:
500:
499:
495:
492:
489:
488:
484:
481:
478:
477:
473:
470:
467:
466:
462:
459:
456:
455:
451:
448:
445:
444:
440:
437:
434:
433:
429:
426:
423:
422:
418:
415:
412:
411:
407:
404:
401:
400:
396:
393:
390:
389:
385:
382:
379:
378:
374:
371:
368:
367:
363:
360:
357:
356:
352:
349:
347:AT89C55/55WD
346:
345:
341:
338:
335:
334:
330:
327:
324:
323:
319:
316:
313:
312:
308:
305:
302:
301:
297:
294:
291:
290:
286:
283:
280:
279:
275:
272:
269:
268:
264:
261:
258:
257:
253:
250:
248:AT89C5131A-M
247:
246:
242:
239:
237:AT89C5131A-L
236:
235:
231:
228:
226:AT89C5130A-M
225:
224:
220:
217:
214:
213:
209:
206:
203:
202:
198:
195:
192:
191:
187:
184:
181:
180:
177:64 bytes RAM
176:
173:
170:
169:
165:
162:
159:
158:
154:
151:
148:
147:
143:
140:
137:
136:
132:
129:
126:
125:
121:
118:
115:
114:
110:
107:
104:
101:
98:
97:
91:
89:
86:
84:
80:
76:
72:
68:
64:
59:
57:
54:
48:
46:
42:
38:
34:
26:
23:An AT89c2051
21:
1845:expanding it
1830:
1807:13 September
1805:. Retrieved
1801:
1792:
1782:13 September
1780:. Retrieved
1776:
1764:
1754:13 September
1752:. Retrieved
1748:
1736:
1726:13 September
1724:. Retrieved
1720:
1711:
1701:13 September
1699:. Retrieved
1695:
1686:
1676:13 September
1674:. Retrieved
1670:
1645:13 September
1643:. Retrieved
1639:
1630:
1620:13 September
1618:. Retrieved
1614:
1602:
1592:13 September
1590:. Retrieved
1586:
1577:
1567:13 September
1565:. Retrieved
1561:
1549:
1539:13 September
1537:. Retrieved
1533:
1524:
1514:13 September
1512:. Retrieved
1508:
1499:
1489:13 September
1487:. Retrieved
1483:
1474:
1464:13 September
1462:. Retrieved
1458:
1449:
1439:13 September
1437:. Retrieved
1433:
1427:"3547J.book"
1408:13 September
1406:. Retrieved
1402:
1393:
1383:13 September
1381:. Retrieved
1377:
1371:"3621E.book"
1365:
1355:13 September
1353:. Retrieved
1349:
1340:
1330:13 September
1328:. Retrieved
1324:
1315:
1305:13 September
1303:. Retrieved
1299:
1293:"3538E.book"
1274:13 September
1272:. Retrieved
1268:
1259:
1249:13 September
1247:. Retrieved
1243:
1234:
1224:13 September
1222:. Retrieved
1218:
1209:
1199:13 September
1197:. Retrieved
1193:
1181:
1171:13 September
1169:. Retrieved
1165:
1156:
1146:13 September
1144:. Retrieved
1140:
1131:
1121:13 September
1119:. Retrieved
1115:
1106:
1096:13 September
1094:. Retrieved
1090:
1081:
1071:13 September
1069:. Retrieved
1065:
1056:
1046:13 September
1044:. Retrieved
1040:
1031:
1021:13 September
1019:. Retrieved
1015:
1006:
996:13 September
994:. Retrieved
990:
981:
971:13 September
969:. Retrieved
965:
956:
946:13 September
944:. Retrieved
940:
931:
921:13 September
919:. Retrieved
915:
906:
896:13 September
894:. Retrieved
890:
878:
868:13 September
866:. Retrieved
862:
853:
843:13 September
841:. Retrieved
836:
824:
814:13 September
812:. Retrieved
808:
799:
789:13 September
787:. Retrieved
783:
771:
761:13 September
759:. Retrieved
755:
746:
736:13 September
734:. Retrieved
730:
718:
708:13 September
706:. Retrieved
702:
693:
683:13 September
681:. Retrieved
677:
668:
658:13 September
656:. Retrieved
652:
643:
633:13 September
631:. Retrieved
627:
618:
608:13 September
606:. Retrieved
602:
590:
580:13 September
578:. Retrieved
574:
565:
539:
336:AT89C52/S52
204:AT89C51/S51
103:Flash memory
99:Device name
87:
60:
49:
32:
30:
1770:"AT89S8252"
830:"AT89C4051"
777:"AT89C2051"
504:12KB Flash
438:64KB Flash
435:AT89LP6440
424:AT89LP4052
416:64KB Flash
413:AT89LP3240
402:AT89LP2052
358:AT89EB5114
350:20KB Flash
328:64KB Flash
325:AT89C51RD2
317:32KB Flash
306:64KB Flash
303:AT89C51ID2
295:32KB Flash
292:AT89C51IC2
284:64KB Flash
281:AT89C51ED2
273:64KB Flash
270:AT89C51AC3
262:32KB Flash
259:AT89C51AC2
251:32KB Flash
240:32KB Flash
229:16KB Flash
218:16KB Flash
160:AT83EB5114
119:64KB Flash
116:AT80C51RD2
109:Data memory
1884:Categories
1608:"AT89LS52"
1555:"AT89LS51"
557:References
526:8KB Flash
523:AT89S8253
515:8KB Flash
512:AT89S8252
493:4KB Flash
482:4KB Flash
479:AT89S4051
471:2KB Flash
468:AT89S2051
460:8KB Flash
449:4KB Flash
427:4KB Flash
405:2KB Flash
394:2KB Flash
391:AT89LP216
383:2KB Flash
380:AT89LP214
372:2KB Flash
369:AT89LP213
361:4KB Flash
339:8KB Flash
314:AT89C51RC
215:AT89C5115
207:4KB Flash
196:4KB Flash
193:AT89C4051
185:2KB Flash
182:AT89C2051
174:1KB Flash
171:AT89C1051
149:AT83C5136
138:AT83C5135
127:AT83C5134
37:Intel 8051
27:in circuit
1742:"AT89S51"
1187:"AT89S52"
457:AT89LS52
446:AT89LS51
596:"Ferret"
501:AT89S53
490:AT89S51
163:-none-
152:-none-
141:-none-
130:-none-
35:is an
1835:- or
1831:This
1773:(PDF)
1745:(PDF)
1667:(PDF)
1611:(PDF)
1558:(PDF)
1430:(PDF)
1374:(PDF)
1296:(PDF)
1190:(PDF)
887:(PDF)
833:(PDF)
780:(PDF)
727:(PDF)
599:(PDF)
111:size
105:size
1841:stub
1809:2020
1784:2020
1756:2020
1728:2020
1703:2020
1678:2020
1647:2020
1622:2020
1594:2020
1569:2020
1541:2020
1516:2020
1491:2020
1466:2020
1441:2020
1410:2020
1385:2020
1357:2020
1332:2020
1307:2020
1276:2020
1251:2020
1226:2020
1201:2020
1173:2020
1148:2020
1123:2020
1098:2020
1073:2020
1048:2020
1023:2020
998:2020
973:2020
948:2020
923:2020
898:2020
870:2020
845:2020
816:2020
791:2020
763:2020
738:2020
710:2020
685:2020
660:2020
635:2020
610:2020
582:2020
73:and
56:RISC
31:The
83:PWM
79:MP3
75:CAN
71:SPI
67:I²C
63:USB
53:AVR
1886::
1800:.
1775:.
1747:.
1719:.
1694:.
1669:.
1655:^
1638:.
1613:.
1585:.
1560:.
1532:.
1507:.
1482:.
1457:.
1432:.
1418:^
1401:.
1376:.
1348:.
1323:.
1298:.
1284:^
1267:.
1242:.
1217:.
1192:.
1164:.
1139:.
1114:.
1089:.
1064:.
1039:.
1014:.
989:.
964:.
939:.
914:.
889:.
861:.
835:.
807:.
782:.
754:.
729:.
701:.
676:.
651:.
626:.
601:.
573:.
85:.
65:,
47:.
1872:e
1865:t
1858:v
1847:.
1811:.
1786:.
1758:.
1730:.
1705:.
1680:.
1649:.
1624:.
1596:.
1571:.
1543:.
1518:.
1493:.
1468:.
1443:.
1412:.
1387:.
1359:.
1334:.
1309:.
1278:.
1253:.
1228:.
1203:.
1175:.
1150:.
1125:.
1100:.
1075:.
1050:.
1025:.
1000:.
975:.
950:.
925:.
900:.
872:.
847:.
818:.
793:.
765:.
740:.
712:.
687:.
662:.
637:.
612:.
584:.
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.