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

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
PSD814F2V-70JT

PSD814F2V-70JT

  • 厂商:

    STMICROELECTRONICS(意法半导体)

  • 封装:

  • 描述:

    PSD814F2V-70JT - Flash in-system programmable (ISP) peripherals for 8-bit MCUs, 3.3 V - STMicroelect...

  • 数据手册
  • 价格&库存
PSD814F2V-70JT 数据手册
PSD813F2V PSD854F2V Flash in-system programmable (ISP) peripherals for 8-bit MCUs, 3.3 V NOT FOR NEW DESIGN FEATURES SUMMARY ■ ■ ■ ■ ■ ■ ■ ■ bs O ■ ■ FLASH IN-SYSTEM PROGRAMMABLE (ISP) PERIPHERAL FOR 8-BIT MCUS DUAL BANK FLASH MEMORIES – UP TO 2 Mbit OF PRIMARY FLASH MEMORY (8 Uniform Sectors, 32K x8) – UP TO 256 Kbit SECONDARY FLASH MEMORY (4 Uniform Sectors) – Concurrent operation: READ from one memory while erasing and writing the other UP TO 256 Kbit of SRAM 27 RECONFIGURABLE I/O PORTS ENHANCED JTAG SERIAL PORT PLD WITH MACROCELLS – Over 3000 Gates of PLD: CPLD and DPLD – CPLD with 16 Output Macrocells (OMCs) and 24 Input Macrocells (IMCs) – DPLD - user defined internal chip select decoding 27 INDIVIDUALLY CONFIGURABLE I/O PORT PINS The can be used for the following functions: – MCU I/Os – PLD I/Os – Latched MCU address output – Special function I/Os. – 16 of the I/O ports may be configured as open-drain outputs. IN-SYSTEM PROGRAMMING (ISP) WITH JTAG – Built-in JTAG compliant serial port allows full-chip In-System Programmability – Efficient manufacturing allow easy product testing and programming – Use low cost FlashLINK cable with PC PAGE REGISTER – Internal page register that can be used to expand the microcontroller address space by a factor of 256 PROGRAMMABLE POWER MANAGEMENT Figure 1. Packages PQFP52 (M) let o Pr e du o (s) ct Ob - so te le ro P uc d s) t( PLCC52 (J) TQFP64 (U) ■ ■ ■ ■ HIGH ENDURANCE: – 100,000 Erase/WRITE Cycles of Flash Memory – 1,000 Erase/WRITE Cycles of PLD – 15 Year Data Retention 3.3V±10% SINGLE SUPPLY VOLTAGE STANDBY CURRENT AS LOW AS 25µA Packages are ECOPACK® May 2009 Doc ID 10552 Rev 3 1/109 This is information on a product still in production but not recommended for new designs. PSD813F2V, PSD854F2V TABLE OF CONTENTS FEATURES SUMMARY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 SUMMARY DESCRIPTION. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 PIN DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 PSD ARCHITECTURAL OVERVIEW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Page Register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 PLDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 I/O Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 MCU Bus Interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 JTAG Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 In-System Programming (ISP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Power Management Unit (PMU) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 DEVELOPMENT SYSTEM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 PSD Register Description and Address Offset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 DETAILED OPERATION. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Memory Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Primary Flash Memory and Secondary Flash memory Description . . . . . . . . . . . . . . . . . . . . . 20 Memory Block Select Signals. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Ready/Busy (PC3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Memory Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 INSTRUCTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Power-up Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 READ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Read Memory Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Read Primary Flash Identifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Read Memory Sector Protection Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Reading the Erase/Program Status Bits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Data Polling Flag (DQ7). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Toggle Flag (DQ6) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Error Flag (DQ5). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 Erase Time-out Flag (DQ3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 bs O let o Pr e du o (s) ct so Ob - te le ro P uc d s) t( PROGRAMMING FLASH MEMORY. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Data Polling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Data Toggle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Unlock Bypass (PSD833F2x, PSD834F2x, PSD853F2x, PSD854F2x) . . . . . . . . . . . . . . . . . . . . 26 ERASING FLASH MEMORY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 2/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Flash Bulk Erase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Flash Sector Erase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Suspend Sector Erase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Resume Sector Erase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 SPECIFIC FEATURES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Flash Memory Sector Protect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Reset Flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 Reset (RESET) Signal (on the PSD83xF2 and PSD85xF2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 SECTOR SELECT AND SRAM SELECT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Memory Select Configuration for MCUs with Separate Program and Data Spaces . . . . . . . . 30 Configuration Modes for MCUs with Separate Program and Data Spaces . . . . . . . . . . . . . . . 30 Separate Space Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 Combined Space Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 PAGE REGISTER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 PLDS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 The Turbo Bit in PSD. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 Decode PLD (DPLD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Complex PLD (CPLD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Output Macrocell (OMC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 Product Term Allocator. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 Loading and Reading the Output Macrocells (OMC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 The OMC Mask Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 The Output Enable of the OMC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 Input Macrocells (IMC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 MCU BUS INTERFACE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43 PSD Interface to a Multiplexed 8-Bit Bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 PSD Interface to a Non-Multiplexed 8-Bit Bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 Data Byte Enable Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 MCU Bus Interface Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 80C31 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 80C251 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 80C51XA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 68HC11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 bs O let o Pr e du o (s) ct so Ob - te le ro P uc d s) t( I/O PORTS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 General Port Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 Port Operating Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 MCU I/O Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 Doc ID 10552 Rev 3 3/109 PSD813F2V, PSD854F2V PLD I/O Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 Address Out Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 Address In Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 Data Port Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 Peripheral I/O Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 JTAG In-System Programming (ISP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 Port Configuration Registers (PCR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 Control Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 Direction Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 Drive Select Register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 Port Data Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 Data In. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 Data Out Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 Output Macrocells (OMC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 OMC Mask Register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 Input Macrocells (IMC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 Enable Out . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 Ports A and B – Functionality and Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 Port C – Functionality and Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 Port D – Functionality and Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 External Chip Select . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 POWER MANAGEMENT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 Automatic Power-down (APD) Unit and Power-down Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 Power-down Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 For Users of the HC11 (or compatible) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 Other Power Saving Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 PLD Power Management. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 PSD Chip Select Input (CSI, PD2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 Input Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 Input Control Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 RESET TIMING AND DEVICE STATUS AT RESET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 Power-Up Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 Warm Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 I/O Pin, Register and PLD Status at Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67 Reset of Flash Memory Erase and Program Cycles (on the PSD834Fx) . . . . . . . . . . . . . . . . . 67 bs O let o Pr e du o (s) ct so Ob - te le ro P uc d s) t( PROGRAMMING IN-CIRCUIT USING THE JTAG SERIAL INTERFACE . . . . . . . . . . . . . . . . . . . . . . 69 Standard JTAG Signals. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 JTAG Extensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 Security and Flash memory Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 INITIAL DELIVERY STATE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 AC/DC PARAMETERS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72 4/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V MAXIMUM RATING. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 DC AND AC PARAMETERS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 PACKAGE MECHANICAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 PART NUMBERING . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 APPENDIX A.PQFP52 PIN ASSIGNMENTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 APPENDIX B.PLCC52 PIN ASSIGNMENTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 APPENDIX C.TQFP64 PIN ASSIGNMENTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 REVISION HISTORY. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 bs O let o Pr e du o (s) ct so Ob - te le ro P uc d s) t( Doc ID 10552 Rev 3 5/109 PSD813F2V, PSD854F2V SUMMARY DESCRIPTION The PSD8XXFX family of memory systems for microcontrollers (MCUs) brings In-System-Programmability (ISP) to Flash memory and programmable logic. The result is a simple and flexible solution for embedded designs. PSD devices combine many of the peripheral functions found in MCU based applications. Table 1 summarizes all the devices in the PSD834F2, PSD853F2, PSD854F2. The CPLD in the PSD devices features an optimized macrocell logic architecture. The PSD macrocell was created to address the unique requirements of embedded system designs. It allows direct connection between the system address/data bus, and the internal PSD registers, to simplify communication between the MCU and other supporting devices. The PSD device includes a JTAG Serial Programming interface, to allow In-System Programming (ISP) of the entire device. This feature reduces development time, simplifies the manufacturing flow, and dramatically lowers the cost of field upgrades. Using ST’s special Fast-JTAG programming, a design can be rapidly programmed into the PSD in as little as seven seconds. The innovative PSD8XXFX family solves key problems faced by designers when managing discrete Flash memory devices, such as: – First-time In-System Programming (ISP) – Complex address decoding – Simultaneous read and write to the device. The JTAG Serial Interface block allows In-System Programming (ISP), and eliminates the need for an external Boot EPROM, or an external programmer. To simplify Flash memory updates, program execution is performed from a secondary Flash memory while the primary Flash memory is being updated. This solution avoids the complicated hardware and software overhead necessary to implement IAP. ST makes available a software development tool, PSDsoft Express, that generates ANSI-C compliant code for use with your target MCU. This code allows you to manipulate the non-volatile memory (NVM) within the PSD. Code examples are also provided for: – Flash memory IAP via the UART of the host MCU – Memory paging to execute code across several PSD memory pages – Loading, reading, and manipulation of PSD macrocells by the MCU. Table 1. Product Range Part Number (1) Primary Flash Memory (8 Sectors) 1 Mbit Secondary Flash Memory 4 Sectors) PSD813F2V PSD854F2V Note: 1. All products support: JTAG serial ISP, MCU parallel ISP, ISP Flash memory, ISP CPLD, Security features, Power Management Unit (PMU), Automatic Power-down (APD). bs O let o Pr e 2 Mbit du o (s) ct 256 Kbit 256 Kbit so Ob SRAM 16 Kbit 256 Kbit 27 27 te le 24 24 ro P uc d s) t( I/O Ports Number of Macrocells Input Output 16 16 Serial ISP JTAG/ ISC Port yes yes Turbo Mode yes yes 6/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Figure 2. PQFP52 Connections 40 CNTLO 41 RESET 43 CNTL1 42 CNTL2 46 GND 52 PB0 51 PB1 50 PB2 49 PB3 48 PB4 47 PB5 45 PB6 44 PB7 PD2 1 PD1 2 PD0 3 PC7 4 PC6 5 PC5 6 PC4 7 VCC 8 GND 9 PC3 10 PC2 11 PC1 12 PC0 13 39 AD15 38 AD14 37 AD13 36 AD12 35 AD11 34 AD10 33 AD9 32 AD8 31 VCC 30 AD7 29 AD6 28 AD5 27 AD4 PA7 14 PA6 15 PA5 16 PA4 17 PA3 18 GND 19 PA2 20 PA1 21 PA0 22 AD0 23 AD1 24 AD2 25 bs O let o Pr e du o (s) ct Ob - so te le AD3 26 ro P uc d s) t( AI02858 Doc ID 10552 Rev 3 7/109 PSD813F2V, PSD854F2V Figure 3. PLCC52 Connections CNTL2 RESET 48 CNTL1 CNTL0 47 PB0 PB1 PB2 PB3 PB4 PB5 GND PB6 52 PB7 51 4 7 5 3 2 50 49 6 1 PD2 PD1 PD0 PC7 PC6 PC5 PC4 VCC GND PC3 PC2 PC1 PC0 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 46 45 44 43 42 41 40 39 38 37 36 35 AD15 AD14 AD13 AD12 AD11 AD10 AD9 AD8 VCC bs O let o Pr e du o (s) ct so Ob PA2 PA1 PA0 GND AD0 PA7 PA6 PA5 PA4 PA3 AD1 AD2 AD3 eP let 31 32 33 34 27 28 29 30 ro uc d AD7 AD6 AD5 AD4 s) t( AI02857 8/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Figure 4. TQFP64 Connections 50 RESET 52 CNTL1 51 CNTL2 56 GND 55 GND 62 PB0 61 PB1 60 PB2 59 PB3 58 PB4 57 PB5 54 PB6 53 PB7 64 NC 63 NC 49 NC PD2 1 PD1 2 PD0 3 PC7 4 PC6 5 PC5 6 PC4 7 VCC 8 VCC 9 GND 10 GND 11 PC3 12 PC2 13 PC1 14 PC0 15 NC 16 48 CNTL0 47 AD15 46 AD14 45 AD13 44 AD12 43 AD11 42 AD10 41 AD9 40 AD8 39 VCC 38 VCC 37 AD7 36 AD6 35 AD5 NC 17 NC 18 PA7 19 PA6 20 PA5 21 PA4 22 PA3 23 GND 24 GND 25 PA2 26 PA1 27 PA0 28 AD0 29 AD1 30 ND 31 bs O let o Pr e du o (s) ct so Ob - AD2 32 eP let ro 34 AD4 33 AD3 uc d s) t( AI09645b Doc ID 10552 Rev 3 9/109 PSD813F2V, PSD854F2V PIN DESCRIPTION Table 2. Pin Description (for the PLCC52 package - Note 1) Pin Name Pin Type Description This is the lower Address/Data port. Connect your MCU address or address/data bus according to the following rules: If your MCU has a multiplexed address/data bus where the data is multiplexed with the lower address bits, connect AD0-AD7 to this port. If your MCU does not have a multiplexed address/data bus, or you are using an 80C251 in page mode, connect A0-A7 to this port. If you are using an 80C51XA in burst mode, connect A4/D0 through A11/D7 to this port. ALE or AS latches the address. The PSD drives data out only if the READ signal is active and one of the PSD functional blocks was selected. The addresses on this port are passed to the PLDs. This is the upper Address/Data port. Connect your MCU address or address/data bus according to the following rules: If your MCU has a multiplexed address/data bus where the data is multiplexed with the lower address bits, connect A8-A15 to this port. If your MCU does not have a multiplexed address/data bus, connect A8-A15 to this port. ADIO8-15 39-46 I/O If you are using an 80C251 in page mode, connect AD8-AD15 to this port. ADIO0-7 30-37 I/O If you are using an 80C51XA in burst mode, connect A12/D8 through A19/D15 to this port. ALE or AS latches the address. The PSD drives data out only if the READ signal is active and one of the PSD functional blocks was selected. The addresses on this port are passed to the PLDs. The following control signals can be connected to this port, based on your MCU: WR – active Low Write Strobe input. CNTL0 47 I R_W – active High READ/active Low write input. This port is connected to the PLDs. Therefore, these signals can be used in decode and other logic equations. O bs CNTL1 let o 50 49 Pr e I The following control signals can be connected to this port, based on your MCU: RD – active Low Read Strobe input. du o (s) ct so Ob - te le ro P uc d s) t( E – E clock input. DS – active Low Data Strobe input. PSEN – connect PSEN to this port when it is being used as an active Low READ signal. For example, when the 80C251 outputs more than 16 address bits, PSEN is actually the READ signal. This port is connected to the PLDs. Therefore, these signals can be used in decode and other logic equations. This port can be used to input the PSEN (Program Select Enable) signal from any MCU that uses this signal for code exclusively. If your MCU does not output a Program Select Enable signal, this port can be used as a generic input. This port is connected to the PLDs. CNTL2 I 10/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Pin Name Reset Pin 48 Type I Description Resets I/O Ports, PLD macrocells and some of the Configuration Registers. Must be Low at Power-up. These pins make up Port A. These port pins are configurable and can have the following functions: MCU I/O – write to or read from a standard output or input port. CPLD macrocell (McellAB0-7) outputs. PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 29 28 27 25 24 23 22 21 Inputs to the PLDs. Latched address outputs (see Table 6). I/O Address inputs. For example, PA0-3 could be used for A0-A3 when using an 80C51XA in burst mode. As the data bus inputs D0-D7 for non-multiplexed address/data bus MCUs. D0/A16-D3/A19 in M37702M2 mode. Peripheral I/O mode. Note: PA0-PA3 can only output CMOS signals with an option for high slew rate. However, PA4-PA7 can be configured as CMOS or Open Drain Outputs. These pins make up Port B. These port pins are configurable and can have the following functions: MCU I/O – write to or read from a standard output or input port. CPLD macrocell (McellAB0-7 or McellBC0-7) outputs. I/O Inputs to the PLDs. PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 7 6 5 4 3 2 52 51 Latched address outputs (see Table 6). Note: PB0-PB3 can only output CMOS signals with an option for high slew rate. However, PB4-PB7 can be configured as CMOS or Open Drain Outputs. PC0 pin of Port C. This port pin can be configured to have the following functions: MCU I/O – write to or read from a standard output or input port. CPLD macrocell (McellBC0) output. PC0 20 O bs let o 19 Pr e I/O I/O Input to the PLDs. TMS Input2 for the JTAG Serial Interface. This pin can be configured as a CMOS or Open Drain output. PC1 pin of Port C. This port pin can be configured to have the following functions: MCU I/O – write to or read from a standard output or input port. CPLD macrocell (McellBC1) output. du o (s) ct so Ob - te le ro P uc d s) t( PC1 Input to the PLDs. TCK Input2 for the JTAG Serial Interface. This pin can be configured as a CMOS or Open Drain output. Doc ID 10552 Rev 3 11/109 PSD813F2V, PSD854F2V Pin Name Pin Type Description PC2 pin of Port C. This port pin can be configured to have the following functions: MCU I/O – write to or read from a standard output or input port. PC2 18 I/O CPLD macrocell (McellBC2) output. Input to the PLDs. This pin can be configured as a CMOS or Open Drain output. PC3 pin of Port C. This port pin can be configured to have the following functions: MCU I/O – write to or read from a standard output or input port. CPLD macrocell (McellBC3) output. PC3 17 I/O Input to the PLDs. TSTAT output2 for the JTAG Serial Interface. Ready/Busy output for parallel In-System Programming (ISP). This pin can be configured as a CMOS or Open Drain output. PC4 pin of Port C. This port pin can be configured to have the following functions: MCU I/O – write to or read from a standard output or input port. CPLD macrocell (McellBC4) output. PC4 14 I/O Input to the PLDs. TERR output2 for the JTAG Serial Interface. This pin can be configured as a CMOS or Open Drain output. PC5 pin of Port C. This port pin can be configured to have the following functions: MCU I/O – write to or read from a standard output or input port. CPLD macrocell (McellBC5) output. PC5 13 I/O Input to the PLDs. TDI input2 for the JTAG Serial Interface. O bs PC6 let o 12 Pr e I/O This pin can be configured as a CMOS or Open Drain output. PC6 pin of Port C. This port pin can be configured to have the following functions: MCU I/O – write to or read from a standard output or input port. CPLD macrocell (McellBC6) output. Input to the PLDs. TDO output2 for the JTAG Serial Interface. du o (s) ct so Ob - te le ro P uc d s) t( This pin can be configured as a CMOS or Open Drain output. 12/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Pin Name Pin Type Description PC7 pin of Port C. This port pin can be configured to have the following functions: MCU I/O – write to or read from a standard output or input port. CPLD macrocell (McellBC7) output. PC7 11 I/O Input to the PLDs. DBE – active Low Data Byte Enable input from 68HC912 type MCUs. This pin can be configured as a CMOS or Open Drain output. PD0 pin of Port D. This port pin can be configured to have the following functions: ALE/AS input latches address output from the MCU. PD0 10 I/O MCU I/O – write or read from a standard output or input port. Input to the PLDs. CPLD output (External Chip Select). PD1 pin of Port D. This port pin can be configured to have the following functions: MCU I/O – write to or read from a standard output or input port. Input to the PLDs. PD1 9 I/O CPLD output (External Chip Select). CLKIN – clock input to the CPLD macrocells, the APD Unit’s Power-down counter, and the CPLD AND Array. PD2 pin of Port D. This port pin can be configured to have the following functions: MCU I/O - write to or read from a standard output or input port. Input to the PLDs. PD2 8 I/O CPLD output (External Chip Select). PSD Chip Select Input (CSI). When Low, the MCU can access the PSD memory and I/O. When High, the PSD memory blocks are disabled to conserve power. VCC GND 15, 38 1, 16, 26 Supply Voltage Ground pins Note: 1. The pin numbers in this table are for the PLCC package only. See the package information from Table 75., page 105 and Table 77., page 107 for pin numbers on other package types. 2. These functions can be multiplexed with other functions. bs O let o Pr e du o (s) ct so Ob - te le ro P uc d s) t( Doc ID 10552 Rev 3 13/109 bs O 14/109 ADDRESS/DATA/CONTROL BUS PLD INPUT BUS PAGE REGISTER EMBEDDED ALGORITHM 8 SECTORS 1 OR 2 MBIT PRIMARY FLASH MEMORY PSD813F2V, PSD854F2V Figure 5. PSD Block Diagram let o Pr e 8 SECTOR SELECTS FLASH DECODE PLD (DPLD) SECTOR SELECTS SRAM SELECT 256 KBIT SRAM PERIP I/O MODE SELECTS CSIOP RUNTIME CONTROL AND I/O REGISTERS 3 EXT CS TO PORT D 16 OUTPUT MACROCELLS PORT A ,B & C 24 INPUT MACROCELLS PORT A ,B & C PROG. PORT PORT C PROG. PORT PORT B PORT A 256 KBIT SECONDARY NON-VOLATILE MEMORY (BOOT OR DATA) 4 SECTORS CNTL0, CNTL1, CNTL2 73 du o (s) ct PROG. MCU BUS INTRF. PROG. PORT PA0 – PA7 AD0 – AD15 ADIO PORT 73 FLASH ISP CPLD (CPLD) Doc ID 10552 Rev 3 so Ob te le PB0 – PB7 CLKIN PC0 – PC7 GLOBAL CONFIG. & SECURITY CLKIN MACROCELL FEEDBACK OR PORT INPUT ro P PROG. PORT PD0 – PD2 PLD, CONFIGURATION & FLASH MEMORY LOADER JTAG SERIAL CHANNEL PORT D uc d CLKIN (PD1) s) t( AI02861G PSD813F2V, PSD854F2V PSD ARCHITECTURAL OVERVIEW PSD devices contain several major functional blocks. Figure 5 shows the architecture of the PSD device family. The functions of each block are described briefly in the following sections. Many of the blocks perform multiple functions and are user configurable. Memory Each of the memory blocks is briefly discussed in the following paragraphs. A more detailed discussion can be found in the section entitled Memory Blocks, page 19. The 1 Mbit or 2 Mbit (128K x 8, or 256K x 8) Flash memory is the primary memory of the PSD. It is divided into 8 equally-sized sectors that are individually selectable. The optional 256 Kbit (32K x 8) secondary Flash memory is divided into 4 equally-sized sectors. Each sector is individually selectable. The optional SRAM is intended for use as a scratch-pad memory or as an extension to the MCU SRAM. Each sector of memory can be located in a different address space as defined by the user. The access times for all memory types includes the address latching and DPLD decoding time. Page Register The 8-bit Page Register expands the address range of the MCU by up to 256 times. The paged address can be used as part of the address space to access external memory and peripherals, or internal memory and I/O. The Page Register can also be used to change the address mapping of sectors of the Flash memories into different memory spaces for IAP. PLDs The device contains two PLDs, the Decode PLD (DPLD) and the Complex PLD (CPLD), as shown in Table 3, each optimized for a different function. The functional partitioning of the PLDs reduces power consumption, optimizes cost/performance, and eases design entry. nal memory and registers. The DPLD has combinatorial outputs. The CPLD has 16 Output Macrocells (OMC) and 3 combinatorial outputs. The PSD also has 24 Input Macrocells (IMC) that can be configured as inputs to the PLDs. The PLDs receive their inputs from the PLD Input Bus and are differentiated by their output destinations, number of product terms, and macrocells. The PLDs consume minimal power. The speed and power consumption of the PLD is controlled by the Turbo Bit in PMMR0 and other bits in the PMMR2. These registers are set by the MCU at run-time. There is a slight penalty to PLD propagation time when invoking the power management features. I/O Ports The PSD has 27 individually configurable I/O pins distributed over the four ports (Port A, B, C, and D). Each I/O pin can be individually configured for different functions. Ports can be configured as standard MCU I/O ports, PLD I/O, or latched address outputs for MCUs using multiplexed address/data buses. The JTAG pins can be enabled on Port C for InSystem Programming (ISP). Ports A and B can also be configured as a data port for a non-multiplexed bus. MCU Bus Interface PSD interfaces easily with most 8-bit MCUs that have either multiplexed or non-multiplexed address/data buses. The device is configured to respond to the MCU’s control signals, which are also used as inputs to the PLDs. For examples, please see the section entitled MCU Bus Interface Examples, page 45. bs O The DPLD is used to decode addresses and to generate Sector Select signals for the PSD inter- let o Pr e du o (s) ct so Ob - te le ro P uc d s) t( Table 3. PLD I/O Name Decode PLD (DPLD) Complex PLD (CPLD) Inputs 73 73 Outputs 17 19 Product Terms 42 140 Doc ID 10552 Rev 3 15/109 PSD813F2V, PSD854F2V JTAG Port In-System Programming (ISP) can be performed through the JTAG signals on Port C. This serial interface allows complete programming of the entire PSD device. A blank device can be completely programmed. The JTAG signals (TMS, TCK, TSTAT, TERR, TDI, TDO) can be multiplexed with other functions on Port C. Table 4 indicates the JTAG pin assignments. In-System Programming (ISP) Using the JTAG signals on Port C, the entire PSD device can be programmed or erased without the use of the MCU. The primary Flash memory can also be programmed in-system by the MCU executing the programming algorithms out of the secondary memory, or SRAM. The secondary memory can be programmed the same way by executing out of the primary Flash memory. The PLD or other PSD Configuration blocks can be programmed through the JTAG port or a device programmer. Table 5 indicates which programming methods can program different functional blocks of the PSD. Power Management Unit (PMU) The Power Management Unit (PMU) gives the user control of the power consumption on selected functional blocks based on system requirements. The PMU includes an Automatic Power-down (APD) Unit that turns off device functions during MCU inactivity. The APD Unit has a Power-down mode that helps reduce power consumption. The PSD also has some bits that are configured at run-time by the MCU to reduce power consumption of the CPLD. The Turbo Bit in PMMR0 can be reset to '0' and the CPLD latches its outputs and goes to sleep until the next transition on its inputs. Additionally, bits in PMMR2 can be set by the MCU to block signals from entering the CPLD to reduce power consumption. Please see the section entitled POWER MANAGEMENT, page 62 for more details. Table 4. JTAG SIgnals on Port C Port C Pins PC0 PC1 PC3 PC4 PC5 PC6 TMS TCK TSTAT TERR TDI JTAG Signal TDO Table 5. Methods of Programming Different Functional Blocks of the PSD Functional Block Primary Flash Memory Secondary Flash Memory PLD Array (DPLD and CPLD) PSD Configuration bs O let o Pr e du o ct (s) Yes Yes Yes Yes JTAG Programming so Ob - te le ro P uc d s) t( Device Programmer Yes Yes No No IAP Yes Yes Yes Yes 16/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V DEVELOPMENT SYSTEM The PSD8XXFX family is supported by PSDsoft Express, a Windows-based software development tool. A PSD design is quickly and easily produced in a point and click environment. The designer does not need to enter Hardware Description Language (HDL) equations, unless desired, to define PSD pin functions and memory map information. The general design flow is shown in Figure 6. PSDsoft Express is available from our web site (the address is given on the back page of this data sheet) or other distribution channels. Figure 6. PSDsoft Express Development Tool PSDsoft Express directly supports two low cost device programmers form ST: PSDpro and FlashLINK (JTAG). Both of these programmers may be purchased through your local distributor/representative, or directly from our web site using a credit card. The PSD is also supported by third party device programmers. See our web site for the current list. PSDabel PLD DESCRIPTION MODIFY ABEL TEMPLATE FILE OR GENERATE NEW FILE PSD Configuration CONFIGURE MCU BUS INTERFACE AND OTHER PSD ATTRIBUTES PSD TOOLS PSD Fitter LOGIC SYNTHESIS AND FITTING ADDRESS TRANSLATION AND MEMORY MAPPING bs O let o ro P e PSD Simulator du (s) ct so Ob FIRMWARE *.OBJ FILE te le GENERATE C CODE SPECIFIC TO PSD FUNCTIONS ro P uc d s) t( HEX OR S-RECORD FORMAT USER'S CHOICE OF MICROCONTROLLER COMPILER/LINKER PSD Programmer PSDPro, or FlashLINK (JTAG) PSDsilos III DEVICE SIMULATION (OPTIONAL) *.OBJ AND *.SVF FILES AVAILABLE FOR 3rd PARTY PROGRAMMERS (CONVENTIONAL or JTAG-ISC) AI04918 Doc ID 10552 Rev 3 17/109 PSD813F2V, PSD854F2V PSD REGISTER DESCRIPTION AND ADDRESS OFFSET Table 6 shows the offset addresses to the PSD registers relative to the CSIOP base address. The CSIOP space is the 256 bytes of address that is allocated by the user to the internal PSD registers. Table 7 provides brief descriptions of the registers in CSIOP space. The following section gives a more detailed description. Table 6. I/O Port Latched Address Output Assignments (Note1) MCU 8051XA (8-bit) 80C251 (page mode) All other 8-bit multiplexed 8-bit non-multiplexed bus N/A N/A Address a3-a0 N/A Port A Port A (3:0) Port A (7:4) Address a7-a4 N/A Address a7-a4 N/A Port B (3:0) Address a11-a8 Address a11-a8 Address a3-a0 Address a3-a0 N/A Address a15-a12 Address a7-a4 Address a7-a4 Port B Port B (7:4) Note: 1. See the section entitled I/O PORTS, page 51, on how to enable the Latched Address Output function. 2. N/A = Not Applicable Table 7. Register Address Offset Register Name Data In Control Data Out Direction Drive Select Input Macrocell Enable Out Output Macrocells AB Output Macrocells BC Port A 00 02 04 06 08 0A 0C 20 Port B 01 03 05 07 09 0B 0D 12 14 16 18 1A 13 15 17 Port C 10 Port D 11 Other1 Description Reads Port pin as input, MCU I/O input mode Selects mode between MCU I/O or Address Out Stores data for output to Port pins, MCU I/O output mode Configures Port pin as input or output Mask Macrocells AB Mask Macrocells BC bs O Page VM Primary Flash Protection Secondary Flash memory Protection JTAG Enable PMMR0 PMMR2 let o Pr e 22 du o 21 22 23 20 ct 21 23 (s) 1B so Ob - Configures Port pins as either CMOS or Open Drain on some pins, while selecting high slew rate on other pins. Reads Input Macrocells te le ro P uc d s) t( Reads the status of the output enable to the I/O Port driver READ – reads output of macrocells AB WRITE – loads macrocell flip-flops READ – reads output of macrocells BC WRITE – loads macrocell flip-flops Blocks writing to the Output Macrocells AB Blocks writing to the Output Macrocells BC C0 C2 C7 B0 B4 E0 E2 Read only – Primary Flash Sector Protection Read only – PSD Security and Secondary Flash memory Sector Protection Enables JTAG Port Power Management Register 0 Power Management Register 2 Page Register Places PSD memory areas in Program and/or Data space on an individual basis. Note: 1. Other registers that are not part of the I/O ports. 18/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V DETAILED OPERATION As shown in Figure 5., page 14, the PSD consists of six major types of functional blocks: ■ Memory Blocks ■ PLD Blocks ■ MCU Bus Interface ■ I/O Ports ■ Power Management Unit (PMU) ■ JTAG Interface The functions of each block are described in the following sections. Many of the blocks perform multiple functions, and are user configurable. Table 8. Memory Block Size and Organization Primary Flash Memory Sector Number 0 1 2 3 4 5 6 7 Total Sector Size (Bytes) 32K 32K 32K 32K 32K 32K 32K 32K 512K Sector Select Signal FS0 FS1 FS2 FS3 FS4 FS5 FS6 FS7 8 Sectors Secondary Flash Memory Sector Size (Bytes) 16K 16K 16K 16K Sector Select Signal CSBOOT0 CSBOOT1 CSBOOT2 CSBOOT3 SRAM SRAM Size (Bytes) 256K SRAM Select Signal RS0 Memory Blocks The PSD has the following memory blocks: – Primary Flash memory – Optional Secondary Flash memory – Optional SRAM The Memory Select signals for these blocks originate from the Decode PLD (DPLD) and are userdefined in PSDsoft Express. bs O let o Pr e du o (s) ct so Ob 64K te le ro P 256K uc d s) t( 4 Sectors Doc ID 10552 Rev 3 19/109 PSD813F2V, PSD854F2V Primary Flash Memory and Secondary Flash memory Description The primary Flash memory is divided evenly into eight equal sectors. The secondary Flash memory is divided into four equal sectors. Each sector of either memory block can be separately protected from Program and Erase cycles. Flash memory may be erased on a sector-by-sector basis. Flash sector erasure may be suspended while data is read from other sectors of the block and then resumed after reading. During a Program or Erase cycle in Flash memory, the status can be output on Ready/Busy (PC3). This pin is set up using PSDsoft Express Configuration. Memory Block Select Signals The DPLD generates the Select signals for all the internal memory blocks (see the section entitled PLDS, page 33). Each of the eight sectors of the primary Flash memory has a Select signal (FS0FS7) which can contain up to three product terms. Each of the four sectors of the secondary Flash memory has a Select signal (CSBOOT0CSBOOT3) which can contain up to three product terms. Having three product terms for each Select signal allows a given sector to be mapped in different areas of system memory. When using a MCU with separate Program and Data space, these flexible Select signals allow dynamic re-mapping of sectors from one memory space to the other. Ready/Busy (PC3). This signal can be used to output the Ready/Busy status of the PSD. The output on Ready/Busy (PC3) is a 0 (Busy) when Flash memory is being written to, or when Flash memory is being erased. The output is a 1 (Ready) when no WRITE or Erase cycle is in progress. Memory Operation. The primary Flash memory and secondary Flash memory are addressed through the MCU Bus Interface. The MCU can access these memories in one of two ways: – The MCU can execute a typical bus WRITE or READ operation just as it would if accessing a RAM or ROM device using standard bus cycles. – The MCU can execute a specific instruction that consists of several WRITE and READ operations. This involves writing specific data patterns to special addresses within the Flash memory to invoke an embedded algorithm. These instructions are summarized in Table 9., page 21. Typically, the MCU can read Flash memory using READ operations, just as it would read a ROM device. However, Flash memory can only be altered using specific Erase and Program instructions. For example, the MCU cannot write a single byte directly to Flash memory as it would write a byte to RAM. To program a byte into Flash memory, the MCU must execute a Program instruction, then test the status of the Program cycle. This status test is achieved by a READ operation or polling Ready/Busy (PC3). Flash memory can also be read by using special instructions to retrieve particular Flash device information (sector protect status and ID). bs O let o Pr e du o (s) ct so Ob - te le ro P uc d s) t( 20/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Table 9. Instructions Instruction READ5 Read Main Flash ID6 Read Sector Protection6,8,13 Program a Flash Byte13 Flash Sector Erase7,13 Flash Bulk Erase13 Suspend Sector Erase11 Resume Sector Erase12 Reset6 Unlock Bypass Unlock Bypass Program9 Unlock Bypass Reset10 FS0-FS7 or CSBOOT0CSBOOT3 1 1 1 1 1 1 1 1 1 1 1 1 Cycle 1 “READ” RD @ RA AAh@ X555h AAh@ X555h AAh@ X555h AAh@ X555h AAh@ X555h B0h@ XXXXh 30h@ XXXXh F0h@ XXXXh AAh@ X555h A0h@ XXXXh 90h@ XXXXh 55h@ XAAAh PD@ PA 00h@ XXXXh 20h@ X555h 55h@ XAAAh 55h@ XAAAh 55h@ XAAAh 55h@ XAAAh 55h@ XAAAh 90h@ X555h 90h@ X555h A0h@ X555h 80h@ X555h 80h@ X555h Read identifier (A6,A1,A0 = 0,0,1) Read identifier (A6,A1,A0 = 0,1,0) PD@ PA AAh@ X555h AAh@ X555h 55h@ XAAAh 55h@ XAAAh 30h@ SA 10h@ X555h 30h7@ next SA Cycle 2 Cycle 3 Cycle 4 Cycle 5 Cycle 6 Cycle 7 bs O Note: 1. All bus cycles are WRITE bus cycles, except the ones with the “READ” label 2. All values are in hexadecimal: X = Don’t Care. Addresses of the form XXXXh, in this table, must be even addresses RA = Address of the memory location to be read RD = Data read from location RA during the READ cycle PA = Address of the memory location to be programmed. Addresses are latched on the falling edge of Write Strobe (WR, CNTL0). PA is an even address for PSD in word programming mode. PD = Data word to be programmed at location PA. Data is latched on the rising edge of Write Strobe (WR, CNTL0) SA = Address of the sector to be erased or verified. The Sector Select (FS0-FS7 or CSBOOT0-CSBOOT3) of the sector to be erased, or verified, must be Active (High). 3. Sector Select (FS0 to FS7 or CSBOOT0 to CSBOOT3) signals are active High, and are defined in PSDsoft Express. 4. Only address bits A11-A0 are used in instruction decoding. 5. No Unlock or instruction cycles are required when the device is in the READ Mode 6. The Reset instruction is required to return to the READ Mode after reading the Flash ID, or after reading the Sector Protection Status, or if the Error Flag Bit (DQ5/DQ13) goes High. 7. Additional sectors to be erased must be written at the end of the Sector Erase instruction within 80µs. 8. The data is 00h for an unprotected sector, and 01h for a protected sector. In the fourth cycle, the Sector Select is active, and (A1,A0)=(1,0) 9. The Unlock Bypass instruction is required prior to the Unlock Bypass Program instruction. 10. The Unlock Bypass Reset Flash instruction is required to return to reading memory data when the device is in the Unlock Bypass mode. 11. The system may perform READ and Program cycles in non-erasing sectors, read the Flash ID or read the Sector Protection Status when in the Suspend Sector Erase mode. The Suspend Sector Erase instruction is valid only during a Sector Erase cycle. 12. The Resume Sector Erase instruction is valid only during the Suspend Sector Erase mode. 13. The MCU cannot invoke these instructions while executing code from the same Flash memory as that for which the instruction is intended. The MCU must fetch, for example, the code from the secondary Flash memory when reading the Sector Protection Status of the primary Flash memory. let o Pr e du o (s) ct so Ob - te le ro P uc d s) t( Doc ID 10552 Rev 3 21/109 PSD813F2V, PSD854F2V INSTRUCTIONS An instruction consists of a sequence of specific operations. Each received byte is sequentially decoded by the PSD and not executed as a standard WRITE operation. The instruction is executed when the correct number of bytes are properly received and the time between two consecutive bytes is shorter than the time-out period. Some instructions are structured to include READ operations after the initial WRITE operations. The instruction must be followed exactly. Any invalid combination of instruction bytes or time-out between two consecutive bytes while addressing Flash memory resets the device logic into READ Mode (Flash memory is read like a ROM device). The PSD supports the instructions summarized in Table 9., page 21: Flash memory: ■ Erase memory by chip or sector ■ Suspend or resume sector erase ■ Program a Byte ■ Reset to READ Mode ■ Read primary Flash Identifier value ■ Read Sector Protection Status ■ Bypass (on the PSD833F2, PSD834F2, PSD853F2 and PSD854F2) These instructions are detailed in Table 9., page 21. For efficient decoding of the instructions, the first two bytes of an instruction are the coded cycles and are followed by an instruction byte or confirmation byte. The coded cycles consist of writing the data AAh to address X555h during the first cycle and data 55h to address XAAAh during the second cycle. Address signals A15-A12 are Don’t Care during the instruction WRITE cycles. However, the appropriate Sector Select (FS0-FS7 or CSBOOT0-CSBOOT3) must be selected. The primary and secondary Flash memories have the same instruction set (except for Read Primary Flash Identifier). The Sector Select signals determine which Flash memory is to receive and execute the instruction. The primary Flash memory is selected if any one of Sector Select (FS0-FS7) is High, and the secondary Flash memory is selected if any one of Sector Select (CSBOOT0CSBOOT3) is High. Power-up Mode The PSD internal logic is reset upon Power-up to the READ Mode. Sector Select (FS0-FS7 and CSBOOT0-CSBOOT3) must be held Low, and Write Strobe (WR, CNTL0) High, during Power-up for maximum security of the data contents and to remove the possibility of a byte being written on the first edge of Write Strobe (WR, CNTL0). Any WRITE cycle initiation is locked when VCC is below VLKO. READ Under typical conditions, the MCU may read the primary Flash memory or the secondary Flash memory using READ operations just as it would a ROM or RAM device. Alternately, the MCU may use READ operations to obtain status information about a Program or Erase cycle that is currently in progress. Lastly, the MCU may use instructions to read special data from these memory blocks. The following sections describe these READ functions. Read Memory Contents Primary Flash memory and secondary Flash memory are placed in the READ Mode after Power-up, chip reset, or a Reset Flash instruction (see Table 9., page 21). The MCU can read the memory contents of the primary Flash memory or the secondary Flash memory by using READ operations any time the READ operation is not part of an instruction. Read Primary Flash Identifier The primary Flash memory identifier is read with an instruction composed of 4 operations: 3 specific WRITE operations and a READ operation (see Table 9., page 21). During the READ operation, address bits A6, A1, and A0 must be '0,0,1,' respectively, and the appropriate Sector Select (FS0-FS7) must be High. The identifier for the PSD813F2/3/4/5 is E4h, and for the PSD83xF2 or PSD85xF2 it is E7h. Read Memory Sector Protection Status The primary Flash memory Sector Protection Status is read with an instruction composed of 4 operations: 3 specific WRITE operations and a READ operation (see Table 9., page 21). During the READ operation, address Bits A6, A1, and A0 must be '0,1,0,' respectively, while Sector Select (FS0-FS7 or CSBOOT0-CSBOOT3) designates the Flash memory sector whose protection has to be verified. The READ operation produces 01h if the Flash memory sector is protected, or 00h if the sector is not protected. The sector protection status for all NVM blocks (primary Flash memory or secondary Flash memory) can also be read by the MCU accessing the Flash Protection registers in PSD I/O space. See the section entitled Flash Memory Sector Protect, page 28 for register definitions. bs O let o Pr e du o (s) ct so Ob - te le ro P uc d s) t( 22/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Reading the Erase/Program Status Bits The PSD provides several status bits to be used by the MCU to confirm the completion of an Erase or Program cycle of Flash memory. These status bits minimize the time that the MCU spends performing these tasks and are defined in Table 10. The status bits can be read as many times as needed. Table 10. Status Bit Functional Block FS0-FS7/CSBOOT0CSBOOT3 VIH DQ7 Data Polling DQ6 Toggle Flag DQ5 Error Flag DQ4 DQ3 Erase Timeout DQ2 DQ1 DQ0 For Flash memory, the MCU can perform a READ operation to obtain these status bits while an Erase or Program instruction is being executed by the embedded algorithm. See the section entitled PROGRAMMING FLASH MEMORY, page 25 for details. Flash Memory X X X X Note: 1. X = Not guaranteed value, can be read either '1' or ’0.’ 2. DQ7-DQ0 represent the Data Bus bits, D7-D0. 3. FS0-FS7 and CSBOOT0-CSBOOT3 are active High. bs O let o Pr e du o (s) ct so Ob - te le ro P uc d s) t( Doc ID 10552 Rev 3 23/109 PSD813F2V, PSD854F2V Data Polling Flag (DQ7) When erasing or programming in Flash memory, the Data Polling Flag Bit (DQ7) outputs the complement of the bit being entered for programming/ writing on the DQ7 Bit. Once the Program instruction or the WRITE operation is completed, the true logic value is read on the Data Polling Flag Bit (DQ7, in a READ operation). – Data Polling is effective after the fourth WRITE pulse (for a Program instruction) or after the sixth WRITE pulse (for an Erase instruction). It must be performed at the address being programmed or at an address within the Flash memory sector being erased. – During an Erase cycle, the Data Polling Flag Bit (DQ7) outputs a ’0.’ After completion of the cycle, the Data Polling Flag Bit (DQ7) outputs the last bit programmed (it is a '1' after erasing). – If the byte to be programmed is in a protected Flash memory sector, the instruction is ignored. – If all the Flash memory sectors to be erased are protected, the Data Polling Flag Bit (DQ7) is reset to '0' for about 100µs, and then returns to the previous addressed byte. No erasure is performed. Toggle Flag (DQ6) The PSD offers another way for determining when the Flash memory Program cycle is completed. During the internal WRITE operation and when either the FS0-FS7 or CSBOOT0-CSBOOT3 is true, the Toggle Flag Bit (DQ6) toggles from '0' to '1' and '1' to '0' on subsequent attempts to read any byte of the memory. When the internal cycle is complete, the toggling stops and the data read on the Data Bus D0-D7 is the addressed memory byte. The device is now accessible for a new READ or WRITE operation. The cycle is finished when two successive READs yield the same output data. – bs O let o Pr e du o (s) ct so Ob - The Toggle Flag Bit (DQ6) is effective after the fourth WRITE pulse (for a Program instruction) or after the sixth WRITE pulse (for an Erase instruction). – If the byte to be programmed belongs to a protected Flash memory sector, the instruction is ignored. – If all the Flash memory sectors selected for erasure are protected, the Toggle Flag Bit (DQ6) toggles to '0' for about 100µs and then returns to the previous addressed byte. Error Flag (DQ5) During a normal Program or Erase cycle, the Error Flag Bit (DQ5) is to ’0.’ This bit is set to '1' when there is a failure during Flash memory Byte Program, Sector Erase, or Bulk Erase cycle. In the case of Flash memory programming, the Error Flag Bit (DQ5) indicates the attempt to program a Flash memory bit from the programmed state, ’0,’ to the erased state, '1,' which is not valid. The Error Flag Bit (DQ5) may also indicate a Time-out condition while attempting to program a byte. In case of an error in a Flash memory Sector Erase or Byte Program cycle, the Flash memory sector in which the error occurred or to which the programmed byte belongs must no longer be used. Other Flash memory sectors may still be used. The Error Flag Bit (DQ5) is reset after a Reset Flash instruction. Erase Time-out Flag (DQ3) The Erase Time-out Flag Bit (DQ3) reflects the time-out period allowed between two consecutive Sector Erase instructions. The Erase Time-out Flag Bit (DQ3) is reset to '0' after a Sector Erase cycle for a time period of 100µs + 20% unless an additional Sector Erase instruction is decoded. After this time period, or when the additional Sector Erase instruction is decoded, the Erase Time-out Flag Bit (DQ3) is set to '1.' te le ro P uc d s) t( 24/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V PROGRAMMING FLASH MEMORY Flash memory must be erased prior to being programmed. A byte of Flash memory is erased to all 1s (FFh), and is programmed by setting selected bits to ’0.’ The MCU may erase Flash memory all at once or by-sector, but not byte-by-byte. However, the MCU may program Flash memory byte-bybyte. The primary and secondary Flash memories require the MCU to send an instruction to program a byte or to erase sectors (see Table 9., page 21). Once the MCU issues a Flash memory Program or Erase instruction, it must check for the status bits for completion. The embedded algorithms that are invoked inside the PSD support several means to provide status to the MCU. Status may be checked using any of three methods: Data Polling, Data Toggle, or Ready/Busy (PC3). Data Polling Polling on the Data Polling Flag Bit (DQ7) is a method of checking whether a Program or Erase cycle is in progress or has completed. Figure 7 shows the Data Polling algorithm. When the MCU issues a Program instruction, the embedded algorithm within the PSD begins. The MCU then reads the location of the byte to be programmed in Flash memory to check status. The Data Polling Flag Bit (DQ7) of this location becomes the complement of b7 of the original data byte to be programmed. The MCU continues to poll this location, comparing the Data Polling Flag Bit (DQ7) and monitoring the Error Flag Bit (DQ5). When the Data Polling Flag Bit (DQ7) matches b7 of the original data, and the Error Flag Bit (DQ5) remains ’0,’ the embedded algorithm is complete. If the Error Flag Bit (DQ5) is '1,' the MCU should test the Data Polling Flag Bit (DQ7) again since the Data Polling Flag Bit (DQ7) may have changed simultaneously with the Error Flag Bit (DQ5, see Figure 7). The Error Flag Bit (DQ5) is set if either an internal time-out occurred while the embedded algorithm attempted to program the byte or if the MCU attempted to program a '1' to a bit that was not erased (not erased is logic '0'). It is suggested (as with all Flash memories) to read the location again after the embedded programming algorithm has completed, to compare the byte that was written to the Flash memory with the byte that was intended to be written. When using the Data Polling method during an Erase cycle, Figure 7 still applies. However, the Data Polling Flag Bit (DQ7) is '0' until the Erase cycle is complete. A 1 on the Error Flag Bit (DQ5) indicates a time-out condition on the Erase cycle; a 0 indicates no error. The MCU can read any location within the sector being erased to get the Data Polling Flag Bit (DQ7) and the Error Flag Bit (DQ5). PSDsoft Express generates ANSI C code functions which implement these Data Polling algorithms. Figure 7. Data Polling Flowchart START READ DQ5 & DQ7 at VALID ADDRESS bs O let o Pr e du o (s) ct Ob - so te le NO DQ7 = DATA ro P NO YES uc d s) t( YES DQ5 =1 READ DQ7 DQ7 = DATA NO FAIL YES PASS AI01369B Doc ID 10552 Rev 3 25/109 PSD813F2V, PSD854F2V Data Toggle Checking the Toggle Flag Bit (DQ6) is a method of determining whether a Program or Erase cycle is in progress or has completed. Figure 8 shows the Data Toggle algorithm. When the MCU issues a Program instruction, the embedded algorithm within the PSD begins. The MCU then reads the location of the byte to be programmed in Flash memory to check status. The Toggle Flag Bit (DQ6) of this location toggles each time the MCU reads this location until the embedded algorithm is complete. The MCU continues to read this location, checking the Toggle Flag Bit (DQ6) and monitoring the Error Flag Bit (DQ5). When the Toggle Flag Bit (DQ6) stops toggling (two consecutive reads yield the same value), and the Error Flag Bit (DQ5) remains ’0,’ the embedded algorithm is complete. If the Error Flag Bit (DQ5) is '1,' the MCU should test the Toggle Flag Bit (DQ6) again, since the Toggle Flag Bit (DQ6) may have changed simultaneously with the Error Flag Bit (DQ5, see Figure 8). The Error Flag Bit (DQ5) is set if either an internal time-out occurred while the embedded algorithm attempted to program the byte, or if the MCU attempted to program a '1' to a bit that was not erased (not erased is logic '0'). It is suggested (as with all Flash memories) to read the location again after the embedded programming algorithm has completed, to compare the byte that was written to Flash memory with the byte that was intended to be written. When using the Data Toggle method after an Erase cycle, Figure 8 still applies. the Toggle Flag Bit (DQ6) toggles until the Erase cycle is complete. A '1' on the Error Flag Bit (DQ5) indicates a timeout condition on the Erase cycle; a '0' indicates no error. The MCU can read any location within the sector being erased to get the Toggle Flag Bit (DQ6) and the Error Flag Bit (DQ5). PSDsoft Express generates ANSI C code functions which implement these Data Toggling algorithms. Unlock Bypass (PSD833F2x, PSD834F2x, PSD853F2x, PSD854F2x) The Unlock Bypass instructions allow the system to program bytes to the Flash memories faster than using the standard Program instruction. The Unlock Bypass mode is entered by first initiating two Unlock cycles. This is followed by a third WRITE cycle containing the Unlock Bypass code, 20h (as shown in Table 9., page 21). The Flash memory then enters the Unlock Bypass mode. A two-cycle Unlock Bypass Program instruction is all that is required to program in this mode. The first cycle in this instruction contains the Unlock Bypass Program code, A0h. The second cycle contains the program address and data. Additional data is programmed in the same manner. These instructions dispense with the initial two Unlock cycles required in the standard Program instruction, resulting in faster total Flash memory programming. During the Unlock Bypass mode, only the Unlock Bypass Program and Unlock Bypass Reset Flash instructions are valid. To exit the Unlock Bypass mode, the system must issue the two-cycle Unlock Bypass Reset Flash instruction. The first cycle must contain the data 90h; the second cycle the data 00h. Addresses are Don’t Care for both cycles. The Flash memory then returns to READ Mode. Figure 8. Data Toggle Flowchart START O bs let o Pr e du o (s) ct so Ob - te le NO READ DQ5 & DQ6 ro P YES uc d s) t( DQ6 = TOGGLE NO DQ5 =1 YES READ DQ6 DQ6 = TOGGLE YES FAIL NO PASS AI01370B 26/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V ERASING FLASH MEMORY Flash Bulk Erase The Flash Bulk Erase instruction uses six WRITE operations followed by a READ operation of the status register, as described in Table 9., page 21. If any byte of the Bulk Erase instruction is wrong, the Bulk Erase instruction aborts and the device is reset to the Read Flash memory status. During a Bulk Erase, the memory status may be checked by reading the Error Flag Bit (DQ5), the Toggle Flag Bit (DQ6), and the Data Polling Flag Bit (DQ7), as detailed in the section entitled PROGRAMMING FLASH MEMORY, page 25. The Error Flag Bit (DQ5) returns a '1' if there has been an Erase Failure (maximum number of Erase cycles have been executed). It is not necessary to program the memory with 00h because the PSD automatically does this before erasing to 0FFh. During execution of the Bulk Erase instruction, the Flash memory does not accept any instructions. Flash Sector Erase The Sector Erase instruction uses six WRITE operations, as described in Table 9., page 21. Additional Flash Sector Erase codes and Flash memory sector addresses can be written subsequently to erase other Flash memory sectors in parallel, without further coded cycles, if the additional bytes are transmitted in a shorter time than the time-out period of about 100µs. The input of a new Sector Erase code restarts the time-out period. The status of the internal timer can be monitored through the level of the Erase Time-out Flag Bit (DQ3). If the Erase Time-out Flag Bit (DQ3) is ’0,’ the Sector Erase instruction has been received and the time-out period is counting. If the Erase Time-out Flag Bit (DQ3) is '1,' the time-out period has expired and the PSD is busy erasing the Flash memory sector(s). Before and during Erase timeout, any instruction other than Suspend Sector Erase and Resume Sector Erase instructions abort the cycle that is currently in progress, and reset the device to READ Mode. It is not necessary to program the Flash memory sector with 00h as the PSD does this automatically before erasing (byte = FFh). During a Sector Erase, the memory status may be checked by reading the Error Flag Bit (DQ5), the Toggle Flag Bit (DQ6), and the Data Polling Flag Bit (DQ7), as detailed in the section entitled PROGRAMMING FLASH MEMORY, page 25. During execution of the Erase cycle, the Flash memory accepts only Reset and Suspend Sector Erase instructions. Erasure of one Flash memory sector may be suspended, in order to read data from another Flash memory sector, and then resumed. Suspend Sector Erase When a Sector Erase cycle is in progress, the Suspend Sector Erase instruction can be used to suspend the cycle by writing 0B0h to any address when an appropriate Sector Select (FS0-FS7 or CSBOOT0-CSBOOT3) is High. (See Table 9., page 21). This allows reading of data from another Flash memory sector after the Erase cycle has been suspended. Suspend Sector Erase is accepted only during an Erase cycle and defaults to READ Mode. A Suspend Sector Erase instruction executed during an Erase time-out period, in addition to suspending the Erase cycle, terminates the time out period. The Toggle Flag Bit (DQ6) stops toggling when the PSD internal logic is suspended. The status of this bit must be monitored at an address within the Flash memory sector being erased. The Toggle Flag Bit (DQ6) stops toggling between 0.1µs and 15µs after the Suspend Sector Erase instruction has been executed. The PSD is then automatically set to READ Mode. If an Suspend Sector Erase instruction was executed, the following rules apply: – Attempting to read from a Flash memory sector that was being erased outputs invalid data. – Reading from a Flash sector that was not being erased is valid. – The Flash memory cannot be programmed, and only responds to Resume Sector Erase and Reset Flash instructions (READ is an operation and is allowed). – If a Reset Flash instruction is received, data in the Flash memory sector that was being erased is invalid. Resume Sector Erase If a Suspend Sector Erase instruction was previously executed, the erase cycle may be resumed with this instruction. The Resume Sector Erase instruction consists of writing 030h to any address while an appropriate Sector Select (FS0-FS7 or CSBOOT0-CSBOOT3) is High. (See Table 9., page 21.) bs O let o Pr e du o (s) ct so Ob - te le ro P uc d s) t( Doc ID 10552 Rev 3 27/109 PSD813F2V, PSD854F2V SPECIFIC FEATURES Flash Memory Sector Protect Each primary and secondary Flash memory sector can be separately protected against Program and Erase cycles. Sector Protection provides additional data security because it disables all Program or Erase cycles. This mode can be activated through the JTAG Port or a Device Programmer. Sector protection can be selected for each sector using the PSDsoft Express Configuration program. This automatically protects selected sectors when the device is programmed through the JTAG Port or a Device Programmer. Flash memory sectors can be unprotected to allow updating of their contents using the JTAG Port or a Device Programmer. The MCU can read (but cannot change) the sector protection bits. Any attempt to program or erase a protected Flash memory sector is ignored by the device. The Verify operation results in a READ of the protected data. This allows a guarantee of the retention of the Protection status. The sector protection status can be read by the MCU through the Flash memory protection and PSD/EE protection registers (in the CSIOP block). See Tables 11 and 12. Reset Flash The Reset Flash instruction consists of one WRITE cycle (see Table 9., page 21). It can also be optionally preceded by the standard two WRITE decoding cycles (writing AAh to 555h and 55h to AAAh). It must be executed after: – Reading the Flash Protection Status or Flash ID – An Error condition has occurred (and the device has set the Error Flag Bit (DQ5) to '1') during a Flash memory Program or Erase cycle. On the PSD813F2/3/4/5, the Reset Flash instruction puts the Flash memory back into normal READ Mode. It may take the Flash memory up to a few milliseconds to complete the Reset cycle. The Reset Flash instruction is ignored when it is issued during a Program or Bulk Erase cycle of the Flash memory. The Reset Flash instruction aborts any on-going Sector Erase cycle, and returns the Flash memory to the normal READ Mode within a few milliseconds. On the PSD83xF2 or PSD85xF2, the Reset Flash instruction puts the Flash memory back into normal READ Mode. If an Error condition has occurred (and the device has set the Error Flag Bit (DQ5) to '1') the Flash memory is put back into normal READ Mode within 25μs of the Reset Flash instruction having been issued. The Reset Flash instruction is ignored when it is issued during a Program or Bulk Erase cycle of the Flash memory. The Reset Flash instruction aborts any on-going Sector Erase cycle, and returns the Flash memory to the normal READ Mode within 25μs. Reset (RESET) Signal (on the PSD83xF2 and PSD85xF2) A pulse on Reset (RESET) aborts any cycle that is in progress, and resets the Flash memory to the READ Mode. When the reset occurs during a Program or Erase cycle, the Flash memory takes up to 25μs to return to the READ Mode. It is recommended that the Reset (RESET) pulse (except for Power On Reset, as described on RESET TIMING AND DEVICE STATUS AT RESET, page 67) be at least 25μs so that the Flash memory is always ready for the MCU to fetch the bootstrap instructions after the Reset cycle is complete. Table 11. Sector Protection/Security Bit Definition – Flash Protection Register Bit 7 Sec7_Prot bs O Bit 7 Note: 1. Bit Definitions: Sec_Prot 1 = Primary Flash memory or secondary Flash memory Sector is write protected. Sec_Prot 0 = Primary Flash memory or secondary Flash memory Sector is not write protected. let o Bit 6 Sec6_Prot Pr e du o Bit 5 (s) ct Bit 4 so Ob - te le ro P uc d s) t( Bit 3 Sec3_Prot Bit 2 Sec2_Prot Bit 1 Sec1_Prot Bit 0 Sec0_Prot Sec5_Prot Sec4_Prot Table 12. Sector Protection/Security Bit Definition – PSD/EE Protection Register Bit 6 not used Bit 5 not used Bit 4 not used Bit 3 Sec3_Prot Bit 2 Sec2_Prot Bit 1 Sec1_Prot Bit 0 Sec0_Prot Security_Bit Note: 1. Bit Definitions: Sec_Prot 1 = Secondary Flash memory Sector is write protected. Sec_Prot 0 = Secondary Flash memory Sector is not write protected. Security_Bit 0 = Security Bit in device has not been set. 1 = Security Bit in device has been set. 28/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V SRAM The SRAM is enabled when SRAM Select (RS0) from the DPLD is High. SRAM Select (RS0) can contain up to two product terms, allowing flexible memory mapping. SRAM Select (RS0) is configured using PSDsoft Express Configuration. bs O let o Pr e du o (s) ct so Ob - te le ro P uc d s) t( Doc ID 10552 Rev 3 29/109 PSD813F2V, PSD854F2V SECTOR SELECT AND SRAM SELECT Sector Select (FS0-FS7, CSBOOT0-CSBOOT3) and SRAM Select (RS0) are all outputs of the DPLD. They are setup by writing equations for them in PSDabel. The following rules apply to the equations for these signals: 1. Primary Flash memory and secondary Flash memory Sector Select signals must not be larger than the physical sector size. 2. Any primary Flash memory sector must not be mapped in the same memory space as another Flash memory sector. 3. A secondary Flash memory sector must not be mapped in the same memory space as another secondary Flash memory sector. 4. SRAM, I/O, and Peripheral I/O spaces must not overlap. 5. A secondary Flash memory sector may overlap a primary Flash memory sector. In case of overlap, priority is given to the secondary Flash memory sector. 6. SRAM, I/O, and Peripheral I/O spaces may overlap any other memory sector. Priority is given to the SRAM, I/O, or Peripheral I/O. Example FS0 is valid when the address is in the range of 8000h to BFFFh, CSBOOT0 is valid from 8000h to 9FFFh, and RS0 is valid from 8000h to 87FFh. Any address in the range of RS0 always accesses the SRAM. Any address in the range of CSBOOT0 greater than 87FFh (and less than 9FFFh) automatically addresses secondary Flash memory segment 0. Any address greater than 9FFFh accesses the primary Flash memory segment 0. You can see that half of the primary Flash memory segment 0 and one-fourth of secondary Flash memory segment 0 cannot be accessed in this example. Also note that an equation that defined FS1 to anywhere in the range of 8000h to BFFFh would not be valid. Figure 9 shows the priority levels for all memory components. Any component on a higher level can overlap and has priority over any component on a lower level. Components on the same level must not overlap. Level one has the highest priority and level 3 has the lowest. Memory Select Configuration for MCUs with Separate Program and Data Spaces The 8031 and compatible family of MCUs, which includes the 80C51, 80C151, 80C251, and 80C51XA, have separate address spaces for Program memory (selected using Program Select Enable (PSEN, CNTL2)) and Data memory (selected using Read Strobe (RD, CNTL1)). Any of the memories within the PSD can reside in either space or both spaces. This is controlled through manipulation of the VM register that resides in the CSIOP space. The VM register is set using PSDsoft Express to have an initial value. It can subsequently be changed by the MCU so that memory mapping can be changed on-the-fly. For example, you may wish to have SRAM and primary Flash memory in the Data space at Boot-up, and secondary Flash memory in the Program space at Boot-up, and later swap the primary and secondary Flash memories. This is easily done with the VM register by using PSDsoft Express Configuration to configure it for Boot-up and having the MCU change it when desired. Table 13., page 31 describes the VM Register. Figure 9. Priority Level of Memory and I/O Components Highest Priority bs O let o Pr e du o (s) ct so Ob - te le Level 1 SRAM, I /O, or Peripheral I /O ro P uc d s) t( Level 2 Secondary Non-Volatile Memory Level 3 Primary Flash Memory AI02867D Lowest Priority Configuration Modes for MCUs with Separate Program and Data Spaces Separate Space Modes. Program space is separated from Data space. For example, Program Select Enable (PSEN, CNTL2) is used to access the program code from the primary Flash memory, while Read Strobe (RD, CNTL1) is used to access data from the secondary Flash memory, SRAM and I/O Port blocks. This configuration requires the VM register to be set to 0Ch (see Figure 10., page 31). Combined Space Modes. The Program and Data spaces are combined into one memory space that allows the primary Flash memory, secondary Flash memory, and SRAM to be accessed by either Program Select Enable (PSEN, CNTL2) or Read Strobe (RD, CNTL1). For example, to configure the primary Flash memory in Combined space, Bits b2 and b4 of the VM register are set to '1' (see Figure 11., page 31). 30/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Figure 10. 8031 Memory Modules – Separate Space DPLD RS0 CSBOOT0-3 FS0-FS7 Primary Flash Memory Secondary Flash Memory SRAM CS OE CS OE CS OE PSEN RD AI02869C Figure 11. 8031 Memory Modules – Combined Space DPLD RS0 CSBOOT0-3 FS0-FS7 Primary Flash Memory Secondary Flash Memory RD CS OE VM REG BIT 3 VM REG BIT 4 PSEN VM REG BIT 1 VM REG BIT 2 VM REG BIT 0 Table 13. VM Register bs O Bit 7 PIO_EN let o Pr e Bit 5 not used du o (s) ct so Ob - eP let CS OE od r uc CS SRAM s) t( OE RD AI02870C Bit 6 Bit 4 Primary FL_Data 0 = RD can’t access Flash memory 1 = RD access Flash memory Bit 3 Secondary EE_Data 0 = RD can’t access Secondary Flash memory 1 = RD access Secondary Flash memory Bit 2 Primary FL_Code 0 = PSEN can’t access Flash memory 1 = PSEN access Flash memory Bit 1 Secondary EE_Code 0 = PSEN can’t access Secondary Flash memory 1 = PSEN access Secondary Flash memory Bit 0 SRAM_Code 0 = PSEN can’t access SRAM 1 = PSEN access SRAM 0 = disable PIO mode not used 1= enable PIO mode not used not used Doc ID 10552 Rev 3 31/109 PSD813F2V, PSD854F2V PAGE REGISTER The 8-bit Page Register increases the addressing capability of the MCU by a factor of up to 256. The contents of the register can also be read by the MCU. The outputs of the Page Register (PGR0PGR7) are inputs to the DPLD decoder and can be included in the Sector Select (FS0-FS7, CSBOOT0-CSBOOT3), and SRAM Select (RS0) equations. If memory paging is not needed, or if not all 8 page register bits are needed for memory paging, then these bits may be used in the CPLD for general logic. See Application Note AN1154. Figure 12 shows the Page Register. The eight flipflops in the register are connected to the internal data bus D0-D7. The MCU can write to or read from the Page Register. The Page Register can be accessed at address location CSIOP + E0h. Figure 12. Page Register RESET D0 D1 D0 - D7 D2 D3 D4 D5 D6 R/W D7 Q0 Q1 Q2 Q3 Q4 Q5 PGR0 PGR1 PGR2 PGR3 PGR4 PGR5 PGR6 DPLD AND CPLD INTERNAL SELECTS AND LOGIC Q6 PGR7 Q7 PAGE REGISTER bs O let o Pr e du o (s) ct Ob - so te le PLD ro P uc d s) t( AI02871B 32/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V PLDS The PLDs bring programmable logic functionality to the PSD. After specifying the logic for the PLDs using the PSDabel tool in PSDsoft Express, the logic is programmed into the device and available upon Power-up. The PSD contains two PLDs: the Decode PLD (DPLD), and the Complex PLD (CPLD). The PLDs are briefly discussed in the next few paragraphs, and in more detail in the section entitled Decode PLD (DPLD), page 35 and the section entitled Complex PLD (CPLD), page 36. Figure 13., page 34 shows the configuration of the PLDs. The DPLD performs address decoding for Select signals for internal components, such as memory, registers, and I/O ports. The CPLD can be used for logic functions, such as loadable counters and shift registers, state machines, and encoding and decoding logic. These logic functions can be constructed using the 16 Output Macrocells (OMC), 24 Input Macrocells (IMC), and the AND Array. The CPLD can also be used to generate External Chip Select (ECS0ECS2) signals. The AND Array is used to form product terms. These product terms are specified using PSDabel. An Input Bus consisting of 73 signals is connected to the PLDs. The signals are shown in Table 14. The Turbo Bit in PSD The PLDs in the PSD can minimize power consumption by switching off when inputs remain unchanged for an extended time of about 70ns. Resetting the Turbo Bit to '0' (Bit 3 of PMMR0) automatically places the PLDs into standby if no inputs are changing. Turning the Turbo mode off increases propagation delays while reducing power consumption. See the section entitled POWER MANAGEMENT, page 62 on how to set the Turbo Bit. Additionally, five bits are available in PMMR2 to block MCU control signals from entering the PLDs. This reduces power consumption and can be used only when these MCU control signals are not used in PLD logic equations. Each of the two PLDs has unique characteristics suited for its applications. They are described in the following sections. Table 14. DPLD and CPLD Inputs Input Source MCU Address Bus1 MCU Control Signals Reset Power-down Port A Input Macrocells Port B Input Macrocells Port C Input Macrocells Input Name A15-A0 CNTL2-CNTL0 RST PDN Number of Signals 16 3 PA7-PA0 Port D Inputs bs O let o ro P e uc d (s) t Ob - Page Register Macrocell AB Feedback Macrocell BC Feedback Secondary Flash memory Program Status Bit so te le ro P PB7-PB0 uc d s) t( 1 1 8 8 8 3 8 8 8 PC7-PC0 PD2-PD0 PGR7-PGR0 MCELLAB.FB7FB0 MCELLBC.FB7FB0 Ready/Busy 1 Note: 1. The address inputs are A19-A4 in 80C51XA mode. Doc ID 10552 Rev 3 33/109 bs O PLD INPUT BUS 24 INPUT MACROCELL & INPUT PORTS ro P DIRECT MACROCELL INPUT TO MCU DATA BUS te le I/O PORTS 34/109 8 Figure 13. PLD Diagram PSD813F2V, PSD854F2V let o PAGE REGISTER DATA BUS Pr e DECODE PLD PRIMARY FLASH MEMORY SELECTS SECONDARY NON-VOLATILE MEMORY SELECTS SRAM SELECT CSIOP SELECT PERIPHERAL SELECTS JTAG SELECT 4 1 1 2 1 8 du o 73 16 (s) ct OUTPUT MACROCELL FEEDBACK Doc ID 10552 Rev 3 CPLD 16 OUTPUT MACROCELL DIRECT MACROCELL ACCESS FROM MCU DATA BUS so Ob 24 INPUT MACROCELL (PORT A,B,C) 73 PT ALLOC. MACROCELL ALLOC. MCELLAB TO PORT A OR B MCELLBC TO PORT B OR C 8 8 3 EXTERNAL CHIP SELECTS TO PORT D uc d 3 PORT D INPUTS s) t( AI02872C PSD813F2V, PSD854F2V Decode PLD (DPLD) The DPLD, shown in Figure 14, is used for decoding the address for internal and external components. The DPLD can be used to generate the following decode signals: ■ 8 Sector Select (FS0-FS7) signals for the primary Flash memory (three product terms each) ■ 4 Sector Select (CSBOOT0-CSBOOT3) signals for the secondary Flash memory (three product terms each) Figure 14. DPLD Logic Array 3 3 3 3 (INPUTS) I /O PORTS (PORT A,B,C) MCELLAB.FB [7:0] (FEEDBACKS) MCELLBC.FB [7:0] (FEEDBACKS) PGR0 - PGR7 A[15:0] * PD[2:0] (ALE,CLKIN,CSI) PDN (APD OUTPUT) CNTRL[2:0] (READ/WRITE CONTROL SIGNALS) RESET RD_BSY (24) 3 (8) 3 (8) 3 (8) (16) (3) (1) (3) (1) (1) 3 CSBOOT 0 CSBOOT 1 CSBOOT 2 CSBOOT 3 ■ ■ ■ ■ 1 internal SRAM Select (RS0) signal (two product terms) 1 internal CSIOP Select (PSD Configuration Register) signal 1 JTAG Select signal (enables JTAG on Port C) 2 internal Peripheral Select signals (Peripheral I/O mode). FS0 FS1 bs O let o ro P e du ct (s) so Ob - te le 3 3 3 3 2 1 1 1 1 ro P FS2 FS3 FS4 FS5 FS6 FS7 uc d s) t( 8 PRIMARY FLASH MEMORY SECTOR SELECTS RS0 CSIOP PSEL0 PSEL1 JTAGSEL SRAM SELECT I/O DECODER SELECT PERIPHERAL I/O MODE SELECT AI02873D Doc ID 10552 Rev 3 35/109 PSD813F2V, PSD854F2V Complex PLD (CPLD) The CPLD can be used to implement system logic functions, such as loadable counters and shift registers, system mailboxes, handshaking protocols, state machines, and random logic. The CPLD can also be used to generate three External Chip Select (ECS0-ECS2), routed to Port D. Although External Chip Select (ECS0-ECS2) can be produced by any Output Macrocell (OMC), these three External Chip Select (ECS0-ECS2) on Port D do not consume any Output Macrocells (OMC). As shown in Figure 13., page 34, the CPLD has the following blocks: ■ 24 Input Macrocells (IMC) ■ 16 Output Macrocells (OMC) ■ Macrocell Allocator Figure 15. Macrocell and I/O Port PLD INPUT BUS PRODUCT TERMS FROM OTHER MACROCELLS MCU ADDRESS / DATA BUS Product Term Allocator ■ AND Array capable of generating up to 137 product terms ■ Four I/O Ports. Each of the blocks are described in the sections that follow. The Input Macrocells (IMC) and Output Macrocells (OMC) are connected to the PSD internal data bus and can be directly accessed by the MCU. This enables the MCU software to load data into the Output Macrocells (OMC) or read data from both the Input and Output Macrocells (IMC and OMC). This feature allows efficient implementation of system logic and eliminates the need to connect the data bus to the AND Array as required in most standard PLD macrocell architectures. ■ TO OTHER I/O PORTS CPLD MACROCELLS PT PRESET PRODUCT TERM ALLOCATOR MCU DATA IN MCU LOAD DATA LOAD CONTROL I/O PORTS LATCHED ADDRESS OUT AND ARRAY UP TO 10 PRODUCT TERMS PR DI LD PT CLOCK D/T MUX MUX POLARITY SELECT Q PLD INPUT BUS GLOBAL CLOCK CLOCK SELECT PT CLEAR D/T/JK FF SELECT CK O bs let o Pr e PT OUTPUT ENABLE (OE) du o (s) ct CL COMB. /REG SELECT Ob MACROCELL TO I/O PORT ALLOC. MACROCELL OUT TO MCU so te le DATA WR PDR D ro P Q INPUT uc d s) t( I/O PIN MUX CPLD OUTPUT SELECT CPLD OUTPUT D WR Q DIR REG. MACROCELL FEEDBACK I/O PORT INPUT INPUT MACROCELLS MUX QD PT INPUT LATCH GATE/CLOCK MUX ALE/AS QD G AI02874 36/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Output Macrocell (OMC) Eight of the Output Macrocells (OMC) are connected to Ports A and B pins and are named as McellAB0-McellAB7. The other eight macrocells are connected to Ports B and C pins and are named as McellBC0-McellBC7. If an McellAB output is not assigned to a specific pin in PSDabel, the Macrocell Allocator block assigns it to either Port A or B. The same is true for a McellBC output on Port B or C. Table 15 shows the macrocells and port assignment. The Output Macrocell (OMC) architecture is shown in Figure 16., page 39. As shown in the figure, there are native product terms available from the AND Array, and borrowed product terms available (if unused) from other Output Macrocells (OMC). The polarity of the product term is con- trolled by the XOR gate. The Output Macrocell (OMC) can implement either sequential logic, using the flip-flop element, or combinatorial logic. The multiplexer selects between the sequential or combinatorial logic outputs. The multiplexer output can drive a port pin and has a feedback path to the AND Array inputs. The flip-flop in the Output Macrocell (OMC) block can be configured as a D, T, JK, or SR type in the PSDabel program. The flip-flop’s clock, preset, and clear inputs may be driven from a product term of the AND Array. Alternatively, CLKIN (PD1) can be used for the clock input to the flip-flop. The flip-flop is clocked on the rising edge of CLKIN (PD1). The preset and clear are active High inputs. Each clear input can use up to two product terms. Table 15. Output Macrocell Port and Data Bit Assignments Output Macrocell McellAB0 McellAB1 McellAB2 McellAB3 McellAB4 McellAB5 McellAB6 McellAB7 McellBC0 McellBC1 McellBC2 McellBC3 McellBC4 McellBC5 McellBC6 Port Assignment Port A0, B0 Port A1, B1 Port A2, B2 Port A3, B3 Port A4, B4 Port A5, B5 Port A6, B6 Port A7, B7 Port B0, C0 Port B1, C1 Port B2, C2 Native Product Terms 3 3 3 3 3 3 3 Maximum Borrowed Product Terms 6 6 Data Bit for Loading or Reading O bs McellBC7 let o ro P e Port B3, C3 Port B4, C4 Port B5, C5 Port B6, C6 Port B7, C7 du ct (s) 4 4 4 4 4 4 4 4 3 so Ob - eP let 6 6 6 6 6 6 5 5 5 5 6 6 6 6 ro uc d D0 D1 D2 D3 D4 D5 D6 D7 s) t( D0 D1 D2 D3 D4 D5 D6 D7 Doc ID 10552 Rev 3 37/109 PSD813F2V, PSD854F2V Product Term Allocator The CPLD has a Product Term Allocator. The PSDabel compiler uses the Product Term Allocator to borrow and place product terms from one macrocell to another. The following list summarizes how product terms are allocated: ■ McellAB0-McellAB7 all have three native product terms and may borrow up to six more ■ McellBC0-McellBC3 all have four native product terms and may borrow up to five more ■ McellBC4-McellBC7 all have four native product terms and may borrow up to six more. Each macrocell may only borrow product terms from certain other macrocells. Product terms already in use by one macrocell are not available for another macrocell. If an equation requires more product terms than are available to it, then “external” product terms are required, which consume other Output Macrocells (OMC). If external product terms are used, extra delay is added for the equation that required the extra product terms. This is called product term expansion. PSDsoft Express performs this expansion as needed. Loading and Reading the Output Macrocells (OMC) The Output Macrocells (OMC) block occupies a memory location in the MCU address space, as defined by the CSIOP block (see the section entitled I/O PORTS, page 51). The flip-flops in each of the 16 Output Macrocells (OMC) can be loaded from the data bus by a MCU. Loading the Output Macrocells (OMC) with data from the MCU takes priority over internal functions. As such, the preset, clear, and clock inputs to the flip-flop can be overridden by the MCU. The ability to load the flip-flops and read them back is useful in such applications as loadable counters and shift registers, mailboxes, and handshaking protocols. bs O let o Pr e du o (s) ct so Ob - Data can be loaded to the Output Macrocells (OMC) on the trailing edge of Write Strobe (WR, CNTL0) (edge loading) or during the time that Write Strobe (WR, CNTL0) is active (level loading). The method of loading is specified in PSDsoft Express Configuration. The OMC Mask Register There is one Mask Register for each of the two groups of eight Output Macrocells (OMC). The Mask Registers can be used to block the loading of data to individual Output Macrocells (OMC). The default value for the Mask Registers is 00h, which allows loading of the Output Macrocells (OMC). When a given bit in a Mask Register is set to a 1, the MCU is blocked from writing to the associated Output Macrocells (OMC). For example, suppose McellAB0-McellAB3 are being used for a state machine. You would not want a MCU write to McellAB to overwrite the state machine registers. Therefore, you would want to load the Mask Register for McellAB (Mask Macrocell AB) with the value 0Fh. The Output Enable of the OMC The Output Macrocells (OMC) block can be connected to an I/O port pin as a PLD output. The output enable of each port pin driver is controlled by a single product term from the AND Array, ORed with the Direction Register output. The pin is enabled upon Power-up if no output enable equation is defined and if the pin is declared as a PLD output in PSDsoft Express. If the Output Macrocell (OMC) output is declared as an internal node and not as a port pin output in the PSDabel file, the port pin can be used for other I/O functions. The internal node feedback can be routed as an input to the AND Array. te le ro P uc d s) t( 38/109 Doc ID 10552 Rev 3 AND ARRAY bs O MASK REG. MACROCELL CS INTERNAL DATA BUS D [ 7:0] RD Figure 16. CPLD Output Macrocell let o Pr e du o PT ALLOCATOR DIRECTION REGISTER ENABLE (.OE) PRESET(.PR) COMB/REG SELECT WR PT DIN PR MUX LD Q IN CLR PROGRAMMABLE FF (D / T/JK /SR) PORT DRIVER MACROCELL ALLOCATOR I/O PIN (s) ct PT PLD INPUT BUS Doc ID 10552 Rev 3 PT POLARITY SELECT CLEAR (.RE) so Ob te le MUX PT CLK CLKIN FEEDBACK (.FB) PORT INPUT ro P uc d s) t( INPUT MACROCELL AI02875B PSD813F2V, PSD854F2V 39/109 PSD813F2V, PSD854F2V Input Macrocells (IMC) The CPLD has 24 Input Macrocells (IMC), one for each pin on Ports A, B, and C. The architecture of the Input Macrocells (IMC) is shown in Figure 17., page 41. The Input Macrocells (IMC) are individually configurable, and can be used as a latch, register, or to pass incoming Port signals prior to driving them onto the PLD input bus. The outputs of the Input Macrocells (IMC) can be read by the MCU through the internal data bus. The enable for the latch and clock for the register are driven by a multiplexer whose inputs are a product term from the CPLD AND Array or the MCU Address Strobe (ALE/AS). Each product term output is used to latch or clock four Input Macrocells (IMC). Port inputs 3-0 can be controlled by one product term and 7-4 by another. Configurations for the Input Macrocells (IMC) are specified by equations written in PSDabel (see Application Note AN1171). Outputs of the Input Macrocells (IMC) can be read by the MCU via the IMC buffer. See the section entitled I/O PORTS, page 51. Input Macrocells (IMC) can use Address Strobe (ALE/AS, PD0) to latch address bits higher than A15. Any latched addresses are routed to the PLDs as inputs. Input Macrocells (IMC) are particularly useful with handshaking communication applications where two processors pass data back and forth through a common mailbox. Figure 18., page 42 shows a typical configuration where the Master MCU writes to the Port A Data Out Register. This, in turn, can be read by the Slave MCU via the activation of the “Slave-Read” output enable product term. The Slave can also write to the Port A Input Macrocells (IMC) and the Master can then read the Input Macrocells (IMC) directly. Note that the “Slave-Read” and “Slave-Wr” signals are product terms that are derived from the Slave MCU inputs Read Strobe (RD, CNTL1), Write Strobe (WR, CNTL0), and Slave_CS. bs O let o Pr e du o (s) ct so Ob - te le ro P uc d s) t( 40/109 Doc ID 10552 Rev 3 AND ARRAY bs O Figure 17. Input Macrocell let o Pr e INTERNAL DATA BUS D [ 7:0] INPUT MACROCELL _ RD DIRECTION REGISTER du o ENABLE ( .OE ) (s) ct PT OUTPUT MACROCELLS BC AND MACROCELL AB PT I/O PIN PLD INPUT BUS Doc ID 10552 Rev 3 FEEDBACK PORT DRIVER so Ob MUX Q D MUX D FF Q D G PT ALE/AS te le ro P LATCH INPUT MACROCELL uc d s) t( AI02876B PSD813F2V, PSD854F2V 41/109 bs O 42/109 PSD813F2V, PSD854F2V let o Pr e PSD SLAVE – CS RD WR SLAVE – READ PORT A DATA OUT REGISTER CPLD D MCU -WR Q D [ 7:0] PORT A MASTER MCU SLAVE– WR PORT A INPUT MACROCELL Q D D [ 7:0] du o MCU - RD MCU - WR (s) ct Figure 18. Handshaking Communication Using Input Macrocells SLAVE MCU Doc ID 10552 Rev 3 so Ob te le MCU -RD ro P uc d s) t( AI02877C PSD813F2V, PSD854F2V MCU BUS INTERFACE The “no-glue logic” MCU Bus Interface block can be directly connected to most popular MCUs and their control signals. Key 8-bit MCUs, with their Table 16. MCUs and their Control Signals MCU 8031 80C51XA 80C251 80C251 80198 68HC11 68HC912 Z80 Z8 68330 M37702M2 Data Bus Width 8 8 8 8 8 8 8 8 8 8 8 CNTL0 WR WR WR WR WR R/W R/W WR R/W R/W R/W CNTL1 RD RD PSEN RD RD E E RD DS DS E CNTL2 PSEN PSEN PC7 PD02 ADIO0 A0 A4 A0 A0 A0 A0 A0 PA3-PA0 (Note 1) A3-A0 (Note 1) (Note 1) (Note 1) (Note 1) PA7-PA3 (Note 1) (Note 1) (Note 1) (Note 1) (Note 1) bus types and control signals, are shown in Table 16. The interface type is specified using the PSDsoft Express Configuration. (Note 1) ALE (Note 1) ALE (Note 1) (Note 1) ALE PSEN (Note 1) ALE (Note 1) (Note 1) ALE (Note 1) (Note 1) AS (Note 1) DBE AS (Note 1) (Note 1) (Note 1) A0 (Note 1) (Note 1) AS (Note 1) (Note 1) AS (Note 1) (Note 1) ALE Note: 1. Unused CNTL2 pin can be configured as CPLD input. Other unused pins (PC7, PD0, PA3-0) can be configured for other I/O functions. 2. ALE/AS input is optional for MCUs with a non-multiplexed bus bs O let o Pr e du o (s) ct so Ob - te le ro P A0 A0 A0 uc d D3-D0 (Note 1) (Note 1) D3-D0 (Note 1) s) t( D7-D4 D7-D4 (Note 1) (Note 1) (Note 1) (Note 1) Doc ID 10552 Rev 3 43/109 PSD813F2V, PSD854F2V PSD Interface to a Multiplexed 8-Bit Bus Figure 19 shows an example of a system using a MCU with an 8-bit multiplexed bus and a PSD. The ADIO port on the PSD is connected directly to the MCU address/data bus. Address Strobe (ALE/AS, PD0) latches the address signals internally. Latched addresses can be brought out to Port A or B. The PSD drives the ADIO data bus only when one of its internal resources is accessed and Read Strobe (RD, CNTL1) is active. Should the system address bus exceed sixteen bits, Ports A, B, C, or D may be used as additional address inputs. Figure 19. An Example of a Typical 8-bit Multiplexed Bus Interface MCU AD [ 7:0] PSD PORT A A [ 7: 0] (OPTIONAL) A[ 15:8] ADIO PORT PORT B WR RD BHE WR (CNTRL0) RD (CNTRL1) BHE (CNTRL2) RST ALE ALE (PD0) A [ 15: 8] PORT C RESET bs O let o Pr e du o (s) ct so Ob - PORT D te le ro P uc d (OPTIONAL) s) t( AI02878C 44/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V PSD Interface to a Non-Multiplexed 8-Bit Bus Figure 20 shows an example of a system using a MCU with an 8-bit non-multiplexed bus and a PSD. The address bus is connected to the ADIO Port, and the data bus is connected to Port A. Port A is in tri-state mode when the PSD is not accessed by the MCU. Should the system address bus exceed sixteen bits, Ports B, C, or D may be used for additional address inputs. Data Byte Enable Reference MCUs have different data byte orientations. Table 17 shows how the PSD interprets byte/word operations in different bus WRITE configurations. Even-byte refers to locations with address A0 equal to '0' and odd byte as locations with A0 equal to ’1.’ MCU Bus Interface Examples Figure 21 through 25 show examples of the basic connections between the PSD and some popular MCUs. The PSD Control input pins are labeled as to the MCU function for which they are configured. The MCU bus interface is specified using the PSDsoft Express Configuration. Table 17. Eight-Bit Data Bus BHE X X A0 0 1 D7-D0 Even Byte Odd Byte Figure 20. An Example of a Typical 8-bit Non-Multiplexed Bus Interface MCU D [ 7:0] PSD PORT A ADIO PORT A [ 15:0] WR RD BHE ALE RESET bs O let o Pr e du o (s) ct Ob RST ALE (PD0) PORT D WR (CNTRL0) RD (CNTRL1) BHE (CNTRL2) so te le PORT B PORT C ro P D [ 7:0] uc d s) t( A[ 23:16] (OPTIONAL) AI02879C Doc ID 10552 Rev 3 45/109 PSD813F2V, PSD854F2V 80C31 Figure 21 shows the bus interface for the 80C31, which has an 8-bit multiplexed address/data bus. The lower address byte is multiplexed with the data bus. The MCU control signals Program Select Enable (PSEN, CNTL2), Read Strobe (RD, Figure 21. Interfacing the PSD with an 80C31 AD7-AD0 AD[ 7:0 ] CNTL1), and Write Strobe (WR, CNTL0) may be used for accessing the internal memory and I/O Ports blocks. Address Strobe (ALE/AS, PD0) latches the address. 80C31 31 19 18 9 12 13 14 15 1 2 3 4 5 6 7 8 EA/VP X1 X2 RESET INT0 INT1 T0 T1 P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 P0.0 P0.1 P0.2 P0.3 P0.4 P0.5 P0.6 P0.7 P2.0 P2.1 P2.2 P2.3 P2.4 P2.5 P2.6 P2.7 RD WR PSEN ALE/P TXD RXD 39 38 37 36 35 34 33 32 21 22 23 24 25 26 27 28 17 16 29 30 11 10 AD0 AD1 AD2 AD3 AD4 AD5 AD6 AD7 A8 A9 A10 A11 A12 A13 A14 A15 RD WR PSEN ALE AD0 AD1 AD2 AD3 AD4 AD5 AD6 AD7 30 31 32 33 34 35 36 37 PSD ADIO0 ADIO1 ADIO2 ADIO3 ADIO4 ADIO5 ADIO6 ADIO7 PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 29 28 27 25 24 23 22 21 RESET 39 40 41 42 43 44 45 46 ADIO8 ADIO9 ADIO10 ADIO11 ADIO12 ADIO13 ADIO14 ADIO15 47 50 49 RESET RESET bs O let o Pr e du o (s) ct Ob - so te le 10 9 8 48 CNTL0 (WR) CNTL1(RD) ro P uc d PC0 PC1 PC2 PC3 PC4 PC5 PC6 PC7 PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 7 6 5 4 3 2 52 51 s) t( CNTL2 (PSEN) PD0-ALE PD1 PD2 RESET 20 19 18 17 14 13 12 11 AI02880C 46/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V 80C251 The Intel 80C251 MCU features a user-configurable bus interface with four possible bus configurations, as shown in Table 18., page 48. The first configuration is 80C31-compatible, and the bus interface to the PSD is identical to that shown in Figure 21., page 46. The second and third configurations have the same bus connection as shown in Figure 22. There is only one Read Strobe (PSEN) connected to CNTL1 on the PSD. The A16 connection to PA0 allows for a larger address input to the PSD. The fourth configuration is shown in Figure 23., page 48. Read Strobe (RD) is connected to CNTL1 and Program Select Enable (PSEN) is connected to CNTL2. The 80C251 has two major operating modes: Page mode and Non-page mode. In Non-page mode, the data is multiplexed with the lower address byte, and Address Strobe (ALE/AS, PD0) is active in every bus cycle. In Page mode, data (D7D0) is multiplexed with address (A15-A8). In a bus cycle where there is a Page hit, Address Strobe (ALE/AS, PD0) is not active and only addresses (A7-A0) are changing. The PSD supports both modes. In Page Mode, the PSD bus timing is identical to Non-Page Mode except the address hold time and setup time with respect to Address Strobe (ALE/AS, PD0) is not required. The PSD access time is measured from address (A7-A0) valid to data in valid. Figure 22. Interfacing the PSD with the 80C251, with One READ Input 80C251SB 2 3 4 5 6 7 8 9 21 20 11 13 14 15 16 17 PSD P0.0 P0.1 P0.2 P0.3 P0.4 P0.5 P0.6 P0.7 P2.0 P2.1 P2.2 P2.3 P2.4 P2.5 P2.6 P2.7 43 42 41 40 39 38 37 36 24 25 26 27 28 29 30 31 A0 A1 A2 A3 A4 A5 A6 A7 AD8 AD9 AD10 AD11 AD12 AD13 AD14 AD15 A0 A1 A2 A3 A4 A5 A6 A7 30 31 32 33 34 35 36 37 P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 X1 X2 P3.0/RXD P3.1/TXD P3.2/INT0 P3.3/INT1 P3.4/T0 P3.5/T1 RST EA RESET 10 ALE PSEN WR RD/A16 33 32 18 19 35 RESET bs O Note: 1. The A16 and A17 connections are optional. 2. In non-Page-Mode, AD7-AD0 connects to ADIO7-ADIO0. let o ro P e uc d RESET (s) t ALE RD WR A16 Ob - AD8 AD9 AD10 AD11 AD12 AD13 AD14 AD15 so te le 39 40 41 42 43 44 45 46 47 50 49 ADIO0 ADIO1 ADIO2 ADIO3 ADIO4 ADIO5 ADIO6 ADIO7 ro P uc d PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 s) t( 29 28 27 25 24 23 22 21 A161 A171 ADIO8 ADIO9 ADIO10 ADIO11 ADIO12 ADIO13 ADIO14 ADIO15 CNTL0 ( WR) CNTL1( RD) 7 6 5 4 3 2 52 51 CNTL 2(PSEN) PD0-ALE PD1 PD2 RESET 10 9 8 PC0 PC1 PC2 PC3 PC4 PC5 PC6 PC7 20 19 18 17 14 13 12 11 48 AI02881C Doc ID 10552 Rev 3 47/109 PSD813F2V, PSD854F2V Figure 23. Interfacing the PSD with the 80C251, with RD and PSEN Inputs 80C251SB 2 3 4 5 6 7 8 9 21 20 11 13 14 15 16 17 PSD P0.0 P0.1 P0.2 P0.3 P0.4 P0.5 P0.6 P0.7 P2.0 P2.1 P2.2 P2.3 P2.4 P2.5 P2.6 P2.7 43 42 41 40 39 38 37 36 24 25 26 27 28 29 30 31 A0 A1 A2 A3 A4 A5 A6 A7 AD8 AD9 AD10 AD11 AD12 AD13 AD14 AD15 A0 A1 A2 A3 A4 A5 A6 A7 30 31 32 33 34 35 36 37 P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 X1 X2 P3.0/RXD P3.1/TXD P3.2/INT0 P3.3/INT1 P3.4/T0 P3.5/T1 RST EA ADIO0 ADIO1 ADIO2 ADIO3 ADIO4 ADIO5 ADIO6 ADIO7 PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 29 28 27 25 24 23 22 21 AD8 AD9 AD10 AD11 AD12 AD13 AD14 AD15 39 40 41 42 43 44 45 46 47 50 49 ADIO8 ADIO9 ADIO10 ADIO11 ADIO12 ADIO13 ADIO14 ADIO15 CNTL0 ( WR) CNTL1( RD) CNTL 2(PSEN) PD0-ALE PD1 PD2 RESET 7 6 5 4 3 2 52 51 RESET 10 ALE PSEN WR RD/A16 33 32 18 19 ALE RD WR PSEN 35 10 9 8 RESET RESET 48 Table 18. 80C251 Configurations Configuration 80C251 READ/WRITE Pins WR RD PSEN WR PSEN only Connecting to PSD Pins CNTL0 CNTL1 CNTL2 1 2 3 4 bs O let o Pr e WR PSEN only WR RD PSEN du o (s) ct so Ob CNTL0 CNTL1 CNTL0 CNTL1 CNTL0 CNTL1 CNTL2 te le ro P uc d s) t( AI02882C PC0 PC1 PC2 PC3 PC4 PC5 PC6 PC7 20 19 18 17 14 13 12 11 Page Mode Non-Page Mode, 80C31 compatible A7A0 multiplex with D7-D0 Non-Page Mode A7-A0 multiplex with D7-D0 Page Mode A15-A8 multiplex with D7-D0 Page Mode A15-A8 multiplex with D7-D0 48/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V 80C51XA The Philips 80C51XA MCU family supports an 8or 16-bit multiplexed bus that can have burst cycles. Address bits (A3-A0) are not multiplexed, while (A19-A4) are multiplexed with data bits (D15-D0) in 16-bit mode. In 8-bit mode, (A11-A4) are multiplexed with data bits (D7-D0). The 80C51XA can be configured to operate in eight-bit data mode (as shown in Figure 24). The 80C51XA improves bus throughput and performance by executing burst cycles for code fetch- es. In Burst Mode, address A19-A4 are latched internally by the PSD, while the 80C51XA changes the A3-A0 signals to fetch up to 16 bytes of code. The PSD access time is then measured from address A3-A0 valid to data in valid. The PSD bus timing requirement in Burst Mode is identical to the normal bus cycle, except the address setup and hold time with respect to Address Strobe (ALE/AS, PD0) does not apply. Figure 24. Interfacing the PSD with the 80C51X, 8-bit Data Bus 80C51XA 21 20 XTAL1 XTAL2 A0/WRH A1 A2 A3 A4D0 A5D1 A6D2 A7D3 A8D4 A9D5 A10D6 A11D7 A12D8 A13D9 A14D10 A15D11 A16D12 A17D13 A18D14 A19D15 2 3 4 5 43 42 41 40 39 38 37 36 24 25 26 27 28 29 30 31 A0 A1 A2 A3 A4D0 A5D1 A6D2 A7D3 A8D4 A9D5 A10D6 A11D7 A12 A13 A14 A15 A16 A17 A18 A19 A4D0 A5D1 A6D2 A7D3 A8D4 A9D5 A10D6 A11D7 30 31 32 33 34 35 36 37 PSD ADIO0 ADIO1 ADIO2 ADIO3 AD104 AD105 ADIO6 ADIO7 PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 29 28 27 25 24 23 22 21 11 13 6 7 RXD0 TXD0 RXD1 TXD1 9 8 16 T2EX T2 T0 RESET 10 14 15 RST INT0 INT1 35 17 EA/WAIT BUSW PSEN RD WRL ALE 32 19 18 33 PSEN bs O let o od Pr e ct u (s) RD WR ALE so Ob - A12 A13 A14 A15 A16 A17 A18 A19 te le 47 50 49 10 8 9 48 39 ADIO8 40 ADIO9 41 ADIO10 42 ADIO11 43 AD1012 44 AD1013 45 ADIO14 46 ADIO15 ro P uc d PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 PC0 PC1 PC2 PC3 PC4 PC5 PC6 PC7 s) t( A0 A1 A2 A3 7 6 5 4 3 2 52 51 CNTL0 (WR) CNTL1(RD) CNTL 2(PSEN) PD0-ALE PD1 PD2 RESET 20 19 18 17 14 13 12 11 RESET AI02883C Doc ID 10552 Rev 3 49/109 PSD813F2V, PSD854F2V 68HC11 Figure 25 shows a bus interface to a 68HC11 where the PSD is configured in 8-bit multiplexed mode with E and R/W settings. The DPLD can be Figure 25. Interfacing the PSD with a 68HC11 AD7-AD0 AD7-AD0 used to generate the READ and WR signals for external devices. PSD 68HC11 8 7 RESET 17 19 18 2 34 33 32 XT EX RESET IRQ XIRQ MODB PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 31 30 29 28 27 42 41 40 39 38 37 36 35 9 10 11 12 13 14 15 16 20 21 22 23 24 25 3 5 4 6 AD0 AD1 AD2 AD3 AD4 AD5 AD6 AD7 AD0 AD1 AD2 AD3 AD4 AD5 AD6 AD7 A8 A9 A10 A11 A12 A13 A14 A15 30 31 32 33 34 35 36 37 39 40 41 42 43 44 45 46 ADIO0 ADIO1 ADIO2 ADIO3 AD104 AD105 ADIO6 ADIO7 ADIO8 ADIO9 ADIO10 ADIO11 AD1012 AD1013 ADIO14 ADIO15 PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 29 28 27 25 24 23 22 21 7 6 5 4 3 2 52 51 PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 PC0 PC1 PC2 PC3 PC4 PC5 PC6 PC7 PD0 PD1 PD2 PD3 PD4 PD5 MODA 43 44 45 46 47 48 49 50 52 51 PE0 PE1 PE2 PE3 PE4 PE5 PE6 PE7 VRH VRL bs O let o Pr e od uc E AS R/W (s) t E RESET so Ob - eP let 49 10 9 8 48 47 50 CNTL0 (R _W) CNTL1(E) CNTL 2 PD0 – AS PD1 PD2 RESET ro uc d PC0 PC1 PC2 PC3 PC4 PC5 PC6 PC7 PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 s) t( 20 19 18 17 14 13 12 11 AS R/W AI02884C 50/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V I/O PORTS There are four programmable I/O ports: Ports A, B, C, and D. Each of the ports is eight bits except Port D, which is 3 bits. Each port pin is individually user configurable, thus allowing multiple functions per port. The ports are configured using PSDsoft Express Configuration or by the MCU writing to onchip registers in the CSIOP space. The topics discussed in this section are: ■ General Port architecture ■ Port operating modes ■ Port Configuration Registers (PCR) ■ Port Data Registers ■ Individual Port functionality. General Port Architecture The general architecture of the I/O Port block is shown in Figure 26., page 52. Individual Port architectures are shown in Figure 28., page 58 to Figure 31., page 61. In general, once the purpose for a port pin has been defined, that pin is no longer available for other purposes. Exceptions are noted. As shown in Figure 26., page 52, the ports contain an output multiplexer whose select signals are driven by the configuration bits in the Control Registers (Ports A and B only) and PSDsoft Express Configuration. Inputs to the multiplexer include the following: ■ Output data from the Data Out register ■ Latched address outputs ■ CPLD macrocell output ■ External Chip Select (ECS0-ECS2) from the CPLD. The Port Data Buffer (PDB) is a tri-state buffer that allows only one source at a time to be read. The Port Data Buffer (PDB) is connected to the Internal Data Bus for feedback and can be read by the MCU. The Data Out and macrocell outputs, Direction and Control Registers, and port pin input are all connected to the Port Data Buffer (PDB). The Port pin’s tri-state output driver enable is controlled by a two input OR gate whose inputs come from the CPLD AND Array enable product term and the Direction Register. If the enable product term of any of the Array outputs are not defined and that port pin is not defined as a CPLD output in the PSDabel file, then the Direction Register has sole control of the buffer that drives the port pin. The contents of these registers can be altered by the MCU. The Port Data Buffer (PDB) feedback path allows the MCU to check the contents of the registers. Ports A, B, and C have embedded Input Macrocells (IMC). The Input Macrocells (IMC) can be configured as latches, registers, or direct inputs to the PLDs. The latches and registers are clocked by Address Strobe (ALE/AS, PD0) or a product term from the PLD AND Array. The outputs from the Input Macrocells (IMC) drive the PLD input bus and can be read by the MCU. See the section entitled Input Macrocell, page 41. Port Operating Modes The I/O Ports have several modes of operation. Some modes can be defined using PSDabel, some by the MCU writing to the Control Registers in CSIOP space, and some by both. The modes that can only be defined using PSDsoft Express must be programmed into the device and cannot be changed unless the device is reprogrammed. The modes that can be changed by the MCU can be done so dynamically at run-time. The PLD I/O, Data Port, Address Input, and Peripheral I/O modes are the only modes that must be defined before programming the device. All other modes can be changed by the MCU at run-time. See Application Note AN1171 for more detail. Table 19., page 53 summarizes which modes are available on each port. Table 22., page 56 shows how and where the different modes are configured. Each of the port operating modes are described in the following sections. bs O let o Pr e du o (s) ct so Ob - te le ro P uc d s) t( Doc ID 10552 Rev 3 51/109 PSD813F2V, PSD854F2V Figure 26. General I/O Port Architecture DATA OUT REG. D WR ADDRESS ALE D G Q ADDRESS OUTPUT MUX PORT PIN Q DATA OUT MACROCELL OUTPUTS EXT CS INTERNAL DATA BUS READ MUX P D B DATA IN OUTPUT SELECT CONTROL REG. D WR DIR REG. D WR ENABLE PRODUCT TERM (.OE) Q Q ENABLE OUT CPLD-INPUT bs O let o Pr e du o (s) ct Ob - so te le ro P uc d s) t( INPUT MACROCELL AI02885 52/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V MCU I/O Mode In the MCU I/O mode, the MCU uses the I/O Ports block to expand its own I/O ports. By setting up the CSIOP space, the ports on the PSD are mapped into the MCU address space. The addresses of the ports are listed in Table 7., page 18. A port pin can be put into MCU I/O mode by writing a 0 to the corresponding bit in the Control Register. The MCU I/O direction may be changed by writing to the corresponding bit in the Direction Register, or by the output enable product term. See the section entitled Peripheral I/O Mode, page 55. When the pin is configured as an output, the content of the Data Out Register drives the pin. When configured as an input, the MCU can read the port input through the Data In buffer. See Figure 26., page 52. Ports C and D do not have Control Registers, and are in MCU I/O mode by default. They can be used for PLD I/O if equations are written for them in PSDabel. PLD I/O Mode The PLD I/O Mode uses a port as an input to the CPLD’s Input Macrocells (IMC), and/or as an output from the CPLD’s Output Macrocells (OMC). The output can be tri-stated with a control signal. This output enable control signal can be defined by a product term from the PLD, or by resetting the Table 19. Port Operating Modes Port Mode MCU I/O PLD I/O McellAB Outputs McellBC Outputs Additional Ext. CS Outputs PLD Inputs Address Out Address In Data Port Yes Yes No No Yes Port A corresponding bit in the Direction Register to ’0.’ The corresponding bit in the Direction Register must not be set to '1' if the pin is defined for a PLD input signal in PSDabel. The PLD I/O mode is specified in PSDabel by declaring the port pins, and then writing an equation assigning the PLD I/ O to a port. Address Out Mode For MCUs with a multiplexed address/data bus, Address Out Mode can be used to drive latched addresses on to the port pins. These port pins can, in turn, drive external devices. Either the output enable or the corresponding bits of both the Direction Register and Control Register must be set to a 1 for pins to use Address Out Mode. This must be done by the MCU at run-time. See Table 21 for the address output pin assignments on Ports A and B for various MCUs. For non-multiplexed 8-bit bus mode, address signals (A7-A0) are available to Port B in Address Out Mode. Note: Do not drive address signals with Address Out Mode to an external memory device if it is intended for the MCU to Boot from the external device. The MCU must first Boot from PSD memory so the Direction and Control register bits can be set. Yes bs O Peripheral I/O JTAG ISP let o Pr e Yes (A7 – 0) du o (s) ct so Ob Port B te le Yes No Yes No Yes No Yes No No Yes1 ro P uc d s) t( Port C Yes No No Yes Yes No Yes No No No Port D Yes Yes No Yes Yes (A7 – 0) or (A15 – 8) Yes No Yes Yes (D7 – 0) Yes No No No Note: 1. Can be multiplexed with other I/O functions. Doc ID 10552 Rev 3 53/109 PSD813F2V, PSD854F2V Table 20. Port Operating Mode Settings Mode Defined in PSDabel Defined in PSD Configuration Control Register Setting 0 N/A N/A 1 N/A N/A N/A Direction Register Setting VM Register Setting JTAG Enable MCU I/O PLD I/O Data Port (Port A) Address Out (Port A,B) Address In (Port A,B,C,D) Peripheral I/O (Port A) JTAG ISP (Note 3) Declare pins only Logic equations N/A Declare pins only Logic for equation Input Macrocells Logic equations (PSEL0 & 1) JTAGSEL N/A1 N/A Specify bus type N/A N/A N/A JTAG Configuration 1 = output, 0 = input N/A (Note 2) (Note 2) N/A 1 (Note 2) N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A PIO bit = 1 N/A N/A JTAG_Enable Note: 1. N/A = Not Applicable 2. The direction of the Port A,B,C, and D pins are controlled by the Direction Register ORed with the individual output enable product term (.oe) from the CPLD AND Array. 3. Any of these three methods enables the JTAG pins on Port C. Table 21. I/O Port Latched Address Output Assignments MCU 8051XA (8-Bit) 80C251 (Page Mode) All Other 8-Bit Multiplexed 8-Bit Non-Multiplexed Bus Port A (PA3-PA0) N/A1 N/A Address a3-a0 N/A Port A (PA7-PA4) Address a7-a4 N/A Note: 1. N/A = Not Applicable. bs O let o Pr e du o (s) ct N/A Address a7-a4 Ob - so Address a11-a8 Address a11-a8 te le Port B (PB3-PB0) ro P uc d N/A s) t( Port B (PB7-PB4) Address a15-a12 Address a7-a4 Address a7-a4 Address a3-a0 Address a3-a0 54/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Address In Mode For MCUs that have more than 16 address signals, the higher addresses can be connected to Port A, B, C, and D. The address input can be latched in the Input Macrocell (IMC) by Address Strobe (ALE/AS, PD0). Any input that is included in the DPLD equations for the SRAM, or primary or secondary Flash memory is considered to be an address input. Data Port Mode Port A can be used as a data bus port for a MCU with a non-multiplexed address/data bus. The Data Port is connected to the data bus of the MCU. The general I/O functions are disabled in Port A if the port is configured as a Data Port. Figure 27. Peripheral I/O Mode RD PSEL0 PSEL PSEL1 D0 - D7 DATA BUS Peripheral I/O Mode Peripheral I/O mode can be used to interface with external peripherals. In this mode, all of Port A serves as a tri-state, bi-directional data buffer for the MCU. Peripheral I/O Mode is enabled by setting Bit 7 of the VM Register to a ’1.’ Figure 27 shows how Port A acts as a bi-directional buffer for the MCU data bus if Peripheral I/O Mode is enabled. An equation for PSEL0 and/or PSEL1 must be written in PSDabel. The buffer is tri-stated when PSEL0 or PSEL1 is not active. VM REGISTER BIT 7 WR bs O let o Pr e du o (s) ct so Ob - te le ro P uc d s) t( PA0 - PA7 AI02886 Doc ID 10552 Rev 3 55/109 PSD813F2V, PSD854F2V JTAG In-System Programming (ISP) Port C is JTAG compliant, and can be used for InSystem Programming (ISP). You can multiplex JTAG operations with other functions on Port C because In-System Programming (ISP) is not performed in normal Operating mode. For more information on the JTAG Port, see the section entitled PROGRAMMING IN-CIRCUIT USING THE JTAG SERIAL INTERFACE, page 69. Port Configuration Registers (PCR) Each Port has a set of Port Configuration Registers (PCR) used for configuration. The contents of the registers can be accessed by the MCU through normal READ/WRITE bus cycles at the addresses given in Table 7., page 18. The addresses in Table 7 are the offsets in hexadecimal from the base of the CSIOP register. The pins of a port are individually configurable and each bit in the register controls its respective pin. For example, Bit 0 in a register refers to Bit 0 of its port. The three Port Configuration Registers (PCR), shown in Table 22, are used for setting the Port configurations. The default Power-up state for each register in Table 22 is 00h. Control Register Any bit reset to '0' in the Control Register sets the corresponding port pin to MCU I/O Mode, and a '1' sets it to Address Out Mode. The default mode is MCU I/O. Only Ports A and B have an associated Control Register. Direction Register The Direction Register, in conjunction with the output enable (except for Port D), controls the direction of data flow in the I/O Ports. Any bit set to '1' in the Direction Register causes the corresponding pin to be an output, and any bit set to '0' causes it to be an input. The default mode for all port pins is input. Figure 28., page 58 and Figure 29., page 59 show the Port Architecture diagrams for Ports A/B and C, respectively. The direction of data flow for Ports A, B, and C are controlled not only by the direction register, but also by the output enable product term from the PLD AND Array. If the output enable product term is not active, the Direction Register has sole control of a given pin’s direction. An example of a configuration for a Port with the three least significant bits set to output and the remainder set to input is shown in Table 25. Since Port D only contains three pins (shown in Figure 31., page 61), the Direction Register for Port D has only the three least significant bits active. Drive Select Register The Drive Select Register configures the pin driver as Open Drain or CMOS for some port pins, and controls the slew rate for the other port pins. An external pull-up resistor should be used for pins configured as Open Drain. A pin can be configured as Open Drain if its corresponding bit in the Drive Select Register is set to a ’1.’ The default pin drive is CMOS. Note that the slew rate is a measurement of the rise and fall times of an output. A higher slew rate means a faster output response and may create more electrical noise. A pin operates in a high slew rate when the corresponding bit in the Drive Register is set to ’1.’ The default rate is slow slew. Table 26., page 57 shows the Drive Register for Ports A, B, C, and D. It summarizes which pins can be configured as Open Drain outputs and which pins the slew rate can be set for. Table 22. Port Configuration Registers (PCR) Register Name Control Direction A,B Port MCU Access Drive Select1 O bs let o ro P e uc d (s) t so Ob 0 1 Note: 1. See Table 26., page 57 for Drive Register bit definition. eP let A,B,C,D A,B,C,D ro uc d s) t( WRITE/READ WRITE/READ WRITE/READ Table 23. Port Pin Direction Control, Output Enable P.T. Not Defined Direction Register Bit Input Output Port Pin Mode Table 24. Port Pin Direction Control, Output Enable P.T. Defined Direction Register Bit 0 0 1 1 Output Enable P.T. 0 1 0 1 Port Pin Mode Input Output Output Output Table 25. Port Direction Assignment Example Bit 7 0 Bit 6 0 Bit 5 0 Bit 4 0 Bit 3 0 Bit 2 1 Bit 1 1 Bit 0 1 56/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Table 26. Drive Register Pin Assignment Drive Register Port A Port B Port C Port D Bit 7 Open Drain Open Drain Open Drain NA1 Bit 6 Open Drain Open Drain Open Drain NA1 Bit 5 Open Drain Open Drain Open Drain NA1 Bit 4 Open Drain Open Drain Open Drain NA1 Bit 3 Slew Rate Slew Rate Open Drain NA1 Bit 2 Slew Rate Slew Rate Open Drain Slew Rate Bit 1 Slew Rate Slew Rate Open Drain Slew Rate Bit 0 Slew Rate Slew Rate Open Drain Slew Rate Note: 1. NA = Not Applicable. Port Data Registers The Port Data Registers, shown in Table 27, are used by the MCU to write data to or read data from the ports. Table 27 shows the register name, the ports having each register type, and MCU access for each register type. The registers are described below. Data In Port pins are connected directly to the Data In buffer. In MCU I/O input mode, the pin input is read through the Data In buffer. Data Out Register Stores output data written by the MCU in the MCU I/O output mode. The contents of the Register are driven out to the pins if the Direction Register or the output enable product term is set to ’1.’ The contents of the register can also be read back by the MCU. Table 27. Port Data Registers Register Name Data In Data Out Output Macrocell Mask Macrocell Output Macrocells (OMC). The CPLD Output Macrocells (OMC) occupy a location in the MCU’s address space. The MCU can read the output of the Output Macrocells (OMC). If the OMC Mask Register bits are not set, writing to the macrocell loads data to the macrocell flip-flops. See the section entitled PLDS, page 33. OMC Mask Register Each OMC Mask Register bit corresponds to an Output Macrocell (OMC) flip-flop. When the OMC Mask Register bit is set to a 1, loading data into the Output Macrocell (OMC) flip-flop is blocked. The default value is 0 or unblocked. bs O Input Macrocell Enable Out let o Pr e du o A,B,C,D (s) ct Port so Ob - te le ro P uc d s) t( MCU Access READ – input on pin WRITE/READ READ – outputs of macrocells WRITE – loading macrocells flip-flop WRITE/READ – prevents loading into a given macrocell READ – outputs of the Input Macrocells READ – the output enable control of the port driver A,B,C,D A,B,C A,B,C A,B,C A,B,C Doc ID 10552 Rev 3 57/109 PSD813F2V, PSD854F2V Input Macrocells (IMC) The Input Macrocells (IMC) can be used to latch or store external inputs. The outputs of the Input Macrocells (IMC) are routed to the PLD input bus, and can be read by the MCU. See the section entitled PLDS, page 33. Enable Out The Enable Out register can be read by the MCU. It contains the output enable values for a given port. A 1 indicates the driver is in output mode. A 0 indicates the driver is in tri-state and the pin is in input mode. Ports A and B – Functionality and Structure Ports A and B have similar functionality and structure, as shown in Figure 28. The two ports can be configured to perform one or more of the following functions: ■ MCU I/O Mode ■ CPLD Output – Macrocells McellAB7McellAB0 can be connected to Port A or Port B. McellBC7-McellBC0 can be connected to Port B or Port C. ■ CPLD Input – Via the Input Macrocells (IMC). ■ Latched Address output – Provide latched address output as per Table 21., page 54. ■ Address In – Additional high address inputs using the Input Macrocells (IMC). ■ Open Drain/Slew Rate – pins PA3-PA0 and PB3-PB0 can be configured to fast slew rate, pins PA7-PA4 and PB7-PB4 can be configured to Open Drain Mode. ■ Data Port – Port A to D7-D0 for 8 bit nonmultiplexed bus ■ Multiplexed Address/Data port for certain types of MCU bus interfaces. ■ Peripheral Mode – Port A only Figure 28. Port A and Port B Structure DATA OUT REG. D WR ADDRESS ALE D G Q MACROCELL OUTPUTS INTERNAL DATA BUS O bs let o Pr e WR WR du o P D B D D READ MUX (s) ct Q Q so Ob DATA OUT ADDRESS A[ 7:0] OR A[15:8] DATA IN te le OUTPUT MUX ro P uc d s) t( PORT A OR B PIN OUTPUT SELECT CONTROL REG. ENABLE OUT DIR REG. Q ENABLE PRODUCT TERM (.OE) INPUT MACROCELL CPLD - INPUT AI02887 58/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Port C – Functionality and Structure Port C can be configured to perform one or more of the following functions (see Figure 29): ■ MCU I/O Mode ■ CPLD Output – McellBC7-McellBC0 outputs can be connected to Port B or Port C. ■ CPLD Input – via the Input Macrocells (IMC) ■ Address In – Additional high address inputs using the Input Macrocells (IMC). ■ In-System Programming (ISP) – JTAG port can be enabled for programming/erase of the Figure 29. Port C Structure DATA OUT REG. D WR 1 SPECIAL FUNCTION PORT C PIN OUTPUT MUX Q DATA OUT PSD device. (See the section entitled PROGRAMMING IN-CIRCUIT USING THE JTAG SERIAL INTERFACE, page 69 for more information on JTAG programming.) ■ Open Drain – Port C pins can be configured in Open Drain Mode Port C does not support Address Out mode, and therefore no Control Register is required. Pin PC7 may be configured as the DBE input in certain MCU bus interfaces. MCELLBC[ 7:0] READ MUX INTERNAL DATA BUS P D B DATA IN OUTPUT SELECT DIR REG. D WR ENABLE PRODUCT TERM (.OE) Q CPLD-INPUT bs O let o od Pr e ct u (s) so Ob - te le ro P uc d s) t( ENABLE OUT INPUT MACROCELL SPECIAL FUNCTION CONFIGURATION AI02888B BIT Doc ID 10552 Rev 3 59/109 PSD813F2V, PSD854F2V Port D – Functionality and Structure Port D has three I/O pins. See Figure 30 and Figure 31., page 61. This port does not support Address Out mode, and therefore no Control Register is required. Port D can be configured to perform one or more of the following functions: ■ MCU I/O Mode ■ CPLD Output – External Chip Select (ECS0ECS2) ■ CPLD Input – direct input to the CPLD, no Input Macrocells (IMC) Figure 30. Port D Structure DATA OUT REG. DATA OUT D WR PORT D PIN OUTPUT MUX ECS[ 2:0] READ MUX Q Slew rate – pins can be set up for fast slew rate Port D pins can be configured in PSDsoft Express as input pins for other dedicated functions: ■ Address Strobe (ALE/AS, PD0) ■ CLKIN (PD1) as input to the macrocells flipflops and APD counter ■ PSD Chip Select Input (CSI, PD2). Driving this signal High disables the Flash memory, SRAM and CSIOP. ■ INTERNAL DATA BUS P D B DATA IN OUTPUT SELECT DIR REG. D WR Q bs O let o od Pr e ct u (s) so Ob - te le ro P uc d s) t( ENABLE PRODUCT TERM (.OE) CPLD-INPUT AI02889 60/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V External Chip Select The CPLD also provides three External Chip Select (ECS0-ECS2) outputs on Port D pins that can be used to select external devices. Each External Chip Select (ECS0-ECS2) consists of one product Figure 31. Port D External Chip Select Signals term that can be configured active High or Low. The output enable of the pin is controlled by either the output enable product term or the Direction Register. (See Figure 31.) ENABLE (.OE) DIRECTION REGISTER PT0 ECS0 POLARITY BIT ENABLE (.OE) DIRECTION REGISTER PD0 PIN CPLD AND ARRAY PLD INPUT BUS PT1 ECS1 POLARITY BIT ENABLE (.OE) PD1 PIN PT2 POLARITY BIT bs O let o Pr e du o (s) ct so Ob - te le DIRECTION REGISTER ro P PD2 PIN uc d s) t( ECS2 AI02890 Doc ID 10552 Rev 3 61/109 PSD813F2V, PSD854F2V POWER MANAGEMENT All PSD devices offer configurable power saving options. These options may be used individually or in combinations, as follows: ■ All memory blocks in a PSD (primary and secondary Flash memory, and SRAM) are built with power management technology. In addition to using special silicon design methodology, power management technology puts the memories into standby mode when address/data inputs are not changing (zero DC current). As soon as a transition occurs on an input, the affected memory “wakes up”, changes and latches its outputs, then goes back to standby. The designer does not have to do anything special to achieve memory standby mode when no inputs are changing— it happens automatically. The PLD sections can also achieve standby mode when its inputs are not changing, as described in the sections on the Power Management Mode Registers (PMMR). ■ As with the Power Management mode, the Automatic Power Down (APD) block allows the PSD to reduce to standby current automatically. The APD Unit can also block MCU address/data signals from reaching the memories and PLDs. This feature is available on all the devices of the PSD family. The APD Unit is described in more detail in the sections entitled Automatic Power-down (APD) Unit and Power-down Mode, page 63. Built in logic monitors the Address Strobe of the MCU for activity. If there is no activity for a certain time period (MCU is asleep), the APD Unit initiates Power-down mode (if enabled). Once in Power-down mode, all address/data signals are blocked from reaching PSD memory and PLDs, and the memories are deselected internally. This allows the memory and PLDs to remain in standby mode even if the address/ data signals are changing state externally (noise, other devices on the MCU bus, etc.). Keep in mind that any unblocked PLD input signals that are changing states keeps the PLD out of standby mode, but not the memories. PSD Chip Select Input (CSI, PD2) can be used to disable the internal memories, placing them in standby mode even if inputs are changing. This feature does not block any internal signals or disable the PLDs. This is a good alternative to using the APD Unit. There is a slight penalty in memory access time when PSD Chip Select Input (CSI, PD2) makes its initial transition from deselected to selected. The PMMRs can be written by the MCU at runtime to manage power. All PSD supports “blocking bits” in these registers that are set to block designated signals from reaching both PLDs. Current consumption of the PLDs is directly related to the composite frequency of the changes on their inputs (see Figure 35 and Figure 36., page 72). Significant power savings can be achieved by blocking signals that are not used in DPLD or CPLD logic equations. PSD devices have a Turbo Bit in PMMR0. This bit can be set to turn the Turbo mode off (the default is with Turbo mode turned on). While Turbo mode is off, the PLDs can achieve standby current when no PLD inputs are changing (zero DC current). Even when inputs do change, significant power can be saved at lower frequencies (AC current), compared to when Turbo mode is on. When the Turbo mode is on, there is a significant DC current component and the AC component is higher. ■ ■ bs O let o Pr e du o (s) ct so Ob - te le ro P uc d s) t( 62/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Automatic Power-down (APD) Unit and Power-down Mode The APD Unit, shown in Figure 32, puts the PSD registers. The blocked signals include MCU into Power-down mode by monitoring the activity control signals and the common CLKIN (PD1). of Address Strobe (ALE/AS, PD0). If the APD Unit Note that blocking CLKIN (PD1) from the is enabled, as soon as activity on Address Strobe PLDs does not block CLKIN (PD1) from the (ALE/AS, PD0) stops, a four bit counter starts APD Unit. counting. If Address Strobe (ALE/AS, PD0) re– All PSD memories enter standby mode and mains inactive for fifteen clock periods of CLKIN are drawing standby current. However, the (PD1), Power-down (PDN) goes High, and the PLD and I/O ports blocks do not go into PSD enters Power-down mode, as discussed standby Mode because you don’t want to have next. to wait for the logic and I/O to “wake-up” Power-down Mode. By default, if you enable the before their outputs can change. See Table 28 APD Unit, Power-down mode is automatically enfor Power-down mode effects on PSD ports. abled. The device enters Power-down mode if Ad– Typical standby current is of the order of dress Strobe (ALE/AS, PD0) remains inactive for microamperes. These standby current values fifteen periods of CLKIN (PD1). assume that there are no transitions on any The following should be kept in mind when the PLD input. PSD is in Power-down mode: – If Address Strobe (ALE/AS, PD0) starts Table 28. Power-down Mode’s Effect on Ports pulsing again, the PSD returns to normal Port Function Pin Level Operating mode. The PSD also returns to normal Operating mode if either PSD Chip MCU I/O No Change Select Input (CSI, PD2) is Low or the Reset PLD Out No Change (RESET) input is High. – The MCU address/data bus is blocked from all Address Out Undefined memory and PLDs. Data Port Tri-State – Various signals can be blocked (prior to Power-down mode) from entering the PLDs by Peripheral I/O Tri-State setting the appropriate bits in the PMMR Figure 32. APD Unit APD EN PMMR0 BIT 1=1 TRANSITION DETECTION ALE bs O let o ro P e RESET CSI CLKIN uc d EDGE DETECT (s) t so Ob PD PD te le ro P uc d s) t( DISABLE BUS INTERFACE CLR APD COUNTER EEPROM SELECT FLASH SELECT PLD SRAM SELECT POWER DOWN (PDN) SELECT DISABLE FLASH/EEPROM/SRAM AI02891 Table 29. PSD Timing and Standby Current during Power-down Mode Mode Power-down PLD Propagation Delay Normal tPD (Note 1) Memory Access Time No Access Access Recovery Time to Normal Access tLVDV Typical Standby Current 5V VCC 75µA (Note 2) 3V VCC 25µA (Note 2) Note: 1. Power-down does not affect the operation of the PLD. The PLD operation in this mode is based only on the Turbo Bit. 2. Typical current consumption assuming no PLD inputs are changing state and the PLD Turbo Bit is ’0.’ Doc ID 10552 Rev 3 63/109 PSD813F2V, PSD854F2V For Users of the HC11 (or compatible) The HC11 turns off its E clock when it sleeps. Therefore, if you are using an HC11 (or compatible) in your design, and you wish to use the Power-down mode, you must not connect the E clock to CLKIN (PD1). You should instead connect a crystal oscillator to CLKIN (PD1). The crystal oscillator frequency must be less than 15 times the frequency of AS. The reason for this is that if the frequency is greater than 15 times the frequency of AS, the PSD keeps going into Power-down mode. Other Power Saving Options The PSD offers other reduced power saving options that are independent of the Power-down mode. Except for the PSD Chip Select Input (CSI, PD2) feature, they are enabled by setting bits in PMMR0 and PMMR2. Figure 33. Enable Power-down Flow Chart RESET Enable APD Set PMMR0 Bit 1 = 1 OPTIONAL Disable desired inputs to PLD by setting PMMR0 bits 4 and 5 and PMMR2 bits 2 through 6. No ALE/AS idle for 15 CLKIN clocks? Yes PSD in Power Down Mode bs O let o Pr e du o (s) ct so Ob - PLD Power Management The power and speed of the PLDs are controlled by the Turbo Bit (Bit 3) in PMMR0. By setting the bit to '1,' the Turbo mode is off and the PLDs consume the specified standby current when the inputs are not switching for an extended time of 70ns. The propagation delay time is increased by 10ns after the Turbo Bit is set to '1' (turned off) when the inputs change at a composite frequency of less than 15 MHz. When the Turbo Bit is reset to '0' (turned on), the PLDs run at full power and speed. The Turbo Bit affects the PLD’s DC power, AC power, and propagation delay. Blocking MCU control signals with the bits of PMMR2 can further reduce PLD AC power consumption. te le ro P uc d s) t( AI02892 64/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Table 30. Power Management Mode Registers PMMR0 (Note 1) Bit 0 Bit 1 Bit 2 Bit 3 X APD Enable 1 = on Automatic Power-down (APD) is enabled. X PLD Turbo 1 = off PLD Turbo mode is off, saving power. 0 = on Bit 4 PLD Array clk CLKIN (PD1) input to the PLD AND Array is connected. Every change of CLKIN (PD1) Powers-up the PLD when Turbo Bit is ’0.’ 0 Not used, and should be set to zero. 0 Not used, and should be set to zero. 0 = off Automatic Power-down (APD) is disabled. 0 = on PLD Turbo mode is on 1 = off CLKIN (PD1) input to PLD AND Array is disconnected, saving power. 0 = on CLKIN (PD1) input to the PLD macrocells is connected. Bit 5 Bit 6 Bit 7 PLD MCell clk 1 = off CLKIN (PD1) input to PLD macrocells is disconnected, saving power. X X 0 0 Not used, and should be set to zero. Not used, and should be set to zero. Note: 1. The bits of this register are cleared to zero following Power-up. Subsequent Reset (RESET) pulses do not clear the registers. Table 31. Power Management Mode Registers PMMR2 (Note 1) Bit 0 Bit 1 Bit 2 X X PLD Array CNTL0 PLD Array CNTL1 PLD Array CNTL2 PLD Array ALE PLD Array DBE 0 0 Not used, and should be set to zero. Not used, and should be set to zero. 0 = on Cntl0 input to the PLD AND Array is connected. 1 = off Cntl0 input to PLD AND Array is disconnected, saving power. 0 = on Cntl1 input to the PLD AND Array is connected. 1 = off Cntl1 input to PLD AND Array is disconnected, saving power. 0 = on Cntl2 input to the PLD AND Array is connected. 1 = off Cntl2 input to PLD AND Array is disconnected, saving power. 0 = on ALE input to the PLD AND Array is connected. 1 = off ALE input to PLD AND Array is disconnected, saving power. 0 = on DBE input to the PLD AND Array is connected. 1 = off DBE input to PLD AND Array is disconnected, saving power. 0 Not used, and should be set to zero. Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 bs O Note: 1. The bits of this register are cleared to zero following Power-up. Subsequent Reset (RESET) pulses do not clear the registers. let o X Pr e du o (s) ct so Ob - te le ro P uc d s) t( Doc ID 10552 Rev 3 65/109 PSD813F2V, PSD854F2V PSD Chip Select Input (CSI, PD2) PD2 of Port D can be configured in PSDsoft Express as PSD Chip Select Input (CSI). When Low, the signal selects and enables the internal Flash memory, EEPROM, SRAM, and I/O blocks for READ or WRITE operations involving the PSD. A High on PSD Chip Select Input (CSI, PD2) disables the Flash memory, EEPROM, and SRAM, and reduces the PSD power consumption. However, the PLD and I/O signals remain operational when PSD Chip Select Input (CSI, PD2) is High. There may be a timing penalty when using PSD Chip Select Input (CSI, PD2) depending on the speed grade of the PSD that you are using. See the timing parameter tSLQV in Table 61., page 94 or Table 62., page 95. Input Clock The PSD provides the option to turn off CLKIN (PD1) to the PLD to save AC power consumption. CLKIN (PD1) is an input to the PLD AND Array and the Output Macrocells (OMC). During Power-down mode, or, if CLKIN (PD1) is not being used as part of the PLD logic equation, the clock should be disabled to save AC power. CLKIN (PD1) is disconnected from the PLD AND Array or the Macrocells block by setting Bits 4 or 5 to a 1 in PMMR0. Input Control Signals The PSD provides the option to turn off the input control signals (CNTL0, CNTL1, CNTL2, Address Strobe (ALE/AS, PD0) and DBE) to the PLD to save AC power consumption. These control signals are inputs to the PLD AND Array. During Power-down mode, or, if any of them are not being used as part of the PLD logic equation, these control signals should be disabled to save AC power. They are disconnected from the PLD AND Array by setting Bits 2, 3, 4, 5, and 6 to a 1 in PMMR2. Table 32. APD Counter Operation APD Enable Bit 0 1 1 1 ALE PD Polarity X X 1 0 ALE Level X Pulsing 1 0 Not Counting APD Counter bs O let o Pr e du o (s) ct so Ob - Not Counting Counting (Generates PDN after 15 Clocks) Counting (Generates PDN after 15 Clocks) te le ro P uc d s) t( 66/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V RESET TIMING AND DEVICE STATUS AT RESET Power-Up Reset Upon Power-up, the PSD requires a Reset (RESET) pulse of duration tNLNH-PO after VCC is steady. During this period, the device loads internal configurations, clears some of the registers and sets the Flash memory into Operating mode. After the rising edge of Reset (RESET), the PSD remains in the Reset mode for an additional period, tOPR, before the first memory access is allowed. The Flash memory is reset to the READ Mode upon Power-up. Sector Select (FS0-FS7 and CSBOOT0-CSBOOT3) must all be Low, Write Strobe (WR, CNTL0) High, during Power On Reset for maximum security of the data contents and to remove the possibility of a byte being written on the first edge of Write Strobe (WR, CNTL0). Any Flash memory WRITE cycle initiation is prevented automatically when VCC is below VLKO. Warm Reset Once the device is up and running, the device can be reset with a pulse of a much shorter duration, tNLNH. Figure 34. Reset (RESET) Timing The same tOPR period is needed before the device is operational after warm reset. Figure 34 shows the timing of the Power-up and warm reset. I/O Pin, Register and PLD Status at Reset Table 33., page 68 shows the I/O pin, register and PLD status during Power On Reset, warm reset and Power-down mode. PLD outputs are always valid during warm reset, and they are valid in Power On Reset once the internal PSD Configuration bits are loaded. This loading of PSD is completed typically long before the VCC ramps up to operating level. Once the PLD is active, the state of the outputs are determined by the PSDabel equations. Reset of Flash Memory Erase and Program Cycles (on the PSD834Fx) A Reset (RESET) also resets the internal Flash memory state machine. During a Flash memory Program or Erase cycle, Reset (RESET) terminates the cycle and returns the Flash memory to the Read Mode within a period of tNLNH-A. VCC VCC(min) tNLNH-PO Power-On Reset tOPR RESET bs O let o Pr e du o (s) ct so Ob - te le ro P tNLNH tNLNH-A uc d s) t( tOPR Warm Reset AI02866b Doc ID 10552 Rev 3 67/109 PSD813F2V, PSD854F2V Table 33. Status During Power-On Reset, Warm Reset and Power-down Mode Port Configuration MCU I/O PLD Output Address Out Data Port Peripheral I/O Power-On Reset Input mode Valid after internal PSD configuration bits are loaded Tri-stated Tri-stated Tri-stated Warm Reset Input mode Valid Tri-stated Tri-stated Tri-stated Power-down Mode Unchanged Depends on inputs to PLD (addresses are blocked in PD mode) Not defined Tri-stated Tri-stated Register PMMR0 and PMMR2 Macrocells flip-flop status Power-On Reset Cleared to '0' Cleared to '0' by internal Power-On Reset Initialized, based on the selection in PSDsoft Configuration menu Cleared to '0' Warm Reset Unchanged Depends on .re and .pr equations Initialized, based on the selection in PSDsoft Configuration menu Cleared to '0' Power-down Mode Unchanged Depends on .re and .pr equations Unchanged VM Register1 All other registers Note: 1. The SR_cod and PeriphMode bits in the VM Register are always cleared to '0' on Power-On Reset or Warm Reset. bs O let o Pr e du o (s) ct so Ob - te le ro P Unchanged uc d s) t( 68/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V PROGRAMMING IN-CIRCUIT USING THE JTAG SERIAL INTERFACE The JTAG Serial Interface block can be enabled on Port C (see Table 34., page 70). All memory blocks (primary and secondary Flash memory), PLD logic, and PSD Configuration Register bits may be programmed through the JTAG Serial Interface block. A blank device can be mounted on a printed circuit board and programmed using JTAG. The standard JTAG signals (IEEE 1149.1) are TMS, TCK, TDI, and TDO. Two additional signals, TSTAT and TERR, are optional JTAG extensions used to speed up Program and Erase cycles. By default, on a blank PSD (as shipped from the factory or after erasure), four pins on Port C are enabled for the basic JTAG signals TMS, TCK, TDI, and TDO. See Application Note AN1153 for more details on JTAG In-System Programming (ISP). Standard JTAG Signals The standard JTAG signals (TMS, TCK, TDI, and TDO) can be enabled by any of three different conditions that are logically ORed. When enabled, TDI, TDO, TCK, and TMS are inputs, waiting for a JTAG serial command from an external JTAG controller device (such as FlashLINK or Automated Test Equipment). When the enabling command is received, TDO becomes an output and the JTAG channel is fully functional inside the PSD. The same command that enables the JTAG channel may optionally enable the two additional JTAG signals, TSTAT and TERR. The following symbolic logic equation specifies the conditions enabling the four basic JTAG signals (TMS, TCK, TDI, and TDO) on their respective Port C pins. For purposes of discussion, the logic label JTAG_ON is used. When JTAG_ON is true, the four pins are enabled for JTAG. When JTAG_ON is false, the four pins can be used for general PSD I/O. JTAG_ON = PSDsoft_enabled + /* An NVM configuration bit inside the PSD is set by the designer in the PSDsoft Express Configuration utility. This dedicates the pins for JTAG at all times (compliant with IEEE 1149.1 */ Microcontroller_enabled + /* The microcontroller can set a bit at run-time by writing to the PSD register, JTAG Enable. This register is located at address CSIOP + offset C7h. Setting the JTAG_ENABLE bit in this register will enable the pins for JTAG use. This bit is cleared by a PSD reset or the microcontroller. See Table 35., page 71 for bit definition. */ PSD_product_term_enabled; /* A dedicated product term (PT) inside the PSD can be used to enable the JTAG pins. This PT has the reserved name JTAGSEL. Once defined as a node in PSDabel, the designer can write an equation for JTAGSEL. This method is used when the Port C JTAG pins are multiplexed with other I/O signals. It is recommended to logically tie the node JTAGSEL to the JEN\ signal on the Flashlink cable when multiplexing JTAG signals. See Application Note 1153 for details. */ The state of the PSD Reset (RESET) signal does not interrupt (or prevent) JTAG operations if the JTAG pins are dedicated by an NVM configuration bit (via PSDsoft Express). However, Reset (RESET) will prevent or interrupt JTAG operations if the JTAG enable register is used to enable the JTAG pins. The PSD supports JTAG In-System-Configuration (ISC) commands, but not Boundary Scan. The PSDsoft Express software tool and FlashLINK JTAG programming cable implement the JTAG InSystem-Configuration (ISC) commands. A definition of these JTAG In-System-Configuration (ISC) commands and sequences is defined in a supplemental document available from ST. This document is needed only as a reference for designers who use a FlashLINK to program their PSD. bs O let o Pr e du o (s) ct so Ob - te le ro P uc d s) t( Doc ID 10552 Rev 3 69/109 PSD813F2V, PSD854F2V JTAG Extensions TSTAT and TERR are two JTAG extension signals enabled by an “ISC_ENABLE” command received over the four standard JTAG signals (TMS, TCK, TDI, and TDO). They are used to speed Program and Erase cycles by indicating status on PSD signals instead of having to scan the status out serially using the standard JTAG channel. See Application Note AN1153. TERR indicates if an error has occurred when erasing a sector or programming a byte in Flash memory. This signal goes Low (active) when an Error condition occurs, and stays Low until an “ISC_CLEAR” command is executed or a chip Reset (RESET) pulse is received after an “ISC_DISABLE” command. TSTAT behaves the same as Ready/Busy described in the section entitled Ready/Busy (PC3), page 20. TSTAT is High when the PSD device is in READ Mode (primary and secondary Flash memory contents can be read). TSTAT is Low when Flash memory Program or Erase cycles are in progress, and also when data is being written to the secondary Flash memory. TSTAT and TERR can be configured as opendrain type signals during an “ISC_ENABLE” command. This facilitates a wired-OR connection of TSTAT signals from multiple PSD devices and a wired-OR connection of TERR signals from those same devices. This is useful when several PSD devices are “chained” together in a JTAG environment. Security and Flash memory Protection When the security bit is set, the device cannot be read on a Device Programmer or through the JTAG Port. When using the JTAG Port, only a Full Chip Erase command is allowed. All other Program, Erase and Verify commands are blocked. Full Chip Erase returns the part to a non-secured blank state. The Security Bit can be set in PSDsoft Express Configuration. All primary and secondary Flash memory sectors can individually be sector protected against erasures. The sector protect bits can be set in PSDsoft Express Configuration. Table 34. JTAG Port Signals Port C Pin PC0 PC1 PC3 PC4 PC5 PC6 JTAG Signals TMS TCK TSTAT TERR TDI Description Mode Select Clock bs O let o Pr e du o (s) ct so Ob - eP let TDO ro uc d Status Error Flag s) t( Serial Data In Serial Data Out 70/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V INITIAL DELIVERY STATE When delivered from ST, the PSD device has all bits in the memory and PLDs set to ’1.’ The PSD Configuration Register bits are set to ’0.’ The code, configuration, and PLD logic are loaded using the Table 35. JTAG Enable Register 0 = off JTAG port is disabled. Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 JTAG_Enable 1 = on JTAG port is enabled. X X X X X X X 0 0 0 0 0 0 0 Not used, and should be set to zero. Not used, and should be set to zero. Not used, and should be set to zero. Not used, and should be set to zero. Not used, and should be set to zero. Not used, and should be set to zero. Not used, and should be set to zero. programming procedure. Information for programming the device is available directly from ST. Please contact your local sales representative. Note: 1. The state of Reset (RESET) does not interrupt (or prevent) JTAG operations if the JTAG signals are dedicated by an NVM Configuration bit (via PSDsoft Express). However, Reset (RESET) prevents or interrupts JTAG operations if the JTAG enable register is used to enable the JTAG signals. bs O let o Pr e du o (s) ct so Ob - te le ro P uc d s) t( Doc ID 10552 Rev 3 71/109 PSD813F2V, PSD854F2V AC/DC PARAMETERS These tables describe the AD and DC parameters of the PSD: ❏ DC Electrical Specification ❏ AC Timing Specification ■ PLD Timing – Combinatorial Timing – Synchronous Clock Mode – Asynchronous Clock Mode – Input Macrocell Timing ■ MCU Timing – READ Timing – WRITE Timing – Peripheral Mode Timing – Power-down and Reset Timing The following are issues concerning the parameters presented: – In the DC specification the supply current is given for different modes of operation. Before calculating the total power consumption, determine the percentage of time that the PSD is in each mode. Also, the supply power is considerably different if the Turbo Bit is ’0.’ – The AC power component gives the PLD, Flash memory, and SRAM mA/MHz specification. Figures 35 and 36 show the PLD mA/MHz as a function of the number of Product Terms (PT) used. – In the PLD timing parameters, add the required delay when Turbo Bit is ’0.’ Figure 35. PLD ICC /Frequency Consumption (5V range) 110 100 90 80 ICC – (mA) 70 FF O TUR BO VCC = 5V (1 ON 00% ) 60 TU RB 50 40 30 20 10 0 0 HIGHEST COMPOSITE FREQUENCY AT PLD INPUTS (MHz) Figure 36. PLD ICC /Frequency Consumption (3V range) 60 50 40 TU 20 10 RB O ICC – (mA) FF bs let o ro P e 30 du (s) ct T 5 B UR O OF F so Ob 15 T O O URB te le ON (25% ) ro P uc d s) t( PT 100% PT 25% 10 20 25 AI02894 VCC = 3V T O URB ON ( 100% ) TURB (2 O ON O 5%) O TU 0 0 RB 5 O OF F PT 100% PT 25% 10 15 20 25 AI03100 HIGHEST COMPOSITE FREQUENCY AT PLD INPUTS (MHz) 72/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Table 36. Example of PSD Typical Power Calculation at VCC = 5.0V (Turbo Mode On) Conditions Highest Composite PLD input frequency (Freq PLD) MCU ALE frequency (Freq ALE) % Flash memory Access % SRAM access % I/O access Operational Modes % Normal % Power-down Mode Number of product terms used (from fitter report) % of total product terms Turbo Mode = 45 PT = 45/182 = 24.7% = ON Calculation (using typical values) ICC total = 10% = 90% = 8 MHz = 4 MHz = 80% = 15% = 5% (no additional power above base) = Ipwrdown x %pwrdown + %normal x (ICC (ac) + ICC (dc)) = Ipwrdown x %pwrdown + % normal x (%flash x 2.5mA/MHz x Freq ALE + %SRAM x 1.5mA/MHz x Freq ALE = 50µA x 0.90 + 0.1 x (0.8 x 2.5mA/MHz x 4 MHz bs O This is the operating power with no EEPROM WRITE or Flash memory Erase cycles in progress. Calculation is based on IOUT = 0mA. let o Pr e du o (s) ct = 4.34mA so Ob - + % PLD x 2mA/MHz x Freq PLD + #PT x 400µA/PT) te le ro P uc d s) t( + 0.15 x 1.5mA/MHz x 4 MHz + 2mA/MHz x 8 MHz + 45 x 0.4mA/PT) = 45µA + 0.1 x (8 + 0.9 + 16 + 18mA) = 45µA + 0.1 x 42.9 = 45µA + 4.29mA Doc ID 10552 Rev 3 73/109 PSD813F2V, PSD854F2V Table 37. Example of PSD Typical Power Calculation at VCC = 5.0V (Turbo Mode Off) Conditions Highest Composite PLD input frequency (Freq PLD) MCU ALE frequency (Freq ALE) % Flash memory Access % SRAM access % I/O access Operational Modes % Normal % Power-down Mode Number of product terms used (from fitter report) % of total product terms Turbo Mode = 45 PT = 45/182 = 24.7% = Off Calculation (using typical values) ICC total = 10% = 90% = 8 MHz = 4 MHz = 80% = 15% = 5% (no additional power above base) = Ipwrdown x %pwrdown + %normal x (ICC (ac) + ICC (dc)) = Ipwrdown x %pwrdown + % normal x (%flash x 2.5mA/MHz x Freq ALE + %SRAM x 1.5mA/MHz x Freq ALE = 50µA x 0.90 + 0.1 x (0.8 x 2.5mA/MHz x 4 MHz + 0.15 x 1.5mA/MHz x 4 MHz + 24mA) This is the operating power with no EEPROM WRITE or Flash memory Erase cycles in progress. Calculation is based on IOUT = 0mA. bs O let o Pr e du o (s) ct = 3.34mA so Ob - + % PLD x (from graph using Freq PLD)) te le ro P uc d s) t( = 45µA + 0.1 x (8 + 0.9 + 24) = 45µA + 0.1 x 32.9 = 45µA + 3.29mA 74/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V MAXIMUM RATING Stressing the device above the rating listed in the Absolute Maximum Ratings” table may cause permanent damage to the device. These are stress ratings only and operation of the device at these or any other conditions above those indicated in the Operating sections of this specification is not imTable 38. Absolute Maximum Ratings Symbol TSTG TLEAD VIO VCC VPP VESD Storage Temperature Lead Temperature during Soldering (20 seconds max.)1 Input and Output Voltage (Q = VOH or Hi-Z) Supply Voltage Device Programmer Supply Voltage Electrostatic Discharge Voltage (Human Body model) 2 –0.6 –0.6 –0.6 –2000 Parameter Min. –65 Max. 125 235 7.0 7.0 14.0 2000 Unit °C °C V V plied. Exposure to Absolute Maximum Rating conditions for extended periods may affect device reliability. Refer also to the STMicroelectronics SURE Program and other relevant quality documents. Note: 1. IPC/JEDEC J-STD-020A 2. JEDEC Std JESD22-A114A (C1=100 pF, R1=1500 Ω, R2=500 Ω) bs O let o Pr e du o (s) ct so Ob - te le ro P uc d s) t( V V Doc ID 10552 Rev 3 75/109 PSD813F2V, PSD854F2V DC AND AC PARAMETERS This section summarizes the operating and measurement conditions, and the DC and AC characteristics of the device. The parameters in the DC and AC Characteristic tables that follow are derived from tests performed under the MeasureTable 39. Operating Conditions (5V devices) Symbol VCC TA Ambient Operating Temperature (commercial) 0 70 °C Supply Voltage Ambient Operating Temperature (industrial) Parameter Min. 4.5 –40 Max. 5.5 85 Unit V °C ment Conditions summarized in the relevant tables. Designers should check that the operating conditions in their circuit match the measurement conditions when relying on the quoted parameters. Table 40. Operating Conditions (3V devices) Symbol VCC TA Ambient Operating Temperature (commercial) 0 Supply Voltage Ambient Operating Temperature (industrial) Parameter Min. 3.0 –40 Max. 3.6 85 Table 41. AC Signal Letters for PLD Timing A C D E G I L N P Q R S Address Input CEout Output Input Data E Input Internal WDOG_ON signal Interrupt Input ALE Input RESET Input or Output Port Signal Output Output Data Table 42. AC Signal Behavior Symbols for PLD Timing t Time bs O W M T let o WR, UDS, LDS, DS, IORD, PSEN Inputs Chip Select Input Pr e du o (s) ct Ob - so L H V X Z Pr te le Valid Float Pulse Width od 70 uc s) t( V °C °C Unit Logic Level Low or ALE Logic Level High No Longer a Valid Logic Level PW Note: Example: tAVLX = Time from Address Valid to ALE Invalid. R/W Input Internal PDN Signal Output Macrocell Note: Example: tAVLX = Time from Address Valid to ALE Invalid. Table 43. AC Measurement Conditions Symbol CL Load Capacitance Parameter Min. 30 Max. Unit pF Note: 1. Output Hi-Z is defined as the point where data out is no longer driven. 76/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Table 44. Capacitance Symbol CIN COUT CVPP Parameter Input Capacitance (for input pins) Output Capacitance (for input/ output pins) Capacitance (for CNTL2/VPP) Test Condition VIN = 0V VOUT = 0V VPP = 0V Typ.2 4 8 18 Max. 6 12 25 Unit pF pF pF Note: 1. Sampled only, not 100% tested. 2. Typical values are for TA = 25°C and nominal supply voltages. Figure 37. AC Measurement I/O Waveform Figure 38. AC Measurement Load Circuit 2.01 V 3.0V Test Point 0V AI03103b 195 Ω 1.5V Device Under Test CL = 30 pF (Including Scope and Jig Capacitance) Figure 39. Switching Waveforms – Key WAVEFORMS bs O let o ro P e du (s) ct so Ob INPUTS STEADY INPUT DON'T CARE te le ro P uc d s) t( AI03104b OUTPUTS STEADY OUTPUT MAY CHANGE FROM HI TO LO MAY CHANGE FROM LO TO HI WILL BE CHANGING FROM HI TO LO WILL BE CHANGING LO TO HI CHANGING, STATE UNKNOWN OUTPUTS ONLY CENTER LINE IS TRI-STATE AI03102 Doc ID 10552 Rev 3 77/109 PSD813F2V, PSD854F2V Table 45. DC Characteristics (5V devices) Symbol VIH VIL VIH1 VIL1 VHYS VLKO Parameter Input High Voltage Input Low Voltage Reset High Level Input Voltage Reset Low Level Input Voltage Reset Pin Hysteresis VCC (min) for Flash Erase and Program IOL = 20µA, VCC = 4.5 V Output Low Voltage IOL = 8mA, VCC = 4.5 V IOH = –20µA, VCC = 4.5 V Output High Voltage IOH = –2mA, VCC = 4.5 V Input Leakage Current Output Leakage Current VSS < VIN < VCC 0.45 < VOUT < VCC PLD_TURBO = Off, f = 0 MHz (Note 5) PLD_TURBO = On, f = 0 MHz 2.4 –1 –10 3.9 ±0.1 4.4 0.25 4.49 0.45 V Test Condition (in addition to those in Table 39., page 76) 4.5 V < VCC < 5.5 V 4.5 V < VCC < 5.5 V (Note 1) (Note 1) Min. 2 –0.5 0.8VCC –0.5 0.3 2.5 0.01 4.2 0.1 Typ. Max. VCC +0.5 0.8 VCC +0.5 0.2VCC –0.1 Unit V V V V V V V VOL VOH ILI ILO PLD Only ICC (DC) (Note 5) Operating Supply Current Flash memory During Flash memory WRITE/Erase Only Read only, f = 0 MHz SRAM PLD AC Adder ICC (AC) (Note ) 5 Flash memory AC Adder SRAM AC Adder bs O VIH VIL VIH1 VIL1 Note: 1. 2. 3. 4. 5. Reset (RESET) has hysteresis. VIL1 is valid at or below 0.2VCC –0.1. VIH1 is valid at or above 0.8VCC. CSI deselected or internal Power-down mode is active. PLD is in non-Turbo mode, and none of the inputs are switching. Please see Figure 35., page 72 for the PLD current calculation. IOUT = 0mA let o ro P e Parameter du ct (s) f = 0 MHz so Ob - eP let ro ±5 0 15 0 0 uc d 1 10 700 30 0 0 s) t( V V µA µA µA/PT µA/PT mA mA mA 400 note 4 2.5 1.5 3.5 3.0 mA/ MHz mA/ MHz Table 46. DC Characteristics (3V devices) Symbol Conditions 3.0 V < VCC < 3.6 V 3.0 V < VCC < 3.6 V (Note 1) (Note 1) Min. 0.7VCC –0.5 0.8VCC –0.5 Typ. Max. VCC +0.5 0.8 VCC +0.5 0.2VCC –0.1 Unit V V V V High Level Input Voltage Low Level Input Voltage Reset High Level Input Voltage Reset Low Level Input Voltage 78/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Symbol VHYS VLKO Parameter Reset Pin Hysteresis VCC (min) for Flash Erase and Program IOL = 20µA, VCC = 3.0 V Output Low Voltage IOL = 4mA, VCC = 3.0 V IOH = –20µA, VCC = 3.0 V Output High Voltage IOH = –1mA, VCC = 3.0 V Input Leakage Current Output Leakage Current VSS < VIN < VCC 0.45 < VIN < VCC PLD_TURBO = Off, f = 0 MHz (Note 3) PLD_TURBO = On, f = 0 MHz During Flash memory WRITE/Erase Only Read only, f = 0 MHz SRAM PLD AC Adder ICC (AC) (Note ) SRAM AC Adder Note: 1. 2. 3. 4. 5. 5 Conditions Min. 0.3 1.5 Typ. Max. Unit V 2.2 0.01 0.15 0.1 0.45 V V V V V VOL 2.9 2.7 –1 –10 2.99 2.8 ±0.1 ±5 0 200 10 400 1 10 VOH ILI ILO µA µA µA/PT PLD Only ICC (DC) (Note 5) Operating Supply Current Flash memory f = 0 MHz Flash memory AC Adder Reset (RESET) has hysteresis. VIL1 is valid at or below 0.2VCC –0.1. VIH1 is valid at or above 0.8VCC. CSI deselected or internal PD is active. PLD is in non-Turbo mode, and none of the inputs are switching. Please see Figure 36., page 72 for the PLD current calculation. IOUT = 0mA Figure 40. Input to Output Disable / Enable bs O let o Pr e INPUT du o (s) ct so Ob - te le Pr 0 0 od uc 25 0 0 2.0 1.5 s) t( µA/PT mA mA mA note 4 1.5 0.8 mA/ MHz mA/ MHz tER tEA INPUT TO OUTPUT ENABLE/DISABLE AI02863 Doc ID 10552 Rev 3 79/109 PSD813F2V, PSD854F2V Table 47. CPLD Combinatorial Timing (5V devices) -70 Symbol Parameter CPLD Input Pin/ Feedback to CPLD Combinatorial Output CPLD Input to CPLD Output Enable CPLD Input to CPLD Output Disable CPLD Register Clear or Preset Delay CPLD Register Clear or Preset Pulse Width CPLD Array Delay Any macrocell 10 11 Conditions Min tPD Max 20 Min Max 25 Min -90 -15 Fast PT Max Aloc 32 +2 Turbo Slew Off rate1 Unit + 10 –2 ns tEA tER tARP tARPW tARD 21 21 21 20 26 26 26 29 16 32 32 33 + 10 + 10 + 10 + 10 –2 –2 –2 ns ns ns ns 22 +2 Note: 1. Fast Slew Rate output available on PA3-PA0, PB3-PB0, and PD2-PD0. Decrement times by given amount. Table 48. CPLD Combinatorial Timing (3V devices) -12 Symbol Parameter CPLD Input Pin/ Feedback to CPLD Combinatorial Output CPLD Input to CPLD Output Enable CPLD Input to CPLD Output Disable CPLD Register Clear or Preset Delay CPLD Register Clear or Preset Pulse Width Conditions Min tPD Max 40 Min Max 45 Min -15 -20 tEA tER tARP tARPW tARD bs O Note: 1. Fast Slew Rate output available on PA3-PA0, PB3-PB0, and PD2-PD0. Decrement times by given amount. let o CPLD Array Delay Pr e du o (s) ct 25 so Ob 43 45 43 45 40 43 30 te le PT Aloc Max 50 +4 ro P uc d + 20 + 20 + 20 s) t( –6 ns Turbo Slew Off rate1 Unit ns 50 50 –6 –6 ns ns 48 + 20 –6 ns 35 + 20 ns Any macrocell 25 29 33 +4 ns 80/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Figure 41. Synchronous Clock Mode Timing – PLD tCH tCL CLKIN tS INPUT tH tCO REGISTERED OUTPUT AI02860 Table 49. CPLD Macrocell Synchronous Clock Mode Timing (5V devices) -70 Symbol Parameter Maximum Frequency External Feedback Maximum Frequency Internal Feedback (fCNT) Maximum Frequency Pipelined Data tS tH tCH tCL tCO tARD tMIN Input Setup Time Input Hold Time Clock High Time Clock Low Time Conditions Min Max Min Max Min Max -90 -15 Fast PT Aloc Turbo Slew Off rate1 1/(tS+tCO) 40.0 30.30 25.00 fMAX 1/(tS+tCO–10) 66.6 43.48 1/(tCH+tCL) 83.3 bs O let o Clock to Output Delay CPLD Array Delay Pr e du o Clock Input ct (s) 12 0 6 6 so Ob 50.00 15 0 10 10 te le 20 0 15 15 31.25 ro P +2 uc d s) t( Unit MHz MHz 35.71 MHz + 10 ns ns ns ns Clock Input Clock Input Any macrocell tCH+tCL 12 13 11 20 18 16 30 22 22 +2 –2 ns ns ns Minimum Clock Period 2 Note: 1. Fast Slew Rate output available on PA3-PA0, PB3-PB0, and PD2-PD0. Decrement times by given amount. 2. CLKIN (PD1) tCLCL = tCH + tCL. Doc ID 10552 Rev 3 81/109 PSD813F2V, PSD854F2V Table 50. CPLD Macrocell Synchronous Clock Mode Timing (3V devices) -12 Symbol Parameter Maximum Frequency External Feedback Maximum Frequency Internal Feedback (fCNT) Maximum Frequency Pipelined Data tS tH tCH tCL tCO tARD tMIN Input Setup Time Input Hold Time Clock High Time Clock Low Time Clock to Output Delay CPLD Array Delay Minimum Clock Period2 Clock Input Clock Input Clock Input Any macrocell tCH+tCL 25 Conditions Min 1/(tS+tCO) Max 22.2 Min Max 18.8 Min Max 15.8 -15 -20 PT Aloc Turbo Slew Off rate1 Unit MHz fMAX 1/(tS+tCO–10) 28.5 23.2 18.8 MHz 1/(tCH+tCL) 20 0 15 10 40.0 25 0 15 15 25 25 29 33.3 30 0 16 16 28 29 32 31.2 +4 + 20 MHz ns ns 33 33 Note: 1. Fast Slew Rate output available on PA3-PA0, PB3-PB0, and PD2-PD0. Decrement times by given amount. 2. CLKIN (PD1) tCLCL = tCH + tCL. bs O let o Pr e du o (s) ct so Ob - te le ro P +4 uc d s) t( –6 ns ns ns ns ns 82/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Figure 42. Asynchronous Reset / Preset tARPW RESET/PRESET INPUT tARP REGISTER OUTPUT AI02864 Figure 43. Asynchronous Clock Mode Timing (product term clock) tCHA tCLA CLOCK tSA tHA INPUT tCOA REGISTERED OUTPUT bs O let o Pr e du o (s) ct so Ob - te le ro P uc d s) t( AI02859 Doc ID 10552 Rev 3 83/109 PSD813F2V, PSD854F2V Table 51. CPLD Macrocell Asynchronous Clock Mode Timing (5V devices) -70 Symbol Parameter Maximum Frequency External Feedback Maximum Frequency Internal Feedback (fCNTA) Maximum Frequency Pipelined Data tSA tHA tCHA tCLA tCOA tARDA tMINA Input Setup Time Input Hold Time Clock Input High Time Clock Input Low Time Clock to Output Delay CPLD Array Delay Minimum Clock Period Any macrocell 1/fCNTA Conditions Min Max Min Max Min Max -90 -15 PT Aloc Turbo Slew Off Rate Unit 1/(tSA+tCOA) 38.4 26.32 21.27 MHz fMAXA 1/(tSA+tCOA–10) 62.5 35.71 27.78 MHz 1/(tCHA+tCLA) 71.4 41.67 35.71 MHz 7 8 9 9 21 8 12 12 12 12 14 15 +2 + 10 11 16 bs O let o Pr e du o (s) ct so Ob 16 28 30 eP let 15 37 22 39 od r +2 + 10 + 10 uc s) t( –2 ns ns ns ns ns ns ns + 10 84/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Table 52. CPLD Macrocell Asynchronous Clock Mode Timing (3V devices) -12 Symbol Parameter Maximum Frequency External Feedback Maximum Frequency Internal Feedback (fCNTA) Maximum Frequency Pipelined Data tSA tHA tCHA tCLA tCOA tARD tMINA Input Setup Time Input Hold Time Clock High Time Clock Low Time Clock to Output Delay CPLD Array Delay Minimum Clock Period Any macrocell 1/fCNTA 36 Conditions Min Max Min Max Min Max -15 -20 PT Aloc Turbo Slew Off Rate Unit 1/(tSA+tCOA) 21.7 19.2 16.9 MHz fMAXA 1/(tSA+tCOA–10) 27.8 23.8 20.4 MHz 1/(tCHA+tCLA) 33.3 27 24.4 MHz 10 12 17 13 36 25 12 15 22 15 40 29 13 17 25 16 +4 + 20 bs O let o Pr e du o (s) ct so Ob 42 eP let 46 33 49 ro +4 uc d + 20 + 20 + 20 s) t( –6 ns ns ns ns ns ns ns Doc ID 10552 Rev 3 85/109 PSD813F2V, PSD854F2V Figure 44. Input Macrocell Timing (product term clock) t INH PT CLOCK t INL t IS INPUT t IH OUTPUT t INO AI03101 Table 53. Input Macrocell Timing (5V devices) -70 Symbol tIS tIH tINH tINL tINO Parameter Input Setup Time Input Hold Time NIB Input High Time NIB Input Low Time NIB Input to Combinatorial Delay Conditions Min (Note 1) (Note 1) (Note 1) (Note 1) (Note 1) 0 15 9 9 34 Max Min 0 20 12 12 Max Min 0 26 18 Max -90 -15 PT Aloc Turbo Off Note: 1. Inputs from Port A, B, and C relative to register/ latch clock from the PLD. ALE/AS latch timings refer to tAVLX and tLXAX. Table 54. Input Macrocell Timing (3V devices) Symbol tIS tIH tINH tINL tINO Parameter Input Setup Time Input Hold Time Conditions NIB Input High Time bs O Note: 1. Inputs from Port A, B, and C relative to register/latch clock from the PLD. ALE latch timings refer to tAVLX and tLXAX. let o NIB Input Low Time NIB Input to Combinatorial Delay Pr e du o ct (Note 1) (Note 1) (Note 1) (Note 1) (Note 1) (s) so Ob -12 Min 0 25 12 12 46 Max 0 25 13 13 eP let 18 46 -15 Max Min 0 30 15 15 62 ro 59 uc d +2 + 10 s) t( Unit ns ns ns ns + 10 ns -20 Max Min PT Aloc Turbo Off Unit ns + 20 ns ns ns 70 +4 + 20 ns 86/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Figure 45. READ Timing tAVLX ALE /AS tLVLX A /D MULTIPLEXED BUS ADDRESS NON-MULTIPLEXED BUS DATA NON-MULTIPLEXED BUS tSLQV CSI tRLQV tRLRH RD (PSEN, DS) tRHQZ tRHQX ADDRESS VALID tAVQV ADDRESS VALID DATA VALID tLXAX 1 DATA VALID tEHEL E tTHEH tELTL R/W tAVPV ADDRESS OUT Note: 1. tAVLX and tLXAX are not required for 80C251 in Page Mode or 80C51XA in Burst Mode. bs O let o Pr e du o (s) ct Ob - so te le ro P uc d s) t( AI02895 Doc ID 10552 Rev 3 87/109 PSD813F2V, PSD854F2V Table 55. READ Timing (5V devices) -70 Symbol tLVLX tAVLX tLXAX tAVQV tSLQV Parameter ALE or AS Pulse Width Address Setup Time Address Hold Time Address Valid to Data Valid CS Valid to Data Valid RD to Data Valid 8-Bit Bus tRLQV RD or PSEN to Data Valid 8-Bit Bus, 8031, 80251 RD Data Hold Time RD Pulse Width RD to Data High-Z E Pulse Width R/W Setup Time to Enable R/W Hold Time After Enable Address Input Valid to Address Output Delay (Note 4) (Note 5) (Note 2) (Note 1) (Note 1) (Note 1) 27 6 0 0 27 20 32 10 (Note 3) (Note 3) (Note 3) Conditions Min 15 4 7 70 75 24 31 0 32 25 38 Max Min 20 6 8 90 100 32 38 0 38 30 Max Min 28 10 11 150 150 40 45 + 10 Max -90 -15 Turbo Off Unit ns ns ns ns ns ns ns ns tRHQX tRLRH tRHQZ tEHEL tTHEH tELTL tAVPV Note: 1. 2. 3. 4. 5. 20 RD timing has the same timing as DS, LDS, UDS, and PSEN signals. RD and PSEN have the same timing. Any input used to select an internal PSD function. In multiplexed mode, latched addresses generated from ADIO delay to address output on any Port. RD timing has the same timing as DS, LDS, and UDS signals. bs O let o Pr e du o (s) ct so Ob - eP let 0 25 od r 18 0 uc s) t( ns ns ns ns ns ns 30 88/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Table 56. READ Timing (3V devices) -12 Symbol tLVLX tAVLX tLXAX tAVQV tSLQV Parameter ALE or AS Pulse Width Address Setup Time Address Hold Time Address Valid to Data Valid CS Valid to Data Valid RD to Data Valid 8-Bit Bus tRLQV RD or PSEN to Data Valid 8-Bit Bus, 8031, 80251 RD Data Hold Time RD Pulse Width RD to Data High-Z E Pulse Width R/W Setup Time to Enable R/W Hold Time After Enable Address Input Valid to Address Output Delay (Note 4) (Note 1) 40 15 0 (Note 5) (Note 2) (Note 1) 0 38 38 45 18 (Note 3) (Note 3) (Note 3) Conditions Min 26 9 9 120 120 35 45 0 40 40 52 Max Min 26 10 12 150 150 35 50 0 45 Max Min 30 12 14 200 200 40 55 + 20 Max -15 -20 Turbo Off Unit ns ns ns ns ns ns ns ns tRHQX tRLRH tRHQZ tEHEL tTHEH tELTL tAVPV Note: 1. 2. 3. 4. 5. 33 RD timing has the same timing as DS, LDS, UDS, and PSEN signals. RD and PSEN have the same timing for 8031. Any input used to select an internal PSD function. In multiplexed mode latched address generated from ADIO delay to address output on any Port. RD timing has the same timing as DS, LDS, and UDS signals. bs O let o Pr e du o (s) ct so Ob - eP let 0 35 ro 20 0 uc d 40 45 s) t( ns ns ns ns ns ns Doc ID 10552 Rev 3 89/109 PSD813F2V, PSD854F2V Figure 46. WRITE Timing tAVLX ALE/AS t LVLX A/D MULTIPLEXED BUS ADDRESS VALID tAVWL ADDRESS NON-MULTIPLEXED BUS DATA NON-MULTIPLEXED BUS tSLWL CSI tDVWH WR (DS) t WLWH t WHDX t WHAX ADDRESS VALID DATA VALID DATA VALID t LXAX t EHEL E t THEH R/ W t WLMV tAVPV ADDRESS OUT bs O let o Pr e du o (s) ct so Ob - te le ro P t WHPV uc d t ELTL s) t( STANDARD MCU I/O OUT AI02896 90/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Table 57. WRITE Timing (5V devices) -70 Symbol tLVLX tAVLX tLXAX tAVWL tSLWL tDVWH tWHDX tWLWH tWHAX1 tWHAX2 tWHPV Parameter ALE or AS Pulse Width Address Setup Time Address Hold Time Address Valid to Leading Edge of WR CS Valid to Leading Edge of WR WR Data Setup Time WR Data Hold Time WR Pulse Width Trailing Edge of WR to Address Invalid Trailing Edge of WR to DPLD Address Invalid Trailing Edge of WR to Port Output Valid Using I/O Port Data Register Data Valid to Port Output Valid Using Macrocell Register Preset/Clear Address Input Valid to Address Output Delay WR Valid to Port Output Valid Using Macrocell Register Preset/Clear (Note 1) (Note 1) (Notes 1,3) (Note 3) (Note 3) (Note 3) (Note 3) (Note 3) (Note 3,6) (Note 3) (Notes 3,5) (Note 2) Conditions Min 15 4 7 8 12 25 4 31 6 0 27 Max Min 20 6 8 15 15 35 5 35 8 0 Max Min 28 10 11 20 20 45 5 45 10 Max ns ns ns ns ns ns ns ns -90 -15 Unit tDVMV tAVPV tWLMV Note: 1. 2. 3. 4. 5. 6. Any input used to select an internal PSD function. In multiplexed mode, latched address generated from ADIO delay to address output on any port. WR has the same timing as E, LDS, UDS, WRL, and WRH signals. Assuming data is stable before active WRITE signal. Assuming WRITE is active before data becomes valid. TWHAX2 is the address hold time for DPLD inputs that are used to generate Sector Select signals for internal PSD memory. bs O let o Pr e du o (s) ct Ob - (Notes 3,4) so eP let 42 20 48 od r 30 55 25 55 uc 0 s) t( 38 65 ns ns ns ns 30 65 ns ns Doc ID 10552 Rev 3 91/109 PSD813F2V, PSD854F2V Table 58. WRITE Timing (3V devices) -12 Symbol tLVLX tAVLX tLXAX tAVWL tSLWL tDVWH tWHDX tWLWH tWHAX1 tWHAX2 tWHPV tDVMV tAVPV tWLMV Note: 1. 2. 3. 4. 5. 6. -15 Min 26 10 12 20 20 45 8 48 12 0 33 Max -20 Unit Min 30 12 14 25 25 50 10 53 17 ns ns ns ns ns ns ns Max Parameter ALE or AS Pulse Width Address Setup Time Address Hold Time Address Valid to Leading Edge of WR CS Valid to Leading Edge of WR WR Data Setup Time WR Data Hold Time WR Pulse Width Trailing Edge of WR to Address Invalid Trailing Edge of WR to DPLD Address Invalid Trailing Edge of WR to Port Output Valid Using I/O Port Data Register Data Valid to Port Output Valid Using Macrocell Register Preset/Clear Address Input Valid to Address Output Delay WR Valid to Port Output Valid Using Macrocell Register Preset/Clear Conditions Min 26 (Note 1) (Note 1) (Notes 1,3) (Note 3) (Note 3) (Note 3) (Note 3) (Note 3) (Note 3,6) (Note 3) (Notes 3,5) 9 9 17 17 45 7 46 10 0 Max Any input used to select an internal PSD function. In multiplexed mode, latched address generated from ADIO delay to address output on any port. WR has the same timing as E, LDS, UDS, WRL, and WRH signals. Assuming data is stable before active WRITE signal. Assuming WRITE is active before data becomes valid. TWHAX2 is the address hold time for DPLD inputs that are used to generate Sector Select signals for internal PSD memory. Table 59. Program, WRITE and Erase Times (5V devices) Symbol bs O tWHQV3 tWHQV2 tWHQV1 tQ7VQV let o Flash Program Flash Bulk Erase (pre-programmed) Flash Bulk Erase (not pre-programmed) Sector Erase (pre-programmed) Sector Erase (not pre-programmed) Byte Program Program / Erase Cycles (per Sector) 100,000 Pr e du o 1 (s) ct so Ob (Notes 3,4) (Note 2) eP let 70 33 70 od r 35 70 35 70 uc 0 s) t( 40 80 40 80 ns ns ns ns ns ns Parameter Min. Typ. 8.5 3 5 1 2.2 14 Max. Unit s 30 s s 30 s s 1200 µs cycles tWHWLO Sector Erase Time-Out DQ7 Valid to Output (DQ7-DQ0) Valid (Data Polling)2 100 30 µs ns Note: 1. Programmed to all zero before erase. 2. The polling status, DQ7, is valid tQ7VQV time units before the data byte, DQ0-DQ7, is valid for reading. 92/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Table 60. Program, WRITE and Erase Times (3V devices) Symbol Flash Program Flash Bulk Erase1 (pre-programmed) Flash Bulk Erase (not pre-programmed) tWHQV3 tWHQV2 tWHQV1 Sector Erase (pre-programmed) Sector Erase (not pre-programmed) Byte Program Program / Erase Cycles (per Sector) tWHWLO tQ7VQV Sector Erase Time-Out DQ7 Valid to Output (DQ7-DQ0) Valid (Data Polling)2 100,000 100 30 Parameter Min. Typ. 8.5 3 5 1 2.2 14 1200 30 30 Max. Unit s s s s s µs cycles µs ns Note: 1. Programmed to all zero before erase. 2. The polling status, DQ7, is valid tQ7VQV time units before the data byte, DQ0-DQ7, is valid for reading. bs O let o Pr e du o (s) ct so Ob - te le ro P uc d s) t( Doc ID 10552 Rev 3 93/109 PSD813F2V, PSD854F2V Figure 47. Peripheral I/O READ Timing ALE/AS A/D BUS ADDRESS DATA VALID tAVQV (PA) tSLQV (PA) CSI tRLQV (PA) RD tRLRH (PA) tQXRH (PA) tRHQZ (PA) tDVQV (PA) DATA ON PORT A AI02897 Table 61. Port A Peripheral Data Mode READ Timing (5V devices) -70 Symbol Parameter Address Valid to Data Valid CSI Valid to Data Valid RD to Data Valid tRLQV–PA RD to Data Valid 8031 Mode tDVQV–PA tQXRH–PA tRLRH–PA tRHQZ–PA Data In to Data Out Valid RD Data Hold Time RD Pulse Width Conditions Min tAVQV–PA tSLQV–PA (Note 3) Max 37 -90 Min (Notes 1,4) RD to Data High-Z bs O let o ro P e uc d (s) t Ob - so 0 27 te le 0 32 Max 39 35 32 38 30 ro P Min -15 uc d Max 45 45 40 45 38 s) t( Unit ns ns ns ns ns ns ns Turbo Off + 10 + 10 21 32 22 0 38 25 30 (Note 1) (Note 1) 27 23 ns 94/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Table 62. Port A Peripheral Data Mode READ Timing (3V devices) -12 Symbol tAVQV–PA tSLQV–PA tRLQV–PA tDVQV–PA tQXRH–PA tRLRH–PA tRHQZ–PA Parameter Address Valid to Data Valid CSI Valid to Data Valid RD to Data Valid RD to Data Valid 8031 Mode Data In to Data Out Valid RD Data Hold Time RD Pulse Width RD to Data High-Z (Note 1) (Note 1) 0 36 36 (Notes 1,4) Conditions Min (Note 3) Max 50 37 37 45 38 0 36 40 Min Max 50 45 40 45 40 0 46 45 Min Max 50 50 45 50 45 -15 -20 Turbo Off + 20 + 20 Unit ns ns ns ns ns ns ns ns Figure 48. Peripheral I/O WRITE Timing ALE/AS A / D BUS ADDRESS DATA OUT tWLQV WR (PA) Table 63. Port A Peripheral Data Mode WRITE Timing (5V devices) Symbol tWLQV–PA tDVQV–PA tWHQZ–PA O Note: 1. 2. 3. 4. 5. bs let o WR to Data Propagation Delay Data to Port A Data Propagation Delay WR Invalid to Port A Tri-state od Pr e ct u (s) so Ob Conditions te le PORT A DATA OUT ro P uc d s) t( tWHQZ (PA) tDVQV (PA) AI02898 -70 Min (Note 2) (Note 5) (Note 2) Max 25 22 20 -90 Min Max 35 30 25 -15 Unit Min Max 40 38 33 ns ns ns Parameter RD has the same timing as DS, LDS, UDS, and PSEN (in 8031 combined mode). WR has the same timing as the E, LDS, UDS, WRL, and WRH signals. Any input used to select Port A Data Peripheral mode. Data is already stable on Port A. Data stable on ADIO pins to data on Port A. Doc ID 10552 Rev 3 95/109 PSD813F2V, PSD854F2V Table 64. Port A Peripheral Data Mode WRITE Timing (3V devices) -12 Symbol tWLQV–PA tDVQV–PA tWHQZ–PA Note: 1. 2. 3. 4. 5. -15 Min Max 45 40 33 -20 Unit Min Max 55 45 35 ns ns ns Parameter WR to Data Propagation Delay Data to Port A Data Propagation Delay WR Invalid to Port A Tri-state Conditions Min (Note 2) (Note 5) (Note 2) Max 42 38 33 RD has the same timing as DS, LDS, UDS, and PSEN (in 8031 combined mode). WR has the same timing as the E, LDS, UDS, WRL, and WRH signals. Any input used to select Port A Data Peripheral mode. Data is already stable on Port A. Data stable on ADIO pins to data on Port A. Figure 49. Reset (RESET) Timing VCC VCC(min) tNLNH tNLNH-PO Power-On Reset tOPR tNLNH-A Warm Reset RESET Table 65. Reset (RESET) Timing (5V devices) Symbol tNLNH tNLNH–PO tNLNH–A tOPR Parameter RESET Active Low Time 1 Power On Reset Active Low Time Warm Reset (on the PSD834Fx) 2 RESET High to Operational Device Note: 1. Reset (RESET) does not reset Flash memory Program or Erase cycles. 2. Warm reset aborts Flash memory Program or Erase cycles, and puts the device in READ Mode. Table 66. Reset (RESET) Timing (3V devices) Symbol tNLNH O tNLNH–PO tNLNH–A tOPR bs let o ro P e du ct (s) so Ob - eP let Min 150 1 25 od r uc Max tOPR s) t( AI02866b Conditions Unit ns ms μs 120 ns Parameter Conditions Min 300 1 25 Max Unit ns ms μs RESET Active Low Time 1 Power On Reset Active Low Time Warm Reset (on the PSD834Fx) 2 RESET High to Operational Device 300 ns Note: 1. Reset (RESET) does not reset Flash memory Program or Erase cycles. 2. Warm reset aborts Flash memory Program or Erase cycles, and puts the device in READ Mode. 96/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Figure 50. ISC Timing t ISCCH TCK t ISCCL t ISCPSU t ISCPH TDI/TMS t ISCPZV t ISCPCO ISC OUTPUTS/TDO t ISCPVZ ISC OUTPUTS/TDO Table 67. ISC Timing (5V devices) Symbol Parameter Clock (TCK, PC1) Frequency (except for PLD) Clock (TCK, PC1) High Time (except for PLD) Clock (TCK, PC1) Low Time (except for PLD) Conditions tISCCF tISCCH tISCCL tISCCFP tISCCHP tISCCLP tISCPSU tISCPH tISCPCO Clock (TCK, PC1) Frequency (PLD only) Clock (TCK, PC1) High Time (PLD only) Clock (TCK, PC1) Low Time (PLD only) O tISCPZV bs let o ISC Port Set Up Time ISC Port Hold Up Time ISC Port Clock to Output ISC Port High-Impedance to Valid Output ISC Port Valid Output to High-Impedance Pr e od uc (s) t so Ob (Note 1) (Note 1) (Note 1) (Note 2) (Note 2) (Note 2) te le -70 Min 20 23 23 2 240 240 7 5 21 21 21 ro P -90 Min 26 26 uc d AI02865 s) t( Unit Max 14 MHz ns ns 2 MHz ns ns ns ns 25 25 25 ns ns ns -15 Min Max Max 18 31 31 2 240 240 8 5 23 23 23 240 240 10 5 tISCPVZ Note: 1. For non-PLD Programming, Erase or in ISC by-pass mode. 2. For Program or Erase PLD only. Doc ID 10552 Rev 3 97/109 PSD813F2V, PSD854F2V Table 68. ISC Timing (3V devices) -12 Symbol Parameter Clock (TCK, PC1) Frequency (except for PLD) Clock (TCK, PC1) High Time (except for PLD) Clock (TCK, PC1) Low Time (except for PLD) Clock (TCK, PC1) Frequency (PLD only) Clock (TCK, PC1) High Time (PLD only) Clock (TCK, PC1) Low Time (PLD only) ISC Port Set Up Time ISC Port Hold Up Time ISC Port Clock to Output ISC Port High-Impedance to Valid Output ISC Port Valid Output to High-Impedance Conditions Min tISCCF tISCCH tISCCL tISCCFP tISCCHP tISCCLP tISCPSU tISCPH tISCPCO tISCPZV tISCPVZ (Note 1) (Note 1) (Note 1) (Note 2) (Note 2) (Note 2) 240 240 12 5 30 30 30 40 40 2 240 240 13 5 36 36 Max 12 45 45 2 240 240 15 5 Min Max 10 51 51 2 Min Max 9 MHz ns ns MHz ns ns ns -15 -20 Unit Note: 1. For non-PLD Programming, Erase or in ISC by-pass mode. 2. For Program or Erase PLD only. Table 69. Power-down Timing (5V devices) Symbol tLVDV tCLWH Parameter ALE Access Time from Power-down Maximum Delay from APD Enable to Internal PDN Valid Signal Note: 1. tCLCL is the period of CLKIN (PD1). Table 70. Power-down Timing (3V devices) Symbol bs O tLVDV tCLWH let o Pr e du o (s) ct so Ob Conditions Using CLKIN (PD1) te le -70 Min Max 80 ro P -90 Min 36 uc d s) t( 40 40 40 ns ns ns ns -15 Unit Min Max 150 ns µs Max 90 15 * tCLCL1 -12 Conditions Min Max 145 Using CLKIN (PD1) -15 Min Max 150 15 * tCLCL1 -20 Unit Min Max 200 ns µs Parameter ALE Access Time from Power-down Maximum Delay from APD Enable to Internal PDN Valid Signal Note: 1. tCLCL is the period of CLKIN (PD1). 98/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V PACKAGE MECHANICAL In order to meet environmental requirements, ST offers these devices in different grades of ECOPACK® packages, depending on their level of environmental compliance. ECOPACK® specifications, grade definitions and product status are available at: www.st.com. ECOPACK® is an ST trademark. Figure 51. PQFP52 - 52-pin Plastic, Quad, Flat Package Mechanical Drawing D D1 D2 A2 e Ne E2 E1 E N 1 Nd QFP-A Note: Drawing is not to scale. bs O let o Pr e du o (s) ct so Ob - te le ro P A L1 uc d b s) t( CP c A1 α L Doc ID 10552 Rev 3 99/109 PSD813F2V, PSD854F2V Table 71. PQFP52 - 52-pin Plastic, Quad, Flat Package Mechanical Dimensions mm Symb. Typ. A A1 A2 b c D D1 D2 E E1 E2 e L L1 α N Nd Ne CP 13.20 10.00 7.80 13.20 10.00 7.80 0.65 0.88 1.60 2.00 1.80 0.22 0.11 13.15 9.95 – 13.15 9.95 – – 0.73 – 0° 52 13 13 Min. Max. 2.35 0.25 2.10 0.38 0.23 13.25 10.05 – 13.25 10.05 – – 1.03 – 7° 0.520 0.394 0.307 0.520 0.394 0.307 0.026 0.035 0.063 0.079 0.077 0.009 0.004 0.518 0.392 – 0.518 0.392 – Typ. Min. Max. 0.093 0.010 0.083 0.015 0.009 0.522 0.396 – 0.522 inches bs O let o Pr e du o (s) ct Ob 0.10 so te le ro P 0° 52 13 13 0.029 uc d s) t( 0.396 – 0.041 7° 0.004 100/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Figure 52. PLCC52 - 52-lead Plastic Lead, Chip Carrier Package Mechanical Drawing D D1 M 1N A1 A2 M1 b1 E1 E D2/E2 D3/E3 b L1 L e A CP PLCC-B Note: Drawing is not to scale. Table 72. PLCC52 - 52-lead Plastic Lead, Chip Carrier Package Mechanical Dimensions mm Symbol Typ. A A1 A2 B B1 C D D1 D2 Min. 4.19 2.54 Max. 0.33 O bs E E1 E2 e R N let o Pr e 1.27 0.89 du o 0.66 0.246 (s) ct – Ob 4.57 2.79 0.91 0.53 0.81 0.261 20.19 19.15 18.54 20.19 19.15 18.54 – – so te le Typ. ro P Min. – uc d s) t( Max. 0.180 0.110 0.036 0.021 0.032 0.0103 0.795 0.754 0.730 0.795 0.754 0.730 – – C inches 0.165 0.100 0.013 0.026 0.0097 0.785 0.750 0.690 0.785 0.750 0.690 0.050 0.035 – – 52 13 13 19.94 19.05 17.53 19.94 19.05 17.53 – – 52 13 13 Nd Ne Doc ID 10552 Rev 3 101/109 PSD813F2V, PSD854F2V Figure 53. TQFP64 - 64-lead Thin Quad Flatpack, Package Outline D D1 D2 A2 e Ne E2 E1 E b N 1 Nd A QFP-A Note: Drawing is not to scale. bs O let o Pr e du o (s) ct so Ob - eP let A1 α L1 ro L uc d c s) t( CP 102/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Table 73. TQFP64 - 64-lead Thin Quad Flatpack, Package Mechanical Data mm Symb. Typ. A A1 A2 α b c D D1 D2 E E1 E2 e L L1 CP N Nd Ne 16.00 14.00 12.00 16.00 14.00 12.00 0.80 0.60 1.00 0.10 64 16 16 15.90 13.98 11.95 15.90 13.98 11.95 0.75 0.45 0.94 0.10 1.40 3.5° 0.35 Min. 1.42 0.07 1.36 0.0° 0.33 Max. 1.54 0.14 1.44 7.0° 0.38 0.17 16.10 14.03 12.05 16.10 14.03 12.05 0.85 0.75 1.06 0.630 0.551 0.472 0.630 0.551 0.472 0.031 0.024 0.626 0.550 0.470 0.626 0.550 0.470 0.030 0.004 0.055 3.5° 0.014 Typ. Min. 0.056 0.003 0.054 0.0° 0.013 Max. 0.061 0.005 0.057 7.0° 0.015 0.006 0.634 0.552 0.474 inches bs O let o Pr e du o (s) ct Ob - so te le 0.004 0.039 Pr 0.018 od 64 16 16 uc s) t( 0.634 0.552 0.474 0.033 0.030 0.042 0.037 Doc ID 10552 Rev 3 103/109 PSD813F2V, PSD854F2V PART NUMBERING Table 74. Ordering Information Scheme Example: Device Type PSD8 = 8-bit PSD with Register Logic PSD9 = 8-bit PSD with Combinatorial Logic SRAM Capacity 1 = 16 Kbit 5 = 256 Kbit Flash Memory Capacity 3 = 1 Mbit (128K x 8) 4 = 2 Mbit (256K x 8) 2nd Flash Memory 2 = 256 Kbit Flash memory + SRAM Operating Voltage V = VCC = 3.0 to 3.6V Speed 70 = 70ns 90 = 90ns 12 = 120ns 15 = 150ns 20 = 200ns Package J = ECOPACK PLCC52 M = ECOPACK PQFP52 U = ECOPACK TQFP64 PSD8 1 3 F 2 V – 15 J 1 T Temperature Range blank = 0 to 70°C (commercial) 1 = –40 to 85°C (industrial) bs O Option T = Tape & Reel Packing let o Pr e du o (s) ct so Ob - te le ro P uc d s) t( For a list of available options (e.g., speed, package) or for further information on any aspect of this device, please contact your nearest ST Sales Office. 104/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V APPENDIX A. PQFP52 PIN ASSIGNMENTS Table 75. PQFP52 Connections (Figure 2) Pin Number 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 Pin Assignments PD2 PD1 PD0 PC7 PC6 PC5 PC4 VCC GND PC3 PC2 PC1 PC0 PA7 PA6 PA5 PA4 PA3 GND PA2 Pin Number 27 28 29 30 31 32 33 34 35 36 37 38 39 Pin Assignments AD4 AD5 AD6 AD7 VCC AD8 AD9 AD10 AD11 AD12 bs O let o 25 26 ro P e uc d PA1 PA0 (s) t so Ob - te le 41 42 43 44 45 46 47 48 49 50 51 52 40 ro P uc d AD13 AD14 AD15 s) t( CNTL0 RESET CNTL2 CNTL1 PB7 PB6 GND PB5 PB4 PB3 PB2 PB1 PB0 AD0 AD1 AD2 AD3 Doc ID 10552 Rev 3 105/109 PSD813F2V, PSD854F2V APPENDIX B. PLCC52 PIN ASSIGNMENTS Table 76. PLCC52 Connections (Figure 3) Pin Number 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 Pin Assignments GND PB5 PB4 PB3 PB2 PB1 PB0 PD2 PD1 PD0 PC7 PC6 PC5 PC4 VCC GND PC3 PC2 PC1 PC0 Pin Number 27 28 29 30 31 32 33 34 35 36 37 38 39 Pin Assignments PA2 PA1 PA0 AD0 AD1 AD2 AD3 AD4 AD5 AD6 bs O let o 25 26 ro P e uc d PA7 PA6 PA5 PA4 PA3 (s) t so Ob - te le 41 42 43 44 45 46 47 48 49 50 51 52 40 ro P uc d AD7 VCC s) t( AD8 AD9 AD10 AD11 AD12 AD13 AD14 AD15 CNTL0 RESET CNTL2 CNTL1 PB7 PB6 GND 106/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V APPENDIX C. TQFP64 PIN ASSIGNMENTS Table 77. TQFP64 Connections (Figure 4) Pin Number 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 Pin Assignments PD2 PD1 PD0 PC7 PC6 PC5 VCC VCC VCC GND GND PC3 PC2 PC1 PC0 NC NC NC PA7 PA6 Pin Number 33 34 35 36 37 38 39 40 41 42 43 44 45 Pin Assignments AD3 AD4 AD5 AD6 AD7 VCC VCC AD8 AD9 AD10 O bs let o 25 26 27 28 29 30 31 32 Pr e od uc PA5 PA4 PA3 (s) t Ob - so te le 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 46 ro P uc d AD11 s) t( AD12 AD13 AD14 AD15 CNTL0 NC RESET CNTL2 CNTL1 PB7 PB6 GND GND PB5 PB4 PB3 PB2 PB1 PB0 NC NC GND GND PA2 PA1 PA0 AD0 AD1 N/D AD2 Doc ID 10552 Rev 3 107/109 PSD813F2V, PSD854F2V REVISION HISTORY Table 78. Document Revision History Date 04-Jun-04 Version 1.0 Description of Revision First Edition (3V split from original) Removed PSD853F2V and PSD833F2V root part numbers. Updated Table 1 to remove PSD813F3, PSD813F4, PSD833F2, PSD834F2, and PSD853F2. Updated Table 74 to remove options not mentioned in the datasheet. Updated voltage range in title. Added ECOPACK text in cover page and in section PACKAGE MECHANICAL. Updated datasheet status to “not for new design”. Backup battery feature removed: updated FEATURES SUMMARY, Table 2 (pins PC2 and PC4 configurations ), SUMMARY DESCRIPTION, PSD Block Diagram figure, Memory section, SRAM section, Port C – Functionality and Structure section. Removed SRAM standby mode in POWER MANAGEMENT. Updated PC2 in Table 76. Removed VSTBY, ISTBY, VOH1, VDF, and IIDLE from Table 45 and Table 46. Removed VSTBYON timings tables. Updated disclaimer text. Updated disclaimer on last page. Corrected pin 7 of TQFP64 package in Figure 4.TQFP64 Connections. Updated Figure 5.PSD Block Diagram. 12-Feb-2009 2 05-May-2009 3 bs O let o Pr e du o (s) ct so Ob - te le ro P uc d s) t( 108/109 Doc ID 10552 Rev 3 PSD813F2V, PSD854F2V Please Read Carefully: Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any time, without notice. All ST products are sold pursuant to ST’s terms and conditions of sale. Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no liability whatsoever relating to the choice, selection or use of the ST products and services described herein. No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein. UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE, ST PRODUCTS ARE NOT RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY, DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK. Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any liability of ST. bs O let o Pr e du o (s) ct so Ob - te le ro P uc d s) t( ST and the ST logo are trademarks or registered trademarks of ST in various countries. Information in this document supersedes and replaces all information previously supplied. The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners. © 2009 STMicroelectronics - All rights reserved STMicroelectronics group of companies Australia - Belgium - Brazil - Canada - China - Czech Republic - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan Malaysia - Malta - Morocco - Philippines - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States of America www.st.com Doc ID 10552 Rev 3 109/109
PSD814F2V-70JT 价格&库存

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

免费人工找货