Example: stock market

Datasheet - Nuvoton

N76E003 Datasheet Sep. 03, 2019 Page 1 of 277 Rev. Nuvoton 1T 8051-based Microcontroller N76E003 Datasheet N76E003 Datasheet Sep. 03, 2019 Page 2 of 277 Rev. TABLE OF CONTENTS 1. GENERAL DESCRIPTION .. 6 2. FEATURES .. 7 3. BLOCK DIAGRAM .. 10 4. PIN CONFIGURATION .. 11 5. MEMORY ORGANIZATION .. 18 Program Memory .. 18 Data Memory .. 20 On-Chip XRAM .. 22 Non-Volatile Data Storage .. 22 6. SPECIAL FUNCTION REGISTER (SFR) .. 23 ALL SFR 28 7. I/O PORT STRUCTURE AND OPERATION .. 88 Quasi-Bidirectional 88 Push-Pull Mode .. 89 Input-Only Mode .. 90 Open-Drain Mode .. 90 Read-Modify-Write Instructions .. 91 Control Registers of I/O Ports.

– Two 16-bit Timers/Counters 0 and 1 compatible with standard 8051. – One 16-bit Timer 2 with three-channel input capture module and 9 input pin can be selected. – One 16-bit auto-reload Timer 3, which can be the baud rate clock source of UARTs. – …

Tags:

  Clock, Counter

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of Datasheet - Nuvoton

1 N76E003 Datasheet Sep. 03, 2019 Page 1 of 277 Rev. Nuvoton 1T 8051-based Microcontroller N76E003 Datasheet N76E003 Datasheet Sep. 03, 2019 Page 2 of 277 Rev. TABLE OF CONTENTS 1. GENERAL DESCRIPTION .. 6 2. FEATURES .. 7 3. BLOCK DIAGRAM .. 10 4. PIN CONFIGURATION .. 11 5. MEMORY ORGANIZATION .. 18 Program Memory .. 18 Data Memory .. 20 On-Chip XRAM .. 22 Non-Volatile Data Storage .. 22 6. SPECIAL FUNCTION REGISTER (SFR) .. 23 ALL SFR 28 7. I/O PORT STRUCTURE AND OPERATION .. 88 Quasi-Bidirectional 88 Push-Pull Mode .. 89 Input-Only Mode .. 90 Open-Drain Mode .. 90 Read-Modify-Write Instructions .. 91 Control Registers of I/O Ports.

2 91 Input and Output Data Control .. 92 Output Mode 93 Input Type .. 95 Output Slew Rate Control .. 97 TIMER/ counter 0 AND 99 Mode 0 (13-Bit Timer) .. 102 Mode 1 (16-Bit Timer) .. 103 Mode 2 (8-Bit Auto-Reload Timer) .. 103 Mode 3 (Two Separate 8-Bit Timers) .. 104 9. TIMER 2 AND INPUT CAPTURE .. 106 Auto-Reload Mode .. 110 Compare Mode .. 111 Input Capture Module .. 111 10. TIMER 3 .. 117 11. WATCHDOG TIMER (WDT) .. 119 Time-Out Reset Timer .. 121 General Purpose Timer .. 122 12. SELF WAKE-UP TIMER (WKT) .. 124 13. SERIAL PORT (UART) .. 126 Mode 0 .. 131 Mode 1 .. 132 Mode 2 .. 133 Mode 3 .. 135 Baud Rate.

3 135 Framing Error Detection .. 138 Multiprocessor Communication .. 138 Automatic Address Recognition .. 139 14. SERIAL PERIPHERAL INTERFACE (SPI) .. 143 Functional Description .. 143 N76E003 Datasheet Sep. 03, 2019 Page 3 of 277 Rev. Operating Modes .. 149 Master Mode .. 149 Slave Mode .. 149 clock Formats and Data Transfer .. 150 Slave Select Pin Configuration .. 152 Mode Fault Detection .. 153 Write Collision Error .. 153 Overrun Error .. 153 SPI Interrupt .. 154 15. INTER-INTEGRATED CIRCUIT (I2C) .. 155 Functional Description .. 155 START and STOP Condition .. 156 7-Bit Address with Data Format .. 157 Acknowledge.

4 158 Arbitration .. 159 Control Registers of I2C .. 160 Operating Modes .. 163 Master Transmitter Mode .. 163 Master Receiver Mode .. 164 Slave Receiver Mode .. 165 Slave Transmitter Mode .. 166 General Call .. 167 Miscellaneous States .. 168 Typical Structure of I2C Interrupt Service Routine .. 170 I2C Time-Out .. 174 I2C Interrupt .. 175 16. PIN INTERRUPT .. 176 17. PULSE WIDTH MODULATED (PWM) .. 179 Functional Description .. 179 PWM Generator .. 179 PWM Types .. 188 Operation Modes .. 190 Mask Output Control .. 193 Fault Brake .. 194 Polarity Control .. 195 PWM Interrupt .. 196 18. 12-BIT ANALOG-TO-DIGITAL CONVERTER (ADC).

