0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
会员中心
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
AT90S8515-4PI

AT90S8515-4PI

  • 厂商:

    ATMEL(爱特梅尔)

  • 封装:

  • 描述:

    AT90S8515-4PI - 8-bit Microcontroller with 8K Bytes In-System Programmable Flash - ATMEL Corporation

  • 数据手册
  • 价格&库存
AT90S8515-4PI 数据手册
Features • Utilizes the AVR® RISC Architecture • AVR – High-performance and Low-power RISC Architecture – 118 Powerful Instructions – Most Single Clock Cycle Execution – 32 x 8 General-purpose Working Registers – Up to 8 MIPS Throughput at 8 MHz Data and Nonvolatile Program Memory – 8K Bytes of In-System Programmable Flash Endurance: 1,000 Write/Erase Cycles – 512 Bytes of SRAM – 512 Bytes of In-System Programmable EEPROM Endurance: 100,000 Write/Erase Cycles – Programming Lock for Flash Program and EEPROM Data Security Peripheral Features – One 8-bit Timer/Counter with Separate Prescaler – One 16-bit Timer/Counter with Separate Prescaler Compare, Capture Modes and Dual 8-, 9-, or 10-bit PWM – On-chip Analog Comparator – Programmable Watchdog Timer with On-chip Oscillator – Programmable Serial UART – Master/Slave SPI Serial Interface Special Microcontroller Features – Low-power Idle and Power-down Modes – External and Internal Interrupt Sources Specifications – Low-power, High-speed CMOS Process Technology – Fully Static Operation Power Consumption at 4 MHz, 3V, 25°C – Active: 3.0 mA – Idle Mode: 1.0 mA – Power-down Mode: 2 XTAL1 clock cycles High: > 2 XTAL1 clock cycles Serial Programming Algorithm When writing serial data to the AT90S8515, data is clocked on the rising edge of SCK. When reading data from the AT90S8515, data is clocked on the falling edge of SCK. See Figure 65, Figure 66 and Table 33 on page 89 for timing details. To program and verify the AT90S8515 in the Serial Programming Mode, the following sequence is recommended (see 4-byte instruction formats in Table 32): 1. Power-up sequence: Apply power between VCC and GND while RESET and SCK are set to “0”. If a crystal is not connected across pins XTAL1 and XTAL2, apply a clock signal to the XTAL1 pin. In some systems, the programmer cannot guarantee that SCK is held low during power-up. In this case, RESET must be given a positive pulse of at least two XTAL1 cycles duration after SCK has been set to “0”. 2. Wait for at least 20 ms and enable serial programming by sending the Programming Enable serial instruction to the MOSI (PB5) pin. 3. The serial programming instructions will not work if the communication is out of synchronization. When in sync, the second byte ($53) will echo back when issu86 AT90S8515 0841G–09/01 AT90S8515 ing the third byte of the Programming Enable instruction. Whether the echo is correct or not, all four bytes of the instruction must be transmitted. If the $53 did not echo back, give SCK a positive pulse and issue a new Programming Enable instruction. If the $53 is not seen within 32 attempts, there is no functional device connected. 4. If a Chip Erase is performed (must be done to erase the Flash), wait tWD_ERASE after the instruction, give RESET a positive pulse and start over from step 2. See Table 34 on page 89 for tWD_ERASE value. 5. The Flash or EEPROM array is programmed one byte at a time by supplying the address and data together with the appropriate Write instruction. An EEPROM memory location is first automatically erased before new data is written. Use Data Polling to detect when the next byte in the Flash or EEPROM can be written. If polling is not used, wait tWD_PROG before transmitting the next instruction. See Table 35 on page 89 for tWD_PROG value. In an erased device, no $FFs in the data file(s) need to be programmed. 6. Any memory location can be verified by using the Read instruction that returns the content at the selected address at the serial output MISO (PB6) pin. 7. At the end of the programming session, RESET can be set high to commence normal operation. 8. Power-off sequence (if needed): Set XTAL1 to “0” (if a crystal is not used). Set RESET to “1”. Turn VCC power off. Data Polling EEPROM When a byte is being programmed into the EEPROM, reading the address location being programmed will give the value P1 until the auto-erase is finished and then the value P2. See Table 31 for P1 and P2 values. At the time the device is ready for a new EEPROM byte, the programmed value will read correctly. This is used to determine when the next byte can be written. This will not work for the values P1 and P2, so when programming these values, the user will have to wait for at least the prescribed time tWD_PROG before programming the next byte. See Table 34 for tWD_PROG value. As a chip-erased device contains $FF in all locations, programming of addresses that are meant to contain $FF can be skipped. This does not apply if the EEPROM is reprogrammed without first chip-erasing the device. Table 31. Read Back Value during EEPROM Polling Part AT90S8515 P1 $80 P2 $7F Data Polling Flash When a byte is being programmed into the Flash, reading the address location being programmed will give the value $7F. At the time the device is ready for a new byte, the programmed value will read correctly. This is used to determine when the next byte can be written. This will not work for the value $7F, so when programming this value, the user will have to wait for at least tWD_PROG before programming the next byte. As a chiperased device contains $FF in all locations, programming of addresses that are meant to contain $FF can be skipped. 87 0841G–09/01 Figure 65. Serial Programming Waveforms Table 32. Serial Programming Instruction Set Instruction Format Instruction Programming Enable Chip Erase Read Program Memory Write Program Memory Read EEPROM Memory Write EEPROM Memory Write Lock Bits Byte 1 1010 1100 1010 1100 0010 H000 0100 H000 1010 0000 1100 0000 1010 1100 Byte 2 0101 0011 100x xxxx xxxx aaaa xxxx aaaa xxxx xxxa xxxx xxxa 111x x21x Byte 3 xxxx xxxx xxxx xxxx bbbb bbbb bbbb bbbb bbbb bbbb bbbb bbbb xxxx xxxx Byte4 xxxx xxxx xxxx xxxx oooo oooo iiii iiii oooo oooo iiii iiii xxxx xxxx Operation Enable serial programming while RESET is low. Chip Erase Flash and EEPROM memory arrays. Read H (high or low) data o from program memory at word address a:b. Write H (high or low) data i to program memory at word address a:b. Read data o from EEPROM memory at address a:b. Write data i to EEPROM memory at address a:b. Write Lock bits. Set bits 1,2 = “0” to program Lock bits. Read Signature Bytes 0011 0000 xxxx xxxx xxxx xxbb oooo oooo Read signature byte o at address b.(1) Note: 1. The signature bytes are not readable in lock mode 3, i.e., both Lock bits programmed. a = address high bits b = address low bits H = 0 – Low byte, 1 – High Byte o = data out i = data in x = don’t care 1 = Lock bit 1 2 = Lock bit 2 88 AT90S8515 0841G–09/01 AT90S8515 Serial Programming Characteristics Figure 66. Serial Programming Timing MOSI tOVSH SCK MISO tSLIV tSHSL tSHOX tSLSH Table 33. Serial Programming Characteristics, TA = -40°C to 85°C, VCC = 2.7V - 6.0V (unless otherwise noted) Symbol 1/tCLCL tCLCL 1/tCLCL tCLCL tSHSL tSLSH tOVSH tSHOX tSLIV Parameter Oscillator Frequency (VCC = 2.7 - 4.0V) Oscillator Period (VCC = 2.7 - 4.0V) Oscillator Frequency (VCC = 4.0 - 6.0V) Oscillator Period (VCC = 4.0 - 6.0V) SCK Pulse Width High SCK Pulse Width Low MOSI Setup to SCK High MOSI Hold after SCK High SCK Low to MISO Valid Min 0 250.0 0 125.0 2.0 tCLCL 2.0 tCLCL tCLCL 2.0 tCLCL 10.0 16.0 32.0 8.0 Typ Max 4.0 Units MHz ns MHz ns ns ns ns ns ns Table 34. Minimum Wait Delay after the Chip Erase Instruction Symbol tWD_ERASE 3.2V 18 ms 3.6V 14 ms 4.0V 12 ms 5.0V 8 ms Table 35. Minimum Wait Delay after Writing a Flash or EEPROM Location Symbol tWD_PROG 3.2V 9 ms 3.6V 7 ms 4.0V 6 ms 5.0V 4 ms 89 0841G–09/01 Electrical Characteristics Absolute Maximum Ratings* Operating Temperature.................................. -55°C to +125°C Storage Temperature ..................................... -65°C to +150°C Voltage on Any Pin except RESET with Respect to Ground .............................-1.0V to VCC + 0.5V Voltage on RESET with Respect to Ground ...................................-1.0V to +13.0V Maximum Operating Voltage ............................................ 6.6V DC Current per I/O Pin ............................................... 40.0 mA DC Current VCC and GND Pins................................ 200.0 mA *NOTICE: Stresses beyond those listed under “Absolute Maximum Ratings” may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or 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. DC Characteristics TA = -40°C to 85°C, VCC = 2.7V to 6.0V (unless otherwise noted) Symbol VIL VIL1 VIH VIH1 VIH2 VOL VOH IIL IIH RRST RI/O Parameter Input Low Voltage Input Low Voltage Input High Voltage Input High Voltage Input High Voltage Output Low Voltage (Ports A, B, C, D) (3) Condition (Except XTAL1) (XTAL1) (Except XTAL1, RESET) (XTAL1) (RESET) IOL = 20 mA, VCC = 5V IOL = 10 mA, VCC = 3V IOH = -3 mA, VCC = 5V IOH = -1.5 mA, VCC = 3V VCC = 6V, pin low (absolute value) VCC = 6V, pin high (absolute value) Min -0.5 -0.5 0.6 VCC (2) Typ Max 0.3 VCC 0.2 VCC (1) (1) Units V V V V V V V V V VCC + 0.5 VCC + 0.5 VCC + 0.5 0.6 0.5 0.8 VCC(2) 0.9 VCC(2) Output High Voltage(4) (Ports A, B, C, D) Input Leakage Current I/O Pin Input Leakage Current I/O Pin Reset Pull-up Resistor I/O Pin Pull-up Resistor Power Supply Current 4.2 2.3 8.0 980.0 100.0 35.0 500.0 120.0 3.0 1.2 9.0
AT90S8515-4PI 价格&库存

很抱歉,暂时无法提供与“AT90S8515-4PI”相匹配的价格&库存,您可以联系我们找货

免费人工找货