AT89C4051技术资料,AT89C4051规格书,datasheet.pdf
《AT89C4051技术资料,AT89C4051规格书,datasheet.pdf》由会员分享,可在线阅读,更多相关《AT89C4051技术资料,AT89C4051规格书,datasheet.pdf(19页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、FeaturesCompatible with MCS51 Products4K Bytes of Reprogrammable Flash Memory Endurance:1,000 Write/Erase Cycles2.7V to 6V Operating RangeFully Static Operation:0 Hz to 24 MHzTwo-level Program Memory Lock128 x 8-bit Internal RAM15 Programmable I/O LinesTwo 16-bit Timer/CountersSix Interrupt SourcesP
2、rogrammable Serial UART ChannelDirect LED Drive OutputsOn-chip Analog ComparatorLow-power Idle and Power-down ModesBrown-out DetectionPower-On Reset(POR)Green(Pb/Halide-free/RoHS Compliant)Packaging 1.DescriptionThe AT89C4051 is a low-voltage,high-performance CMOS 8-bit microcontroller with 4K bytes
3、 of Flash programmable and erasable read-only memory.The device is man-ufactured using Atmels high-density nonvolatile memory technology and is compatible with the industry-standard MCS-51 instruction set.By combining a versa-tile 8-bit CPU with Flash on a monolithic chip,the Atmel AT89C4051 is a po
4、werful microcontroller which provides a highly-flexible and cost-effective solution to many embedded control applications.The AT89C4051 provides the following standard features:4K bytes of Flash,128 bytes of RAM,15 I/O lines,two 16-bit timer/counters,a five-vector,two-level inter-rupt architecture,a
5、 full duplex serial port,a precision analog comparator,on-chip oscillator and clock circuitry.In addition,the AT89C4051 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 allowing the RAM,timer/
6、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 hardware reset.8-bit Microcontroller with 4K Bytes FlashAT89C4051 1001EMICRO6/05深圳市万瑞尔科技有限公司 专业电子元件供应商 0755-282697
7、89 http:/ 21001EMICRO6/05AT89C4051 2.Pin Configuration2.1PDIP/SOIC3.Block Diagram1234567891020191817161514131211RST/VPP(RXD)P3.0(TXD)P3.1XTAL2XTAL1(INT0)P3.2(INT1)P3.3(TO)P3.4(T1)P3.5GNDVCCP1.7P1.6P1.5P1.4P1.3P1.2P1.1(AIN1)P1.0(AIN0)P3.7 31001EMICRO6/05 AT89C40514.Pin Description4.1VCCSupply voltage
8、.4.2GNDGround.4.3Port 1Port 1 is an 8-bit bi-directional I/O port.Port pins P1.2 to P1.7 provide internal pullups.P1.0 and P1.1 require external pullups.P1.0 and P1.1 also serve as the positive input(AIN0)and the neg-ative input(AIN1),respectively,of the on-chip precision analog comparator.The Port
9、1 output buffers can sink 20 mA and can drive LED displays directly.When 1s are written to Port 1 pins,they can be used as inputs.When pins P1.2 to P1.7 are used as inputs and are externally pulled low,they will source current(IIL)because of the internal pullups.Port 1 also receives code data during
10、 Flash programming and verification.4.4Port 3Port 3 pins P3.0 to P3.5,P3.7 are seven bi-directional I/O pins with internal pullups.P3.6 is hard-wired as an input to the output of the on-chip comparator and is not accessible as a gen-eral-purpose I/O pin.The Port 3 output buffers can sink 20 mA.When
11、1s are written to Port 3 pins they are pulled high by the internal pullups and can be used as inputs.As inputs,Port 3 pins that are externally being pulled low will source current(IIL)because of the pullups.Port 3 also serves the functions of various special features of the AT89C4051 as listed below
12、:Port 3 also receives some control signals for Flash programming and verification.4.5RSTReset input.All I/O pins are reset to 1s as soon as RST goes high.Holding the RST pin high for two machine cycles while the oscillator is running resets the device.Each machine cycle takes 12 oscillator or clock
13、cycles.4.6XTAL1Input to the inverting oscillator amplifier and input to the internal clock operating circuit.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 extern
14、al input)41001EMICRO6/05AT89C4051 4.7XTAL2Output from the inverting oscillator amplifier.5.Oscillator CharacteristicsXTAL1 and XTAL2 are the input and output,respectively,of an inverting amplifier which can be configured for use as an on-chip oscillator,as shown in Figure 5-1.Either a quartz crystal
15、 or ceramic resonator may be used.To drive the device from an external clock source,XTAL2 should be left unconnected while XTAL1 is driven as shown in Figure 5-2.There are no require-ments on the duty cycle of the external clock signal,since the input to the internal clocking circuitry is through a
16、divide-by-two flip-flop,but minimum and maximum voltage high and low time specifications must be observed.Figure 5-1.Oscillator ConnectionsNote:C1,C2=30 pF 10 pF for Crystals =40 pF 10 pF for Ceramic ResonatorsFigure 5-2.External Clock Drive Configuration 51001EMICRO6/05 AT89C40516.Special Function
17、RegistersA map of the on-chip memory area called the Special Function Register(SFR)space is shown in the Table 6-1.Note that not all of the addresses are occupied,and unoccupied addresses may not be imple-mented on the chip.Read accesses to these addresses will in general return random data,and writ
18、e accesses 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.Table 6-1.AT89C4051 SFR Map and Reset Values0F8H0FFH0
19、F0HB000000000F7H0E8H0EFH0E0HACC000000000E7H0D8H0DFH0D0HPSW000000000D7H0C8H 0CFH0C0H0C7H0B8HIPXXX000000BFH0B0HP3111111110B7H0A8HIE0XX000000AFH0A0H 0A7H98HSCON00000000SBUFXXXXXXXX9FH90HP11111111197H88HTCON00000000TMOD00000000TL000000000TL100000000TH000000000TH1000000008FH80HSP00000111DPL00000000DPH000
20、00000PCON0XXX000087H 61001EMICRO6/05AT89C4051 7.Restrictions on Certain InstructionsThe AT89C4051 is an economical and cost-effective member of Atmels growing family of micro-controllers.It contains 4K bytes of Flash program memory.It is fully compatible with the MCS-51 architecture,and can be progr
21、ammed using the MCS-51 instruction set.However,there are a few considerations one must keep in mind when utilizing certain instructions to program this device.All the instructions related to jumping or branching should be restricted such that the destination address falls within the physical program
22、 memory space of the device,which is 4K for the AT89C4051.This should be the responsibility of the software programmer.For example,LJMP 0FE0H would be a valid instruction for the AT89C4051(with 4K of memory),whereas LJMP 1000H would not.7.1Branching InstructionsLCALL,LJMP,ACALL,AJMP,SJMP,JMP A+DPTR.
23、These unconditional branching instruc-tions will execute correctly as long as the programmer keeps in mind that the destination branching address must fall within the physical boundaries of the program memory size(loca-tions 00H to FFFH for the 89C4051).Violating the physical space limits may cause
24、unknown program behavior.CJNE.,DJNZ.,JB,JNB,JC,JNC,JBC,JZ,JNZ.With these conditional branching instructions the same rule above applies.Again,violating the memory boundaries may cause erratic execution.For applications involving interrupts,the normal interrupt service routine address locations of th
25、e 80C51 family architecture have been preserved.7.2MOVX-related Instructions,Data MemoryThe AT89C4051 contains 128 bytes of internal data memory.Thus,in the AT89C4051 the stack depth is limited to 128 bytes,the amount of available RAM.External DATA memory access is not supported in this device,nor i
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- AT89C4051 技术资料 规格书 datasheet
限制150内