【正文】
ovided by Atmel? in their datasheet showing the architecture the 89S52 device can seem very plicated, and since we are going to use the C high level language to program it, a simpler architecture can be represented as the figure . 框圖 ? Atmel 公司提供的數(shù)據(jù)顯示在他們的架構 89S52裝置似乎非常復雜,因為我們將使用 C 高級語言進行編程,一個簡單的架構可派代表作為數(shù)字 . This figures shows the main features and ponents that the designer can interact with. You can notice that the 89S52 has 4 different ports, each one having 8 Input/output lines providing a total of 32 I/O lines. Those ports can be used to output DATA and orders do other devices, or to read the state of a sensor, or a switch. Most of the ports of the 89S52 have 39。該設備我們將沿著這教程使用的是 39。The 8051 is the name of a big family of microcontrollers. The device which we are going to use along this tutorial is the 39。t aim to explain the functioning of the different ponents of a 89S52 microcontroller, but rather to give you a general idea of the anization of the chip and the available features, which shall