Transcription of GENERAL DESCRIPTION - Microcontroller …
1 N76E003 Datasheet Oct 28, 2016 Page 1 of 261 Rev. Nuvoton 1T 8051-based Microcontroller N76E003 Datasheet N76E003 Datasheet Oct 28, 2016 Page 2 of 261 Rev. TABLE OF CONTENTS 1. GENERAL DESCRIPTION .. 5 2. FEATURES .. 6 3. BLOCK DIAGRAM .. 9 4. PIN CONFIGURATION .. 10 5. MEMORY ORGANIZATION .. 14 Program Memory .. 14 Data Memory .. 16 On-Chip XRAM .. 18 Non-Volatile Data Storage .. 18 6. SPECIAL FUNCTION REGISTER (SFR) .. 19 ALL SFR DESCRIPTION .. 24 7. I/O PORT STRUCTURE AND OPERATION.
2 81 Quasi-Bidirectional Mode .. 81 Push-Pull Mode .. 82 Input-Only Mode .. 83 Open-Drain Mode .. 83 Read-Modify-Write Instructions .. 84 Control Registers of I/O Ports .. 84 Input and Output Data Control .. 85 Output Mode Control .. 86 Input Type .. 88 Output Slew Rate Control .. 90 TIMER/COUNTER 0 AND 1 .. 92 Mode 0 (13-Bit Timer) .. 95 Mode 1 (16-Bit Timer) .. 96 Mode 2 (8-Bit Auto-Reload Timer) .. 96 Mode 3 (Two Separate 8-Bit Timers).. 97 9. TIMER 2 AND INPUT CAPTURE.
3 99 Auto-Reload Mode .. 103 Compare Mode .. 104 Input Capture Module .. 104 10. TIMER 3 .. 110 11. WATCHDOG TIMER (WDT) .. 112 Time-Out Reset Timer .. 114 GENERAL Purpose Timer .. 115 12. SELF WAKE-UP TIMER (WKT) .. 117 13. SERIAL PORT (UART) .. 119 Mode 0 .. 124 Mode 1 .. 125 Mode 2 .. 126 Mode 3 .. 127 Baud Rate .. 127 Framing Error Detection .. 131 Multiprocessor Communication .. 131 Automatic Address Recognition .. 132 14. SERIAL PERIPHERAL INTERFACE (SPI) .. 136 Functional DESCRIPTION .
4 136 Operating Modes .. 142 N76E003 Datasheet Oct 28, 2016 Page 3 of 261 Rev. Master Mode .. 142 Slave Mode .. 142 Clock Formats and Data Transfer .. 143 Slave Select Pin Configuration .. 145 Mode Fault Detection .. 146 Write Collision Error .. 146 Overrun Error .. 146 SPI Interrupt .. 147 15. INTER-INTEGRATED CIRCUIT (I2C) .. 148 Functional DESCRIPTION .. 148 START and STOP Condition .. 149 7-Bit Address with Data Format .. 150 Acknowledge .. 151 Arbitration .. 151 Control Registers of I2C.
5 152 Operating Modes .. 156 Master Transmitter Mode .. 156 Master Receiver Mode .. 157 Slave Receiver Mode .. 158 Slave Transmitter Mode .. 159 GENERAL Call .. 160 Miscellaneous States .. 161 Typical Structure of I2C Interrupt Service Routine .. 162 I2C Time-Out .. 166 I2C Interrupt .. 167 16. PIN INTERRUPT .. 168 17. PULSE WIDTH MODULATED (PWM) .. 171 Functional DESCRIPTION .. 171 PWM Generator .. 171 PWM 180 Operation Modes .. 182 Mask Output Control .. 185 Fault Brake.
6 186 Polarity Control .. 187 PWM Interrupt .. 188 18. 12-BIT ANALOG-TO-DIGITAL CONVERTER (ADC) .. 190 Functional DESCRIPTION .. 190 ADC Operation .. 190 ADC Conversion Triggered by External Source .. 191 ADC Conversion Result Comparator .. 192 Control Registers of ADC .. 193 19. TIMED ACCESS PROTECTION (TA) .. 197 20. INTERRUPT SYSTEM .. 199 Interrupt 199 Enabling Interrupts .. 200 Interrupt 203 Interrupt 207 Interrupt Latency .. 208 External Interrupt Pins .. 208 N76E003 Datasheet Oct 28, 2016 Page 4 of 261 Rev.
7 21. IN-APPLICATION-PROGRAMMING (IAP) .. 210 IAP Commands .. 213 IAP User Guide .. 214 Using Flash Memory as Data Storage .. 214 In-System-Programming (ISP) .. 216 22. POWER MANAGEMENT .. 221 Power-Down Mode .. 222 23. CLOCK SYSTEM .. 223 System Clock Sources .. 223 Internal Oscillators .. 223 System Clock Switching .. 224 System Clock Divider .. 226 System Clock Output .. 226 24. POWER MONITORING .. 228 Power-On Reset (POR) .. 228 Brown-Out Detection (BOD) .. 228 25. RESET .. 233 Power-On Reset.
8 233 Brown-Out Reset .. 233 External Reset and Hard Fault Reset .. 234 Hard Fault Reset .. 235 Watchdog Timer Reset .. 235 Software Reset .. 235 Boot Select .. 237 Reset State .. 238 26. AUXILIARY FEATURES .. 239 Dual DPTRs .. 239 96-bit UID .. 240 27. ON-CHIP-DEBUGGER (OCD) .. 241 Functional DESCRIPTION .. 241 Limitation of 241 28. CONFIG BYTES .. 243 29. IN-CIRCUIT-PROGRAMMING (ICP) .. 246 30. INSTRUCTION SET .. 247 31. ELECTRICAL CHARACTERISTICS .. 251 Absolute Maximum Ratings.
9 251 Electrical Characteristics .. 251 Electrical Characteristics .. 253 Analog Electrical Characteristics .. 255 ESD Characteristics .. 256 EFT Characteristics .. 256 Flash DC Electrical Characteristics .. 257 32. PACKAGE DIMENSIONS .. 258 20-pin TSSOP - X mm .. 258 20-pin QFN X mm .. 259 33. DOCUMENT REVISION HISTORY .. 260 N76E003 Datasheet Oct 28, 2016 Page 5 of 261 Rev. 1. GENERAL DESCRIPTION The N76E003 is an embedded flash type, 8-bit high performance 1T 8051-based Microcontroller .
10 The instruction set is fully compatible with the standard 80C51 and performance enhanced. The N76E003 contains a up to 18K Bytes of main Flash called APROM, in which the contents of User Code resides. The N76E003 Flash supports In-Application-Programming (IAP) function, which enables on-chip firmware updates. IAP also makes it possible to configure any block of User Code array to be used as non-volatile data storage, which is written by IAP and read by IAP or MOVC instruction.