5 198 Functional Description .. 198 ADC Operation .. 198 ADC Conversion Triggered by External Source .. 199 ADC Conversion Result Comparator .. 200 Internal Band-gap .. 201 Control Registers of ADC .. 204 19. TIMED ACCESS PROTECTION (TA) .. 208 20. INTERRUPT SYSTEM .. 210 Interrupt Overview .. 210 Enabling Interrupts .. 211 Interrupt Priorities .. 214 N76E003 Datasheet Sep. 03, 2019 Page 4 of 277 Rev. Interrupt Service .. 218 Interrupt Latency .. 219 External Interrupt Pins .. 219 21. IN-APPLICATION-PROGRAMMING (IAP) .. 221 IAP Commands .. 224 IAP User Guide .. 225 Using Flash Memory as Data Storage .. 225 In-System-Programming (ISP).

6 227 22. POWER MANAGEMENT .. 232 Power-Down Mode .. 233 23. clock SYSTEM .. 234 System clock 234 Internal Oscillators .. 234 System clock Switching .. 235 System clock Divider .. 237 System clock Output .. 237 24. POWER MONITORING .. 239 Power-On Reset (POR) .. 239 Brown-Out Detection (BOD) .. 240 25. 245 Power-On Reset .. 245 Brown-Out Reset .. 246 External Reset .. 246 Hard Fault Reset .. 247 Watchdog Timer Reset .. 247 Software Reset .. 248 Boot Select .. 249 Reset State .. 250 26. AUXILIARY 251 96-bit UID .. 251 27. ON-CHIP-DEBUGGER (OCD) .. 252 Functional Description .. 252 Limitation of OCD .. 252 28.

7 CONFIG BYTES .. 254 29. IN-CIRCUIT-PROGRAMMING (ICP) .. 257 30. INSTRUCTION SET .. 258 31. ELECTRICAL CHARACTERISTICS .. 262 Absolute Maximum Ratings .. 262 Electrical Characteristics .. 262 Electrical Characteristics .. 264 Analog Electrical Characteristics .. 266 ESD Characteristics .. 267 EFT Characteristics .. 267 Flash DC Electrical Characteristics .. 268 32. PACKAGE 269 20-pin TSSOP X mm .. 269 20-pin SOP - 300 mil .. 271 20-pin QFN X mm for N76E003AQ20 .. 272 N76E003 Datasheet Sep. 03, 2019 Page 5 of 277 Rev. 20-pin QFN X mm for N76E003BQ20 .. 273 20-pin QFN X mm for N76E003CQ20 .. 274 33. DOCUMENT REVISION HISTORY.

8 275 N76E003 Datasheet Sep. 03, 2019 Page 6 of 277 Rev. 1. GENERAL DESCRIPTION The N76E003 is an embedded flash type, 8-bit high performance 1T 8051-based microcontroller. 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.

9 There is an additional Flash called LDROM, in which the Boot Code normally resides for carrying out In-System-Programming (ISP). The LDROM size is configurable with a maximum of 4K Bytes. To facilitate programming and verification, the Flash allows to be programmed and read electronically by parallel Writer or In-Circuit-Programming (ICP). Once the code is confirmed, user can lock the code for security. The N76E003 provides rich peripherals including 256 Bytes of SRAM, 768 Bytes of auxiliary RAM (XRAM), Up to 18 general purpose I/O, two 16-bit Timers/Counters 0/1, one 16-bit Timer2 with three-channel input capture module, one Watchdog Timer (WDT), one Self Wake-up Timer (WKT), one 16-bit auto-reload Timer3 for general purpose or baud rate generator, two UARTs with frame error detection and automatic address recognition, one SPI, one I2C, five enhanced PWM output channels, eight-channel shared pin interrupt for all I/O, and one 12-bit ADC.

10 The peripherals are equipped with 18 sources with 4-level-priority interrupts capability. The N76E003 is equipped with three clock sources and supports switching on-the-fly via software. The three clock sources include external clock input, 10 kHz internal oscillator, and one 16 MHz internal precise oscillator that is factory trimmed to 1% at room temperature. The N76E003 provides additional power monitoring detection such as power-on reset and 4-level brown-out detection, which stabilizes the power-on/off sequence for a high reliability system design. The N76E003 microcontroller operation consumes a very low power with two economic power modes to reduce power consumption Idle and Power-down mode, which are software selectable.


Related search queries