AT24C02SC.pdf

基于51单片机的出租车计价器设计

收藏

资源目录
跳过导航链接。
基于51单片机的出租车计价器设计.zip
使用前必读.doc---(点击预览)
1-c程序
程序.doc---(点击预览)
完整程序.doc---(点击预览)
AT24C02.h
Data.h
Ds1302.h
Key.h
Lcd.h
程序.c
程序.hex
程序.lnp
程序.LST
程序.M51
程序.OBJ
程序.opt.bak
程序.plg
程序.Uv2.bak
程序.uvopt
程序.uvproj
程序_Opt.Bak
程序_Uv2.Bak
程序_uvopt.bak
程序_uvproj.bak
10-任务书
11-芯片资料
2-原理图
原理图.doc---(点击预览)
Protel Schematic.pdf---(点击预览)
Backup of PCBLIB1.LIB
Backup of 元件.Lib
Backup of 原理图.Sch
Previous Backup of 原理图.Sch
原理图.Bkp
原理图.ddb
3-视频讲解
操作视频.txt---(点击预览)
单片机最小系统电路相关知识.docx---(点击预览)
40-出租车计价器原理图讲解.wmv
Thumbs.db
仿真中最小系统.wmv
出租车计价器主函数讲解.wma
最小系统介绍.wmv
4-相关软件下载和教程
5-protus仿真
Last Loaded LCDShow.DBK
LCDShow.DSN
LCDShow.PWI
6-制作过程实物照片
7-制作详解
1602液晶
DC电源插口
三极管
上拉排阻
供电方式
各种电阻、贴片、可调电阻焊接方法
自锁开关
轻触按键
8-元件清单
9-开题报告
压缩包内文档预览:
预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图
编号:30366456    类型:共享资源    大小:123.05MB    格式:ZIP    上传时间:2019-12-11 上传人:遗**** IP属地:湖北
20
积分
关 键 词:
基于 51 单片机 出租车 计价器 设计
资源描述:
基于51单片机的出租车计价器设计,基于,51,单片机,出租车,计价器,设计
内容简介:
1 1610BSEEPR04/04FeaturesLow-voltage and Standard-voltage Operation, VCC = 2.7V5.5VInternally Organized 128 x 8 (1K), 256 x 8 (2K), 512 x 8 (4K),1024 x 8 (8K), or 2048 x 8 (16K)Two-wire Serial InterfaceSchmitt Trigger, Filtered Inputs for Noise SuppressionBidirectional Data Transfer Protocol400 kHz Compatibility8-byte Page (1K, 2K), 16-byte Page (4K, 8K, 16K) Write Modes Partial Page Writes AllowedSelf-timed Write Cycle (5 ms max)High Reliability Endurance: One Million Write Cycles Data Retention: 100 Years ESD Protection: 3000VDescriptionThe AT24C01A/02SC/04SC/08SC/16SC provide 1024/2048/4096/8192/16384 bits ofserial, electrically-erasable, and programmable read-only memory (EEPROM) orga-nized as 128/256/512/1024/2048 words of 8 bits each. The devices are optimized foruse in smart card applications where low-power and low-voltage operation may beessential. The devices are available in several standard ISO 7816 smart card modules(see Ordering Information, pages 1213). All devices are functionally equivalent toAtmel serial EEPROM products offered in standard IC packages (PDIP, SOIC, TSSOP,MAP), with the exception of the slave address and write protect functions, which arenot required for smart card applications.Table 1. Pin ConfigurationFigure 1. Card Module ContactPad NameDescriptionISO Module ContactVCCPower Supply VoltageC1GNDGroundC5SCLSerial Clock InputC3SDASerial Data Input/OutputC7NCNo ConnectC2, C4, C6, C8NCVCCTwo-wire SerialEEPROM SmartCard Modules1K (128 x 8)2K (256 x 8)4K (512 x 8)8K (1024 x 8)16K (2048 x 8)AT24C01ASCAT24C02SCAT24C04SCAT24C08SCAT24C16SC2AT24C01ASC/02SC/04SC/08SC/16SC1610BSEEPR04/04Figure 2. Block DiagramPin DescriptionSERIAL CLOCK (SCL): The SCL input is used to positive edge clock data into eachEEPROM device and negative edge clock data out of each device.SERIAL DATA (SDA): The SDA pin is bidirectional for serial data transfer. This pin isopen-drain driven and may be wire-ORed with any number of other open-drain or open-collector devices.Memory OrganizationAT24C01ASC, 1K SERIAL EEPROM: Internally organized with 16 pages of 8 byteseach, the 1K requires a 7-bit data word address for random word addressing.AT24C02SC, 2K SERIAL EEPROM: Internally organized with 32 pages of 8 byteseach, the 2K requires an 8-bit data word address for random word addressing.Absolute Maximum RatingsOperating Temperature55C to +125C*NOTICE:Stresses beyond those listed under “Absolute Maximum Ratings” may cause permanent dam-age to the device. This is a stress rating only and functional operation of the device at these or any other conditions beyond those indicated in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.Storage Temperature 65C to +150CVoltage on Any Pinwith Respect to Ground1.0V to +7.0VMaximum Operating Voltage 6.25VDC Output Current 5.0 mA3AT24C01ASC/02SC/04SC/08SC/16SC1610BSEEPR04/04AT24C04SC, 4K SERIAL EEPROM: Internally organized with 32 pages of 16 byteseach, the 4K requires a 9-bit data word address for random word addressing.AT24C08SC, 8K SERIAL EEPROM: Internally organized with 64 pages of 16 byteseach, the 8K requires a 10-bit data word address random word addressing.AT24C16SC, 16K SERIAL EEPROM: Internally organized with 128 pages of 16 byteseach, the 16K requires an 11-bit data word address random word addressing.Pin CapacitanceNote:1. This parameter is characterized and is not 100% tested.DC CharacteristicsNotes:1. Applicable over recommended operating range from: TAC = 0C to +70C, VCC = +2.7V to +5.5V (unless otherwise noted)2. VIL min and VIH max are reference only and are not tested.AC CharacteristicsTable 2. Pin Capacitance(1)Applicable over recommended operating range from TA = 25C, f = 1.0 MHz, VCC = +2.7VSymbolTest ConditionMaxUnitsConditionsCI/OInput/Output Capacitance (SDA)8pFVI/O = 0VCINInput Capacitance (SCL)6pFVIN = 0VTable 3. DC Characteristics(1)SymbolParameterTest ConditionMinTypMaxUnitsVCCSupply Voltage2.75.5VICCSupply Current VCC = 5.0VREAD at 100 kHz0.41.0mAICCSupply Current VCC = 5.0VWRITE at 100 kHz2.03.0mAISB1Standby Current VCC = 2.7VVIN = VCC or GND1.64.0AISB2Standby Current VCC = 5.0VVIN = VCC or GND8.018.0AILIInput Leakage CurrentVIN = VCC or GND0.103.0AILOOutput Leakage CurrentVOUT = VCC or GND0.053.0AVILInput Low Level(2)0.6VCC x 0.3VVIHInput High Level(2)VCC x 0.7VCC + 0.5VVOLOutput Low Level VCC = 3.0VIOL = 2.1 mA0.4VTable 4. AC Characteristics(1)SymbolParameterMinMaxUnitsfSCLClock Frequency, SCL400kHztLOWClock Pulse Width Low1.2stHIGHClock Pulse Width High0.6stINoise Suppression Time(2)50nstAAClock Low to Data Out Valid0.10.9stBUFTime the bus must be free before a new transmission can start(1)1.2s4AT24C01ASC/02SC/04SC/08SC/16SC1610BSEEPR04/04Note:1. Applicable over recommended operating range from TA = 0C to +70C, VCC = +2.7V to +5.5V, CL = 1 TTL Gate and 100 pF(unless otherwise noted)2. This parameter is characterized and is not 100% tested.Device OperationCLOCK AND DATA TRANSITIONS: The SDA pin is normally pulled high with an exter-nal device. Data on the SDA pin may change only during SCL-low time periods (seeFigure 3 on page 5). Data changes during SCL-high periods will indicate a start or stopcondition as defined below.START CONDITION: A high-to-low transition of SDA with SCL high is a start conditionthat must precede any other command (see Figure 4 on page 6).STOP CONDITION: A low-to-high transition of SDA with SCL high is a stop condition.After a read sequence, the Stop command will place the EEPROM in a standby powermode (see Figure 4 on page 6).ACKNOWLEDGE: All addresses and data words are serially transmitted to and from theEEPROM in 8-bit words. Each word requires the receiver to acknowledge that it hasreceived a valid command or data byte. During the transmission of commands from thehost to the EEPROM, the EEPROM will send a zero to the host to acknowledge that ithas received a valid command byte. This occurs on the ninth clock cycle of the com-mand byte. During read operations, the host will send a zero to the EEPROM toacknowledge that it has received a valid data byte and that it requests the next sequen-tial data byte to be transmitted during the subsequent eight clock cycles. This occurs onthe ninth clock cycle of the data byte. If the host does not transmit this acknowledge bit,the EEPROM will disable the read operation and return to standby mode.STANDBY MODE: The AT24C01ASC/02SC/04SC/08SC/16SC feature a low-powerstandby mode that is enabled upon power-up and after the receipt of the stop bit and thecompletion of any internal operations.MEMORY RESET: After an interruption in protocol, power loss, or system reset, anytwo-wire part can be reset by following these steps:1.Clock up to 9 cycles. 2.Look for SDA high in each cycle while SCL is high.3.Create a start condition as SDA is high. tHD.STAStart Hold Time0.6stSU.STAStart Setup Time0.6stHD.DATData In Hold Time0stSU.DATData In Setup Time100nstRInputs Rise Time(2)0.3stFInputs Fall Time(2)300nstSU.STOStop Setup Time0.6stDHData Out Hold Time50nstWRWrite Cycle Time5msEndurance(1)5.0V, 25C, Byte Mode1MWrite CyclesTable 4. AC Characteristics(1) (Continued)SymbolParameterMinMaxUnits5AT24C01ASC/02SC/04SC/08SC/16SC1610BSEEPR04/04Timing DiagramsBus TimingFigure 1. Bus TimingNote:SCL: Serial Clock, SDA: Serial Data I/OWrite Cycle TimingFigure 2. Write Cycle TimingNotes:1. The write cycle time tWR is the time from a valid stop condition of a write sequence tothe end of the internal clear/write cycle.2. SCL: Serial Clock, SDA: Serial Data I/OData ValidityFigure 3. Data ValiditytWR(1)SDASCLDATA STABLEDATACHANGEDATA STABLE6AT24C01ASC/02SC/04SC/08SC/16SC1610BSEEPR04/04Start and Stop DefinitionFigure 4. Start and Stop DefinitionOutput AcknowledgeFigure 5. Output AcknowledgeDACLSTARTSTOPSCLDATA INDATA OUTSTARTACKNOWLEDGE7AT24C01ASC/02SC/04SC/08SC/16SC1610BSEEPR04/04Device AddressingThe 1K, 2K, 4K, 8K, and 16K EEPROM devices all require an 8-bit device address wordfollowing a start condition to enable the chip for a read or write operation (see Figure 6on page 7).The device address word consists of a mandatory “1”, “0”, “1”, “0” sequence for the firstfour most significant bits as shown. This is common to all the serial EEPROM devices.The next three bits of the device address word are the most significant data wordaddress bits for the AT24C16SC (16K), which requires a total of 11 address bits. TheAT24C08SC (8K) requires only 10 total word address bits. The most significant two bitsare included in the device address word. The unused bit of the device address wordshould be set to “0”. The AT24C04SC (4K) requires only nine total data word addressbits. The most significant bit is included in the device address word. The two unused bitsof the device address word should be set to “0”. The AT24C02SC (2K) andAT24C01ASC (1K) do not require any address bits in the device address word. Thethree unused bits of the device address word should be set to “0”. The eighth bit of the device address is the read/write operation select bit. A read opera-tion is initiated if this bit is high, and a write operation is initiated if this bit is low.Upon a compare of the device address, the EEPROM will output a “0” (ACK). If a suc-cessful compare is not made, the chip will return to a standby state (NO ACK).Figure 6. Device AddressNote:P0, P1, P2 = Data word address bits1K/2K4K8K16KMSDLSB1010000R/W101000P0R/W10100P1P0R/W1010P2P1P0R/W8AT24C01ASC/02SC/04SC/08SC/16SC1610BSEEPR04/04Write OperationsBYTE WRITE: A write operation requires an 8-bit data word address following thedevice address word and acknowledgment. Upon receipt of this address, the EEPROMwill again respond with a “0” (ACK) and then clock in the first 8-bit data word. Followingreceipt of the 8-bit data word, the EEPROM will output a “0” (ACK) and the addressingdevice, such as a microcontroller, must terminate the write sequence with a stop condi-tion. At this time the EEPROM enters an internally-timed write cycle, tWR, to thenonvolatile memory. All inputs are disabled during this write cycle and the EEPROM willnot respond until the write is complete (refer to Figure 7).Figure 7. Byte WritePAGE WRITE: The 1K/2K EEPROM is capable of an 8-byte page write, and the 4K, 8K,and 16K devices are capable of 16-byte page writes.A page write is initiated the same as a byte write, but the microcontroller does not senda stop condition after the first data word is clocked in. Instead, after the EEPROMacknowledges receipt of the first data word, the microcontroller can transmit up to 7(1K/2K) or 15 (4K, 8K, 16K) more data words. The EEPROM will respond with a “0”(ACK) after each data word received. The microcontroller must terminate the page writesequence with a stop condition (refer to Figure 8).Figure 8. Page WriteNote:* = DONT CARE bit for 1KThe data word address lower three (1K/2K) or four (4K, 8K, 16K) bits are internallyincremented following the receipt of each data word. The higher data word address bitsare not incremented, retaining the memory page row location. When the word address,internally generated, reaches the page boundary, the following byte is placed at thebeginning of the same page. If more than eight (1K/2K) or 16 (4K, 8K, 16K) data wordsare transmitted to the EEPROM, the data word address will “roll over” and previous datawill be overwritten.ACKNOWLEGE POLLING: Once the internally timed write cycle has started and theEEPROM inputs are disabled, acknowledge polling can be initiated. This involves send-ing a start condition followed by the device address word. The read/write bit isrepresentative of the operation desired. Only if the internal write cycle has completedWRITESTARTWORD ADDRESSLSBDATASTOP*(n)DATA (n)DATA (n + 1)DATA (n + x)9AT24C01ASC/02SC/04SC/08SC/16SC1610BSEEPR04/04will the EEPROM respond with a “0” (ACK), allowing the read or write sequence tocontinue.Read OperationsRead operations are initiated the same way as write operations, with the exception thatthe read/write select bit in the device address word is set to “1”. There are three readoperations: current address read, random address read, and sequential read.CURRENT ADDRESS READ: The internal data word address counter maintains thelast address accessed during the last read or write operation, incremented by one. Thisaddress stays valid between operations as long as the chip power is maintained. Theaddress “rollover” during read is from the last byte of the last memory page to the firstbyte of the first page. The address “rollover” during write is from the last byte of the cur-rent page to the first byte of the same page.Once the device address with the read/write select bit set to “1” is clocked in andacknowledged by the EEPROM, the current address data word is serially clocked out.The microcontroller does not respond with an input “0” but does generate a followingstop condition (refer to Figure 9)Figure 9. Current Address Read.RANDOM READ: A random read requires a “dummy” byte write sequence to load in thedata word address. Once the device address word and data word address are clockedin and acknowledged by the EEPROM, the microcontroller must generate another startcondition. The microcontroller now initiates a current address read by sending a deviceaddress with the read/write select bit high. The EEPROM acknowledges the deviceaddress and serially clocks out the data word. The microcontroller does not respondwith a “0” (NO ACK) but does generate a following stop condition (refer to Figure 10).Figure 10. Random ReadNote:* = DONT CARE bit for 1K)STARTSDA LINEMSBLSBR/WACKDATANOACKDEVICEADDRESSREADWORD ADDRESS nLSBACKMSBLSB10AT24C01ASC/02SC/04SC/08SC/16SC1610BSEEPR04/04SEQUENTIAL READ: Sequential reads are initiated by either a current address read ora random address read. After the microcontroller receives a data word, it responds withan acknowledge. As long as the EEPROM receives an acknowledge, it will continue toincrement the data word address and serially clock out sequential data words. When thememory address limit is reached, the data word address will “rollover” and the sequen-tial read will continue. The sequential read operation is terminated when themicrocontroller does not respond with a “0” (NO ACK) but does generate a followingstop condition (refer to Figure 11).Figure 11. Sequential Read11AT24C01ASC/02SC/04SC/08SC/16SC1610BSEEPR04/04AT24C01ASC Ordering InformationOrdering CodePackageVoltage RangeOperation RangeAT24C01ASC-09ETM2 E Module2.7V5.5VCommercial (0C70C)AT24C01ASC-09GTM3 G Module2.7V5.5VCommercial (0C70C)AT24C01ASC-09HTM3 H Module2.7V5.5VCommercial (0C70C)AT24C01ASC-09PTM2 P Module2.7V5.5VCommercial (0C70C)AT24C01ASC-10WI7 mil Wafer2.7V5.5VIndustrial (40C85C)AT24C02SC Ordering InformationOrdering CodePackageVoltage RangeOperation RangeAT24C02SC-09ETM2 E Module2.7V5.5VCommercial (0C70C)AT24C02SC-09PTM2 PModule2.7V5.5VCommercial (0C70C)AT24C02SC-10WI7 mil Wafer2.7V5.5VIndustrial (40C85C)AT24C04SC Ordering InformationOrdering CodePackageVoltage RangeOperation RangeAT24C04SC-09ETM2 E Module2.7V5.5VCommercial (0C70C)AT24C04SC-09PTM2 PModule2.7V5.5VCommercial (0C70C)AT24C04SC-10WI7 mil Wafer2.7V5.5VIndustrial (40C85C)AT24C08SC Ordering InformationOrdering CodePackageVoltage RangeOperation RangeAT24C08SC-09ETM2 E Module2.7V5.5VCommercial (0C70C)AT24C08SC-09PTM2 PModule2.7V5.5VCommercial (0C70C)AT24C08SC-10WI7 mil Wafer2.7V5.5VIndustrial (40C85C)AT24C16SC Ordering InformationOrdering CodePackageVoltage RangeOperation RangeAT24C16SC-09ETM2 E Module2.7V5.5VCommercial (0C70C)AT24C16SC-09PTM2 PModule2.7V5.5VCommercial (0C70C)AT24C16SC-10WI7 mil Wafer2.7V5.5VIndustrial (40C85C)12AT24C01ASC/02SC/04SC/08SC/16SC1610BSEEPR04/04Note:1. Formal drawings may be obtained from an Atmel sales office.Package Type(1)DescriptionM2 P ModuleM2 ISO 7816 Smart Card Module with Atmel LogoM2 E ModuleM2 ISO 7816 Smart Card ModuleM3 G ModuleM3 ISO 7816 Smart Card ModuleM3 H ModuleM3 ISO 7816 Smart Card Module with Atmel Logo13AT24C01ASC/02SC/04SC/08SC/16SC1610BSEEPR04/04Smart Card Modules*Note: The module dimensions listed refer to the dimensions of the exposed metal contact area. The actual dimensions of the module after excise or punching from the carrier tape are generally 0.4 mm greater in both directions (i.e., a punched M2 module will yield 13.0 x 11.8 mm).Module Size: M2-00Dimension*: 12.6 x 11.4 mmThickness: 0.58 mm maxPitch: 14.25 mmGlob Top: Clear, Round: 8.0 mm max?Ordering Code: 09ET-00Module Size: M3Dimension*: 10.6 x 8.0 mmThickness: 0.58 mm maxPitch: 9.5 mmGlob Top: Clear, Round: 6.9 mm max?Ordering Code: 09GT-00Module Size: M2Dimension*: 12.6 x 11.4 mmGlob Top: Square: 8.8 x 8.8 mmThickness: 0.58 mmPitch: 14.25 mmOrdering Code: 09PT-00Module Size: M3Dimension*: 10.6 x 8.0 mmThickness: 0.58 mm maxPitch: 9.5 mmGlob Top: Clear, Round: 6.9 mm?Ordering Code: 09HT-00 Printed on recycled paper.Disclaimer: Atmel Corporation makes no warranty for the use of its products, other than those expressly contained in the Companys standardwarranty which is detailed in Atmels Terms and Conditions located on the Companys web site. The Company assumes no responsibil ity for anyerrors which may appear in this document, reserves the right to change devices or specifications detailed herein at any time wit hout notice, anddoes not make any commitment to update the information contained herein. No licenses to patents or other intell
温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
提示  人人文库网所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
关于本文
本文标题:基于51单片机的出租车计价器设计
链接地址:https://www.renrendoc.com/p-30366456.html

官方联系方式

2:不支持迅雷下载,请使用浏览器下载   
3:不支持QQ浏览器下载,请用其他浏览器   
4:下载后的文档和图纸-无水印   
5:文档经过压缩,下载后原文更清晰   
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

网站客服QQ:2881952447     

copyright@ 2020-2025  renrendoc.com 人人文库版权所有   联系电话:400-852-1180

备案号:蜀ICP备2022000484号-2       经营许可证: 川B2-20220663       公网安备川公网安备: 51019002004831号

本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知人人文库网,我们立即给予删除!