基于单片机的智能晾衣架控制系统的设计与实现外文文献原稿和译文.doc
《基于单片机的智能晾衣架控制系统的设计与实现外文文献原稿和译文.doc》由会员分享,可在线阅读,更多相关《基于单片机的智能晾衣架控制系统的设计与实现外文文献原稿和译文.doc(21页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、基于单片机的智能晾衣架控制系统的设计与实现外文文献原稿和译文外文文献原稿和译文原稿The Description of AT89S511 General DescriptionThe AT89S51 is a low-power, highperformance CMOS 8-bit microcontroller with 4K bytes of InSystem Programmable Flash memory. The device is manufactured using Atmels highdensity nonvolatile memory technology and is
2、 compatible with the industry-standard 80C51 instruction set and pinout. The on-chip Flash allows the program memory to be reprogrammed insystem or by a conventional nonvolatile memory programmer。 By combining a versatile 8bit CPU with InSystem Programmable Flash on a monolithic chip, the Atmel AT89
3、S51 is a powerful microcontroller which provides a highlyflexible and cost-effective solution to many embedded control applications.The AT89S51 provides the following standard features: 4K bytes of Flash, 128 bytes of RAM, 32 I/O lines, Watchdog timer, two data pointers, two 16bit timer/counters, a
4、fivevector two-level interrupt architecture, a full duplex serial port, on-chip oscillator, and clock circuitry。 In addition, the AT89S51 is designed with static logic for operation down to zero frequency and supports two software selectable power saving modes。 The Idle Mode stops the CPU while allo
5、wing the RAM, timer/counters, serial port, and interrupt system to continue functioning。 The Power-down mode saves the RAM contents but freezes the oscillator, disabling all other chip functions until the next external interrupt or hardware reset.2 PortsPort 0 is an 8-bit open drain bidirectional I/
6、O port。 As an output port, each pin can sink eight TTL inputs。 When 1s are written to port 0 pins, the pins can be used as highimpedance inputs. Port 0 can also be configured to be the multiplexed low-order address/data bus during accesses to external program and data memory. In this mode, P0 has in
7、ternal pullups。 Port 0 also receives the code bytes during Flash programming and outputs the code bytes during program verification。 External pullups are required during program verification。Port 1 is an 8bit bidirectional I/O port with internal pullups。 The Port 1 output buffers can sink/source fou
8、r TTL inputs. When 1s are written to Port 1 pins, they are pulled high by the internal pullups and can be used as inputs. As inputs, Port 1 pins that are externally being pulled low will source current (IIL) because of the internal pull-ups. Port 1 also receives the loworder address bytes during Fla
9、sh programming and verification.Port PinAlternate FunctionsP1。5MOSI (used for InSystem Programming)P1。6MOSO (used for InSystem Programming)P1.7 SCK(used for InSystem Programming)Port 2 is an 8-bit bi-directional I/O port with internal pull-ups. The Port 2 output buffers can sink/source four TTL inpu
10、ts。 When 1s are written to Port 2 pins, they are pulled high by the internal pullups and can be used as inputs。 As inputs, Port 2 pins that are externally being pulled low will source current (IIL) because of the internal pullups.Port 2 emits the high-order address byte during fetches from external
11、program memory and during accesses to external data memory that use 16bit addresses (MOVX DPTR). In this application, Port 2 uses strong internal pullups when emitting 1s. During accesses to external data memory that use 8-bit addresses (MOVX RI), Port 2 emits the contents of the P2 Special Function
12、 Register。 Port 2 also receives the highorder address bits and some control signals during Flash programming and verification。Port 3 is an 8bit bidirectional I/O port with internal pull-ups。 The Port 3 output buffers can sink/source four TTL inputs. When 1s are written to Port 3 pins, they are pulle
13、d high by the internal pull-ups and can be used as inputs. As inputs, Port 3 pins that are externally being pulled low will source current (IIL) because of the pull-ups. Port 3 receives some control signals for Flash programming and verification. Port 3 also serves the functions of various special f
14、eatures of the AT89S51, as shown in the following table.Port PinAlternate FunctionsP3.0RXD(serial input port)P3.1TXD(serial output port)P3。2INT0(external interrupt 0)P3。3INT1(external interrupt 1)P3。4T0(timer 0 external input)P3。5T1(timer 1 external input)P3。6WR(external data memory write strobe)P3。
15、7RD(external data memory read strobe)3 Special Function RegistersA map of the onchip memory area called the Special Function Register (SFR) space is shown in Table 3-1. Table 31。 AT89S51 SFR Map and Reset Values0F8H 0FFH 0F0H B 00000000 0F7H 0E8H 0EFH 0E0H ACC 00000000 0E7H 0D8H 0DFH 0D0H PSW 000000
16、00 0D7H 0C8H 0CFH 0C0H 0C7H 0B8H IP XX000000 0BFH 0B0H P3 11111111 0B7H 0A8H IE 0X000000 0AFH 0A0H P2 11111111 AUXR1 XXXXXXX0 WDTRST XXXXXXXX 0A7H 98H SCON 00000000 SBUF XXXXXXXX 9FH 90H P1 11111111 97H 88H TCON 00000000 TMOD 00000000 TL0 00000000 TL1 00000000 TH0 00000000 TH1 00000000 AUXR XXX00XX
17、8FH 80H P0 11111111 SP 00000111 DP0L 00000000 DP0H 00000000 DP1L 00000000 DP1H 00000000 PCON 0XXX0000 87H Note that not all of the addresses are occupied, and unoccupied addresses may not be implemented on the chip。 Read accesses to these addresses will in general return random data, and write acces
18、ses will have an indeterminate effect。 User software should not write 1s to these unlisted locations, since they may be used in future products to invoke new features. In that case, the reset or inactive values of the new bits will always be 0。 Interrupt Registers: The individual interrupt enable bi
19、ts are in the IE register。 Two priorities can be set for each of the five interrupt sources in the IP register。Table 3-2。 AUXR:Auxiliary RegisterAUXR Address=8EH Reset Value=XXX00XX0b Not Bit Addressable WDIDLE DISRTO DISALEBit 7 6 5 4 3 2 1 0 Reserved for future expansionDISALE Disable/Enable ALE D
20、ISALE Operating Mode 0 ALE is emitted at a constant rate of 1/6 the oscillator frequency 1 ALE is active only during a MOVX or MOVC instruction DISRTO Disable/Enable Resetout DISRTO 0 Reset pin is driven High after WDT times out 1 Reset pin is input only WDIDLE Disable/Enable WDT in IDLE modeWDIDLE0
21、 WDT continues to count in IDLE mode 1 WDT halts counting in IDLE mode Dual Data Pointer Registers: To facilitate accessing both internal and external data memory, two banks of 16bit Data Pointer Registers are provided: DP0 at SFR address locations 82H-83H and DP1 at 84H85H. Bit DPS = 0 in SFR AUXR1
22、 selects DP0 and DPS = 1 selects DP1。 The user should always initialize the DPS bit to the appropriate value before accessing the respective Data Pointer Register.Power Off Flag: The Power Off Flag (POF) is located at bit 4 (PCON.4) in the PCON SFR. POF is set to “1 during power up。 It can be set an
23、d rest under software control and is not affected by reset。4 Memory OrganizationMCS51 devices have a separate address space for Program and Data Memory. Up to 64K bytes each of external Program and Data Memory can be addressed。4。1 Program MemoryIf the EA pin is connected to GND, all program fetches
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 基于 单片机 智能 晾衣架 控制系统 设计 实现 外文 文献 原稿 译文
限制150内