Справочник ПользователяСодержаниеFEATURES SUMMARY1Figure 1. Packages1Table 1. Device Summary2SUMMARY DESCRIPTION7Figure 2. Block Diagram7Figure 3. TQFP52 Connections8Figure 4. TQFP80 Connections9Table 2. 80-Pin Package Pin Description1052-PIN PACKAGE I/O PORT12ARCHITECTURE OVERVIEW13Memory Organization13Figure 5. Memory Map and Address Space13Registers14Figure 6. 8032 MCU Registers14Figure 7. Configuration of BA 16-bit Registers14Figure 8. Stack Pointer14Figure 9. PSW (Program Status Word) Register15Program Memory15Data memory15RAM15XRAM-PSD15Figure 10. Interrupt Location of Program Memory15SFR16Table 3. RAM Address16Addressing Modes16Figure 11. Direct Addressing16Figure 12. Indirect Addressing16Figure 13. Indexed Addressing17Arithmetic Instructions17Table 4. Arithmetic Instructions18Logical Instructions18Table 5. Logical Instructions19Data Transfers20Table 6. Data Transfer Instructions that Access Internal Data Memory Space20Table 7. Shifting a BCD Number Two Digits to the Right (using direct MOVs: 14 bytes)21Table 8. Shifting a BCD Number Two Digits to the Right (using direct XCHs: 9 bytes)21Table 9. Shifting a BCD Number One Digit to the Right21Table 10. Data Transfer Instruction that Access External Data Memory Space22Table 11. Lookup Table READ Instruction22Boolean Instructions23Relative Offset23Table 12. Boolean Instructions23Jump Instructions24Table 13. Unconditional Jump Instructions24Machine Cycles25Table 14. Conditional Jump Instructions25Figure 14. State Sequence in uPSD321x Devices26uPSD3200 HARDWARE DESCRIPTION27Figure 15. uPSD321x Devices Functional Modules27MCU MODULE DISCRIPTION28Special Function Registers28Table 15. SFR Memory Map28Table 16. List of all SFR29Table 17. PSD Module Register Address Offset32INTERRUPT SYSTEM34External Int034Timer 0 and 1 Interrupts34Timer 2 Interrupt34I2C Interrupt34External Int134USB Interrupt34Figure 16. Interrupt System35USART Interrupt36Interrupt Priority Structure36Interrupts Enable Structure36Table 18. Priority Levels36Table 19. SFR Register36Table 20. Description of the IE Bits.37Table 21. Description of the IEA Bits37Table 22. Description of the IP Bits37Table 23. Description of the IPA Bits38How Interrupts are Handled38Table 24. Vector Addresses38POWER-SAVING MODE39Idle Mode39Power-Down Mode39Power Control Register39Idle Mode39Power-Down Mode39Table 25. Power-Saving Mode Power Consumption39Table 26. Pin Status During Idle and Power-down Mode39Table 27. Description of the PCON Bits40I/O PORTS (MCU Module)40Table 28. I/O Port Functions40Table 29. P1SFS (91H)41Table 30. P3SFS (93H)41Table 31. P4SFS (94H)41PORT Type and Description42Figure 17. PORT Type and Description (Part 1)42Figure 18. PORT Type and Description (Part 2)43OSCILLATOR44Figure 19. Oscillator44SUPERVISORY45External Reset45Low VDD Voltage Reset45Watchdog Timer Overflow45USB Reset45Figure 20. RESET Configuration45WATCHDOG TIMER46Table 32. Watchdog Timer Key Register (WDKEY: 0AEH)46Table 33. Description of the WDKEY Bits46Figure 21. RESET Pulse Width47Table 34. Watchdog Timer Clear Register (WDRST: 0A6H)47Table 35. Description of the WDRST Bits47TIMER/COUNTERS (TIMER 0, TIMER 1 AND TIMER 2)48Timer 0 and Timer 148Table 36. Control Register (TCON)48Table 37. Description of the TCON Bits48Table 38. TMOD Register (TMOD)48Table 39. Description of the TMOD Bits49Figure 22. Timer/Counter Mode 0: 13-bit Counter50Timer 251Figure 23. Timer/Counter Mode 2: 8-bit Auto-reload51Table 40. Timer/Counter 2 Control Register (T2CON)51Table 41. Timer/Counter 2 Operating Modes52Table 42. Description of the T2CON Bits52Figure 24. Timer 2 in Capture Mode53Figure 25. Timer 2 in Auto-Reload Mode53Figure 26. Timer/Counter Mode 3: Two 8-bit Counters54STANDARD SERIAL INTERFACE (UART)55Multiprocessor Communications55Serial Port Control Register56Figure 27. Serial Port Mode 0, Block Diagram56Table 43. Serial Port Control Register (SCON)56Table 44. Description of the SCON Bits57Table 45. Timer 1-Generated Commonly Used Baud Rates59Figure 28. Serial Port Mode 0, Waveforms60Figure 29. Serial Port Mode 1, Block Diagram61Figure 30. Serial Port Mode 1, Waveforms61Figure 31. Serial Port Mode 2, Block Diagram63Figure 32. Serial Port Mode 2, Waveforms63Figure 33. Serial Port Mode 3, Block Diagram64Figure 34. Serial Port Mode 3, Waveforms64ANALOG-TO-DIGITAL CONVERTOR (ADC)65ADC Interrupt65Figure 35. A/D Block Diagram65Table 46. ADC SFR Memory Map66Table 47. Description of the ACON Bits66Table 48. ADC Clock Input66PULSE WIDTH MODULATION (PWM)674-channel PWM Unit (PWM 0-3)67Figure 36. Four-Channel 8-bit PWM Block Diagram68Table 49. PWM SFR Memory Map69Programmable Period 8-bit PWM70Figure 37. Programmable PWM 4 Channel Block Diagram70PWM 4 Channel Operation71Figure 38. PWM 4 With Programmable Pulse Width and Frequency71I2C INTERFACE72Figure 39. Block Diagram of the I2C Bus Serial I/O72Table 50. Serial Control Register (S2CON)72Table 51. Description of the S2CON Bits73Table 52. Selection of the Serial Clock Frequency SCL in Master Mode73Serial Status Register (S2STA)74Data Shift Register (S2DAT)74Table 53. Serial Status Register (S2STA)74Table 54. Description of the S2STA Bits74Table 55. Data Shift Register (S2DAT)74Address Register (S2ADR)75Table 56. Address Register (S2ADR)75Table 57. Start /Stop Hold Time Detection Register (S2SETUP)75Table 58. System Cock of 40MHz75Table 59. System Clock Setup Examples75USB HARDWARE76USB related registers76Table 60. USB Address Register (UADR: 0EEh)76Table 61. Description of the UADR Bits76Table 62. USB Interrupt Enable Register (UIEN: 0E9h)77Table 63. Description of the UIEN Bits77Table 64. USB Interrupt Status Register (UISTA: 0E8h)78Table 65. Description of the UISTA Bits78Table 66. USB Endpoint0 Transmit Control Register (UCON0: 0EAh)79Table 67. Description of the UCON0 Bits79Table 68. USB Endpoint1 (and 2) Transmit Control Register (UCON1: 0EBh)80Table 69. Description of the UCON1 Bits80Table 70. USB Control Register (UCON2: 0ECh)81Table 71. Description of the UCON2 Bits81Table 72. USB Endpoint0 Status Register (USTA: 0EDh)81Table 73. Description of the USTA Bits81Table 74. USB Endpoint0 Data Receive Register (UDR0: 0EFh)81Table 75. USB Endpoint0 Data Transmit Register (UDT0: 0E7h)81Table 76. USB Endpoint1 Data Transmit Register (UDT1: 0E6h)81Table 77. USB SFR Memory Map82Transceiver83Figure 40. Low Speed Driver Signal Waveforms83Table 78. Transceiver DC Characteristics84Table 79. Transceiver AC Characteristics84Receiver Characteristics85Figure 41. Differential Input Sensitivity Over Entire Common Mode Range85External USB Pull-Up Resistor86Figure 42. USB Data Signal Timing and Voltage Levels86Figure 43. Receiver Jitter Tolerance86Figure 44. Differential to EOP Transition Skew and EOP Width87Figure 45. Differential Data Jitter87PSD MODULE88Functional Overview88Figure 46. PSD MODULE Block Diagram89In-System Programming (ISP)90Table 80. Methods of Programming Different Functional Blocks of the PSD MODULE90DEVELOPMENT SYSTEM91Figure 47. PSDsoft Express Development Tool91PSD MODULE REGISTER DESCRIPTION AND ADDRESS OFFSET92Table 81. Register Address Offset92PSD MODULE DETAILED OPERATION93MEMORY BLOCKS93Primary Flash Memory and Secondary Flash memory Description93Memory Block Select Signals93Instructions94Table 82. Instructions95Power-down Instruction and Power-up Mode96READ96Table 83. Status Bit97Programming Flash Memory98Figure 48. Data Polling Flowchart98Figure 49. Data Toggle Flowchart99Erasing Flash Memory100Specific Features101Table 84. Sector Protection/Security Bit Definition – Flash Protection Register101Table 85. Sector Protection/Security Bit Definition – Secondary Flash Protection Register101SRAM102Sector Select and SRAM Select102Figure 50. Priority Level of Memory and I/O Components in the PSD MODULE102Table 86. VM Register103Figure 51. Separate Space Mode104Figure 52. Combined Space Mode104Page Register105Figure 53. Page Register105PLDs106Table 87. DPLD and CPLD Inputs106The Turbo Bit in PSD MODULE106Figure 54. PLD Diagram107Decode PLD (DPLD)108Figure 55. DPLD Logic Array108Complex PLD (CPLD)109Figure 56. Macrocell and I/O Port109Output Macrocell (OMC)110Table 88. Output Macrocell Port and Data Bit Assignments110Product Term Allocator111Figure 57. CPLD Output Macrocell111Input Macrocells (IMC)112Figure 58. Input Macrocell112I/O PORTS (PSD MODULE)113General Port Architecture113Figure 59. General I/O Port Architecture113Port Operating Modes114MCU I/O Mode114PLD I/O Mode114Address Out Mode114Peripheral I/O Mode114JTAG In-System Programming (ISP)114Figure 60. Peripheral I/O Mode115Table 89. Port Operating Modes115Table 90. Port Operating Mode Settings115Table 91. I/O Port Latched Address Output Assignments115Port Configuration Registers (PCR)116Table 92. Port Configuration Registers (PCR)116Table 93. Port Pin Direction Control, Output Enable P.T. Not Defined116Table 94. Port Pin Direction Control, Output Enable P.T. Defined116Table 95. Port Direction Assignment Example116Port Data Registers117Table 96. Drive Register Pin Assignment117Table 97. Port Data Registers117Ports A and B – Functionality and Structure118Figure 61. Port A and Port B Structure118Port C – Functionality and Structure119Figure 62. Port C Structure119Port D – Functionality and Structure120Figure 63. Port D Structure120External Chip Select121Figure 64. Port D External Chip Select Signals121POWER MANAGEMENT122Figure 65. APD Unit122Figure 66. Enable Power-down Flow Chart123Table 98. Power-down Mode’s Effect on Ports123PLD Power Management124PSD Chip Select Input (CSI, PD2)124Input Clock124Input Control Signals124Table 99. Power Management Mode Registers PMMR0124Table 100. Power Management Mode Registers PMMR2125Table 101. APD Counter Operation125RESET TIMING AND DEVICE STATUS AT RESET126Warm RESET126I/O Pin, Register and PLD Status at RESET126Figure 67. Reset (RESET) Timing126Table 102. Status During Power-on RESET, Warm RESET and Power-down Mode126PROGRAMMING IN-CIRCUIT USING THE JTAG SERIAL INTERFACE127Standard JTAG Signals127Table 103. JTAG Port Signals127JTAG Extensions127Security and Flash memory Protection127INITIAL DELIVERY STATE127AC/DC PARAMETERS128Figure 68. PLD ICC /Frequency Consumption (5V range)128Figure 69. PLD ICC /Frequency Consumption (3V range)128Table 104. PSD MODULE Example, Typ. Power Calculation at VCC = 5.0V (Turbo Mode Off)129MAXIMUM RATING130Table 105. Absolute Maximum Ratings130EMC CHARACTERISTICS131Functional EMS (Electromagnetic Susceptibility)131Designing Hardened Software To Avoid Noise Problems131Absolute Maximum Ratings (Electrical Sensitivity)131Table 106. EMS Test Results131Table 107. ESD Absolute Maximum Ratings131Table 108. Latch-up and Dynamic Latch-up Electrical Sensitivities132DC AND AC PARAMETERS133Table 109. Operating Conditions (5V Devices)133Table 110. Operating Conditions (3V Devices)133Table 111. AC Signal Letter Symbols for Timing133Table 112. AC Signal Behavior Symbols for Timing133Figure 70. Switching Waveforms – Key134Table 113. Major Parameters135Table 114. DC Characteristics (5V Devices)136Table 115. DC Characteristics (3V Devices)138Figure 71. External Program Memory READ Cycle140Table 116. External Program Memory AC Characteristics (with the 5V MCU Module)140Table 117. External Program Memory AC Characteristics (with the 3V MCU Module)141Figure 72. External Data Memory READ Cycle142Table 118. External Clock Drive (with the 5V MCU Module)142Table 119. External Clock Drive (with the 3V MCU Module)142Figure 73. External Data Memory WRITE Cycle143Table 120. External Data Memory AC Characteristics (with the 5V MCU Module)143Table 121. External Data Memory AC Characteristics (with the 3V MCU Module)144Table 122. A/D Analog Specification144Figure 74. Input to Output Disable / Enable145Table 123. CPLD Combinatorial Timing (5V Devices)145Table 124. CPLD Combinatorial Timing (3V Devices)145Figure 75. Synchronous Clock Mode Timing – PLD146Table 125. CPLD Macrocell Synchronous Clock Mode Timing (5V Devices)146Table 126. CPLD Macrocell Synchronous Clock Mode Timing (3V Devices)147Figure 76. Asynchronous RESET / Preset147Figure 77. Asynchronous Clock Mode Timing (Product Term Clock)147Table 127. CPLD Macrocell Asynchronous Clock Mode Timing (5V Devices)148Table 128. CPLD Macrocell Asynchronous Clock Mode Timing (3V Devices)148Figure 78. Input Macrocell Timing (Product Term Clock)149Table 129. Input Macrocell Timing (5V Devices)149Table 130. Input Macrocell Timing (3V Devices)149Table 131. Program, WRITE and Erase Times (5V Devices)150Table 132. Program, WRITE and Erase Times (3V Devices)150Figure 79. Peripheral I/O READ Timing151Table 133. Port A Peripheral Data Mode READ Timing (5V Devices)151Table 134. Port A Peripheral Data Mode READ Timing (3V Devices)151Figure 80. Peripheral I/O WRITE Timing152Table 135. Port A Peripheral Data Mode WRITE Timing (5V Devices)152Table 136. Port A Peripheral Data Mode WRITE Timing (3V Devices)152Figure 81. Reset (RESET) Timing153Table 137. Reset (RESET) Timing (5V Devices)153Table 138. Reset (RESET) Timing (3V Devices)153Table 139. VSTBYON Definitions Timing (5V Devices)153Table 140. VSTBYON Timing (3V Devices)153Figure 82. ISC Timing154Table 141. ISC Timing (5V Devices)154Table 142. ISC Timing (3V Devices)155Figure 83. MCU Module AC Measurement I/O Waveform155Figure 84. PSD MODULE AC Float I/O Waveform155Figure 85. External Clock Cycle156Figure 86. Recommended Oscillator Circuits156Figure 87. PSD MODULE AC Measurement I/O Waveform156Figure 88. PSD MODULEAC Measurement Load Circuit156Table 143. Capacitance156PACKAGE MECHANICAL INFORMATION157Figure 89. TQFP52 – 52-lead Plastic Thin, Quad, Flat Package Outline157Table 144. TQFP52 – 52-lead Plastic Thin, Quad, Flat Package Mechanical Data158Figure 90. TQFP80 – 80-lead Plastic Thin, Quad, Flat Package Outline159Table 145. TQFP80 – 80-lead Plastic Thin, Quad, Flat Package Mechanical Data160PART NUMBERING161Table 146. Ordering Information Scheme161REVISION HISTORY162Table 147. Document Revision History162Размер: 2,3 МБСтраницы: 163Язык: EnglishПросмотреть