W65c265i1m16sa Microcontroller Datasheet
Total Page:16
File Type:pdf, Size:1020Kb
July 10, 2019 W65C265i1M16SA Datasheet W65C265i1M16SA Microcontroller Datasheet WDC reserves the right to make changes at any time without notice in order to improve design and supply the best possible product. Information contained herein is provided gratuitously and without liability, to any user. Reasonable efforts have been made to verify the accuracy of the information but no guarantee whatsoever is given as to the accuracy or as to its applicability to particular uses. In every instance, it must be the responsibility of the user to determine the suitability of the products for each application. WDC products are not authorized for use as critical components in life support devices or systems. Nothing contained herein shall be construed as a recommendation to use any product in violation of existing patents or other rights of third parties. The sale of any WDC product is subject to all WDC Terms and Conditions of Sales and Sales Policies, copies of which are available upon request. Copyright (C) 1978-2019 by The Western Design Center, Inc. All rights reserved, including the right of reproduction in whole or in part in any form. Document Version 1.0 Page 1 July 10, 2019 W65C265i1M16SA Datasheet This page intentionally left blank. Document Version 1.0 Page 2 July 10, 2019 W65C265i1M16SA Datasheet Table of Contents DOCUMENT REVISION HISTORY ....................................................................................................... 5 1 INTRODUCTION ...................................................................................................................... 6 1.1 Key Features of the W65C265i1M16SA Microcontroller .................................................... 7 1.2 Intel MAX 10 Device Maximum Resources .......................................................................... 7 1.3 Functional Block Diagram ..................................................................................................... 8 1.4 Controller Function Description ........................................................................................... 9 2 MODULE DESCRIPTIONS ...................................................................................................... 9 2.1 CLOCK MODULE .................................................................................................................... 9 2.2 RESET MODULE ..................................................................................................................... 9 2.3 W65C816RTL Programming Model ...................................................................................... 9 2.4 Priority Interrupt Controller Module Information .............................................................. 10 2.4.1 Priority Encoded Interrupt Vector Module ......................................................................... 10 2.5 Memory Map .......................................................................................................................... 11 2.6 VIA Port Module .................................................................................................................... 11 2.7 GPIO Port Modules ............................................................................................................... 12 2.7.1 GPIO Module Registers Description - 5 Register Version ............................................... 12 2.7.2 GPIO Module Registers Description - 2 Register Version ............................................... 13 2.8 Hardware Breakpoint Module (HBM) .................................................................................. 14 2.8.1 Hardware Breakpoint Match (HBM) Registers Description ............................................. 14 2.9 ACIA Modules ........................................................................................................................ 15 2.9.1 ACIA Control Register Description ..................................................................................... 15 2.9.2 ACIA Command Register Description ................................................................................ 16 2.9.3 ACIA Status Register Description ....................................................................................... 17 2.9.4 ACIA Data Register Description .......................................................................................... 17 2.10 I2C Interface Module ............................................................................................................. 18 2.10.1 I2C Status Register Description .......................................................................................... 18 2.10.2 I2C Command Register Description ................................................................................... 19 2.10.3 I2C Receive Register Description ....................................................................................... 19 2.10.4 I2C Transmit Register Description ...................................................................................... 20 2.10.5 I2C Control Register Description ........................................................................................ 20 2.10.6 I2C Clock Prescale Register Description ........................................................................... 21 2.11 SPI Module ............................................................................................................................. 22 2.11.1 SPI Extension Register Description ................................................................................... 22 2.11.2 SPI Data Register Description ............................................................................................. 22 2.11.3 SPI Status Register Description .......................................................................................... 23 2.11.4 SPI Control Register Description ........................................................................................ 24 2.12 Multipliers .............................................................................................................................. 25 2.12.1 Unsigned Multiplication Equation and Register Description .......................................... 25 2.12.2 Signed Multiplication Equation and Register Description ............................................... 25 2.12.3 Multiplication Code Example ............................................................................................... 26 2.13 Hardware Divider .................................................................................................................. 27 2.13.1 Unsigned Divide Equation and Register Description ....................................................... 27 2.14 Analog to Digital Converter Module ................................................................................... 28 2.14.1 ADC Module Register Overview .......................................................................................... 28 2.14.2 ADC Control Register ........................................................................................................... 28 2.14.3 ADC Sequencer Data Register ............................................................................................ 28 2.14.4 ADC Sample Store Address Register ................................................................................. 29 2.14.5 ADC Sample Store Data Registers ..................................................................................... 29 2.14.6 ADC_TSD Temperature Conversion Chart in °C ............................................................... 30 2.14.7 ADC Code Example .............................................................................................................. 30 2.15 Chip ID Module ...................................................................................................................... 32 Document Version 1.0 Page 3 July 10, 2019 W65C265i1M16SA Datasheet 2.15.1 Chip ID Register Description ............................................................................................... 32 2.16 User FLASH Module ............................................................................................................. 33 2.16.1 User FLASH Module Register Overview ............................................................................ 33 2.16.2 UFM Command Register Description ................................................................................. 34 2.16.3 UFM Write Protect Register Description ............................................................................ 34 2.16.4 UFM Sector Erase Register Description ............................................................................ 35 2.16.5 UFM Page Erase Register Description ............................................................................... 35 2.16.6 UFM FLASH Address Registers Description ..................................................................... 36 2.16.7 UFM FLASH Data Registers Description ........................................................................... 37 2.17 MyMENSCH™ Monitor ......................................................................................................... 38 3 IO Connectors with Ball Assignments on MyMENSCH™ ................................................ 40 3.1 Left IO Connector J3 on MyMENSCH™ ............................................................................. 40 3.2 Right IO Connector J4 on MyMENSCH™ .......................................................................... 41