Nuvoton N571P032 Technical Reference Manual

Type
Technical Reference Manual
N571P032 Technical Reference Manual
August 16, 2014 Page 1 of 171 Rev. 1.00
NuVoiceN571P032 Technical Reference Manual
ARM Cortex
-M0
32-bit Microcontroller
NuVoiceTM Family
N571P032 Multi-Algorithm Voice Processor
Technical Reference Manual
The information described in this document is the exclusive intellectual property of
Nuvoton Technology Corporation and shall not be reproduced without permission from Nuvoton.
Nuvoton is providing this document only for reference purposes of NuVoice microcontroller based
system design. Nuvoton assumes no responsibility for errors or omissions.
All data and specifications are subject to change without notice.
For additional information or questions, please contact: Nuvoton Technology Corporation.
www.nuvoton.com
N571P032 Technical Reference Manual
August 16, 2014 Page 2 of 171 Rev. 1.00
NuVoice™ N571P032 Technical Reference Manual
Table of Contents
Table of Contents ..................................................................................................................... 2
List of Tables ............................................................................................................................. 4
List of Figures ........................................................................................................................... 4
1 General Description ..................................................................................................... 6
2 Features ......................................................................................................................... 7
3 Part Information And Pin Configuration .................................................................... 9
3.1 Pin Configuration ............................................................................................................ 9
3.1.1 Pin Assignment (LQFP48) .............................................................................................. 9
3.1.2 Alternate Function List of GPIO .................................................................................... 11
3.1.3 Pad Description ............................................................................................................ 12
4 Block Diagram ............................................................................................................. 14
5 Functional Description ............................................................................................... 15
5.1 ARM® Cortex™-M0 core ............................................................................................... 15
5.2 System Manager ........................................................................................................... 16
5.2.1 Overview ...................................................................................................................... 16
5.2.2 System Memory Map .................................................................................................... 17
5.2.3 System Manager Control Registers .............................................................................. 18
5.2.4 Nested Vectored Interrupt Controller (NVIC) ................................................................ 38
5.3 Clock Controller ............................................................................................................ 65
5.3.1 Clock Generator ........................................................................................................... 65
5.3.2 System Clock ............................................................................................................... 66
5.3.3 Peripheral Clock ........................................................................................................... 66
5.3.4 Power Down Mode Clock ............................................................................................. 66
5.3.5 Clock Control Register Map .......................................................................................... 67
5.3.6 Clock Control Register Description ............................................................................... 68
5.4 SRAM ............................................................................................................................ 79
5.4.1 Overview ...................................................................................................................... 79
5.4.2 Block Diagram .............................................................................................................. 79
5.5 General Purpose I/O ..................................................................................................... 80
5.5.1 Overview and Features ................................................................................................ 80
5.5.2 GPIO Control Register Map .......................................................................................... 82
5.5.3 GPIO Control Register Description ............................................................................... 83
5.6 PWM Generator and Capture Timer ............................................................................. 89
5.6.1 Introduction ................................................................................................................... 89
5.6.2 Features ....................................................................................................................... 89
5.6.3 PWM Generator Architecture ....................................................................................... 90
5.6.4 PWM-Timer Operation .................................................................................................. 91
5.6.5 PWM Auto-reload ......................................................................................................... 91
5.6.6 Dead-Zone Generator .................................................................................................. 92
5.6.7 PWM-Timer Start Procedure ........................................................................................ 93
5.6.8 PWM-Timer Stop Procedure ........................................................................................ 93
N571P032 Technical Reference Manual
August 16, 2014 Page 3 of 171 Rev. 1.00
NuVoiceN571P032 Technical Reference Manual
5.6.9 Capture Start Procedure ............................................................................................... 93
5.6.10 Capture Timer Operation .............................................................................................. 94
5.6.11 Register Map ................................................................................................................ 95
5.6.12 Register Description ..................................................................................................... 96
5.7 Real Time Clock (RTC) ............................................................................................... 109
5.7.1 Overview .................................................................................................................... 109
5.7.2 Register Map .............................................................................................................. 109
5.7.3 Register Description ................................................................................................... 109
5.8 Serial Peripheral Interface (SPI) Controller ................................................................ 111
5.8.1 Overview .................................................................................................................... 111
5.8.2 Features ..................................................................................................................... 111
5.8.3 SPI Block Diagram ..................................................................................................... 111
5.8.4 SPI Applications ......................................................................................................... 112
5.8.5 SPI Configuration Examples ....................................................................................... 113
5.8.6 SPI Control Register Map ........................................................................................... 114
5.8.7 SPI Control Register Description ................................................................................ 115
5.9 Timer Controller .......................................................................................................... 123
5.9.1 General Timer Controller ............................................................................................ 123
5.9.2 Features ..................................................................................................................... 123
5.9.3 Timer Controller Block Diagram.................................................................................. 124
5.9.4 Timer Controller Register Map ................................................................................... 125
5.9.5 Timer Controller Register Description ......................................................................... 126
5.10 Watchdog Timer.......................................................................................................... 133
5.10.1 Watchdog Timer Control Register Map ...................................................................... 134
5.10.2 Watchdog Timer Control Register Description ........................................................... 134
5.11 Audio Processing Unit (APU) ...................................................................................... 137
5.11.1 APU Control Register Map ......................................................................................... 138
5.11.2 APU Control Register Description .............................................................................. 139
5.12 12-bit Analog-to-Digital Converter (ADC) and Pre-amplifier ....................................... 144
5.12.1 Features ..................................................................................................................... 144
5.12.2 ADC Block Diagram .................................................................................................... 145
5.12.3 ADC H/W Filter and Decimator ................................................................................... 145
5.12.4 ADC Operation Procedure .......................................................................................... 146
5.12.5 Pre-amplifier Block Diagram ....................................................................................... 153
5.12.6 ADC and Pre-amplifier Register Map ......................................................................... 154
5.12.7 ADC and Pre-amplifier Register Description .............................................................. 155
6 OTP Memory Controller (OMC) ............................................................................. 169
6.1 Overview ..................................................................................................................... 169
6.2 Features ...................................................................................................................... 169
6.3 OTP Memory Organization ......................................................................................... 169
7 Revision History ........................................................................................................ 170
N571P032 Technical Reference Manual
August 16, 2014 Page 4 of 171 Rev. 1.00
NuVoice™ N571P032 Technical Reference Manual
List of Tables
Table 5-1 Address Space Assignments for On-Chip Modules ...................................................... 17
Table 5-2 Exception Model ............................................................................................................ 39
Table 5-3 System Interrupt Map ..................................................................................................... 39
Table 5-4 Vector Table Format ...................................................................................................... 40
Table 5-5 Watchdog Timeout Interval Selection .......................................................................... 133
Table 6-1 Memory Address Map (from viewpoint of Writer) ........................................................ 169
List of Figures
Figure 4-1 Functional Block Diagram ............................................................................................. 14
Figure 5-1 Functional Block Diagram ............................................................................................. 15
Figure 5-2 Clock generator block diagram ..................................................................................... 65
Figure 5-3 System Clock Block Diagram ....................................................................................... 66
Figure 5-4 SRAM Controller Block Diagram .................................................................................. 79
Figure 5-5 Open-Drain Output ....................................................................................................... 80
Figure 5-6 Quasi-bidirectional GPIO Mode .................................................................................... 81
Figure 5-7 PWM Generator Architecture Diagram ......................................................................... 90
Figure 5-8 PWM Generator Clock Source Control ......................................................................... 90
Figure 5-9 PWM Timer Operation Timing ...................................................................................... 91
Figure 5-10 PWM Controller Output Duty Ratio. ............................................................................ 92
Figure 5-11 Dead Zone Generation Operation .............................................................................. 92
Figure 5-12 Capture Operation Timing .......................................................................................... 94
Figure 5-13 SPI Block Diagram .................................................................................................... 111
Figure 5-14 SPI Clock Source ...................................................................................................... 112
Figure 5-15 SPI Master Mode Application Diagram ..................................................................... 112
Figure 5-16 SPI Slave Mode Application Diagram ....................................................................... 112
Figure 5-17 Timer0/1/2 Block Diagram ........................................................................................ 124
Figure 5-18 Clock Source of Timer0/1/2 ...................................................................................... 124
Figure 5-19 Watchdog Timer Block Diagram ............................................................................... 133
Figure 5-20 APU Block Diagram .................................................................................................. 137
Figure 5-21 ADC Controller Block Diagram ................................................................................. 145
Figure 5-22 H/W DC Remover Architecture ................................................................................. 146
Figure 5-23 ADC Clock Source .................................................................................................... 147
Figure 5-24 Continuous Scan on Selected Channels and DS_EN == “0” ................................... 148
Figure 5-25 Continuous Scan on Selected Channels .................................................................. 149
Figure 5-26 Continuous Scan on Selected Channels .................................................................. 149
N571P032 Technical Reference Manual
August 16, 2014 Page 5 of 171 Rev. 1.00
NuVoiceN571P032 Technical Reference Manual
Figure 5-27 Single-Cycle Scan on selected Channels................................................................. 150
Figure 5-28 Conversion Start Delay Timing Diagram .................................................................. 151
Figure 5-29 A/D Conversion Result Comparison ......................................................................... 152
Figure 5-30 A/D Controller Interrupt ............................................................................................. 152
Figure 5-31 Pre-amplifier and ADC .............................................................................................. 153
N571P032 Technical Reference Manual
August 16, 2014 Page 6 of 171 Rev. 1.00
NuVoice™ N571P032 Technical Reference Manual
1 GENERAL DESCRIPTION
The N571P032 is ARM® Cortex™-M0 core embedded microcontroller for voice applications. The
Cortex™-M0 is the newest ARM embedded processor with 32-bit performance and at a cost
equivalent traditional 8-bit microcontroller.
The N571P032 with Cortex™-M0 core runs up to 23MHz, and possesses 32K-byte embedded OTP
memory and 4K-byte embedded SRAM, it also integrates Timers, Watchdog Timer, RTC, SPI, PWM
Timer, up to 28 GPIO pins if without serving alternative functions, equivalent 10-bit ADC, 13-bit DAC,
power amplifier, and Low Voltage Detector.
Note1: Please refer to data sheet for electrical related spec and typical applications.
N571P032 Technical Reference Manual
August 16, 2014 Page 7 of 171 Rev. 1.00
NuVoiceN571P032 Technical Reference Manual
2 FEATURES
Core
ARM® Cortex™-M0 core runs up to 23 MHz
Supports low power sleep mode.
Single-cycle 32-bit hardware multiplier.
NVIC (Nested Vector Interrupt Controller) for 16 interrupt inputs, each with 4-levels of priority.
Serial Wire Debug (SWD) supports with 2 watchpoints/4 breakpoints.
Power Management
Wide operating voltage range from 2.4V to 5.5V
OTP ROM Memory
32K bytes OTP ROM.
Support 2 wire In-circuit Programming (ICP) update from SWD ICE interface
SRAM Memory
4K bytes embedded SRAM.
Clock Control
Flexible selection for different applications.
Support PLL, up to 46.07MHz from external 32.768 KHz crystal, for high performance system
operation.
External 32.768 KHz crystal input for RTC function and system clock.
Internal 46MHz RC oscillator
GPIO
Four I/O modes:
Quasi bi-direction
Push-Pull output
Open-Drain output
Input only with high impendence
Schmitt trigger input
I/O pin can be configured as interrupt source with edge/level setting.
Timers
3 sets of the timer with 8-bit pre-scaler and 16-bit counter.
Counter auto reload.
IR carrier generator
One fixed frequency timer
Watch Dog Timer
Multiple clock sources
8 selectable time out period from 6 ms ~ 3.0 sec (depending on clock source)
WDT can wake up power down/sleep.
Interrupt or reset selectable on watchdog time-out.
RTC
Support time out interrupt
Support wake up function
PWM/Capture/Compare Timer
One 16-bit timer and four 16-bit comparators
Five clock selectors
One 8-bit pre-scaler and one clock divider
Two Dead-Zone generators
Programmable duty control of output waveform (PWM)
Auto reload mode or one-shot pulse mode
N571P032 Technical Reference Manual
August 16, 2014 Page 8 of 171 Rev. 1.00
NuVoice™ N571P032 Technical Reference Manual
Capture and compare function
SPI
Master mode up to 23MHz serial clock
Support master/slave mode
Full duplex synchronous serial data transfer
Variable length of transfer data from 1 to 32 bits
MSB or LSB first data transfer
Rx and Tx on both rising or falling edge of serial clock independently
2 slave/device select pins
Two 32-bit buffers.
Audio Analog to Digital Converter
10 bits SAR ADC with max 220K conversion rate
1 differential pair input channel,ch-4, with programmable gain control for microphone input.
Build in H/W DC remove filter for differential input pair
Build in H/W filter and 16 times decimation c.k.t to come out close to 12 bits SNR resolution
performance
Additional 2-ch 10-bit ADC, ch-2/ch-3,
ADC data allocate in bit11~bit1
Minimum 12 ADC_CLK for every AD conversion. Other clock more than 12 is dummy clock.
Single/single scan/continuous scan
1 + 2 channels share 8 result registers
Programmable channel scan sequence
Threshold voltage detection
Conversion start by S/W
Internal provided microphone bias
APU
13-bit DAC
H/W mixer with 2 channel PCM input
Embedded power amplifier
7-level volume control.
Low Voltage Detector
With 2 levels: 3.0V/2.7V
Low Dropout Voltage Regulator (LDO)
Built-in 3.3V LDO for external driving
Built-in 3.0V LDO for PGC and ADC.
Low Voltage Reset: 2.2V typical
Operating Temperature: 0°C ~ 70°C
Package:
All Green package (RoHS)
LQFP 48-pin
COB
N571P032 Technical Reference Manual
August 16, 2014 Page 9 of 171 Rev. 1.00
NuVoiceN571P032 Technical Reference Manual
3 PART INFORMATION AND PIN CONFIGURATION
3.1 Pin Configuration
3.1.1 Pin Assignment (LQFP48)
PAD NO. PAD Name Pin NO.
1 PA.0 46
2 PA.1 47
3
PA.2
48
4
PA.3
1
5 PA.4 2
6 VDDSPI 3
7
PA.5
4
8
PA.6
5
9 PA.7 6
10 PA.8 7
11
PA.9
8
12
PLLC(VCP)
9
13 LDO33 10
14 VDDIO1 11
15
VSSIO1
12
16
AIN2
13
17 AIN3 14
18 AIN4 15
19
AVSS
16
20
AIN5
17
21 PGC_VREF 18
22 MIC_BIAS 19
23
AVDD
20
24
TEST
21
25 nRESET 22
26 X32I 23
27
X32O
24
28
VDDIO2
25
29 VSSIO2 26
30 PB.4/ICE_CLK 27
31
PB.5/ICE_DAT
28
32
PB.6
29
33 PB.7 30
34 PB.8 31
N571P032 Technical Reference Manual
August 16, 2014 Page 10 of 171 Rev. 1.00
NuVoice™ N571P032 Technical Reference Manual
35
PB.9
32
36 PB.10 33
37 PB.11 34
38
PB.12
35
39
PB.13
36
40 PB.14 37
41 PB.15 38
42
VSSSPK
39
43
SPKP
40
44 VDDSPK 41
45 VDDSPK 41
46
SPKN
42
47
VSSSPK
43
48 VMID 44
49 VPP 45
N571P032 Technical Reference Manual
August 16, 2014 Page 11 of 171 Rev. 1.00
NuVoiceN571P032 Technical Reference Manual
3.1.2 Alternate Function List of GPIO
All General Purpose Input/Output (GPIO) pins except PB.5, PB.6 and PB.7 can be configured to
alternate functions as described in the table below.
GPIO Power Alternate I/O Of
Alternate Function Description
PA.0 VDDSPI SPI_SSB01 O SPI0 2nd chip select pin
PA.1 VDDSPI SPI_SSB00 O SPI0 1st chip select pin
PA.2 VDDSPI SPI_SCLK0 O SPI0 serial clock output
PA.3 VDDSPI SPI_MISO0 I SPI0 master data input, slave data output
PA.4 VDDSPI SPI_MOSI0 O SPI0 master data output, slave data input
PA.5 VDDIO1 TM0 I Timer0 counter external input
PA.6 VDDIO1
PA.7 VDDIO1
PA.8 VDDIO1
PA.9 VDDIO1
PA.10 VDDIO1 AIN2 A ADC analog input 2
PA.11 VDDIO1 AIN3 A ADC analog input 3
PA.12 VDDIO1 AIN4 A Mic. IN+
PA.13 VDDIO1 AIN5 A Mic. IN-
PA.14 VDDIO1 MIC_BIAS A MIC Bias
PA.15 VDDIO1 PGC_VREF A PGC Reference voltage
PB.4 VDDIO2 ICE_CLK I Serial Wired Debugger Clock
PB.5 VDDIO2 ICE_DAT I/O Serial Wired Debugger Data
PB.6 VDDIO2 -
PB.7 VDDIO2 -
PB.8 VDDIO2 PWM0/HCLK O PWM output pin 0
PB.9 VDDIO2 PWM1 O PWM output pin 1
PB.10 VDDIO2 PWM2 O PWM output pin 2
PB.11 VDDIO2 PWM3 O PWM output pin 3
PB.12 VDDIO2 CPR0 I Capture input
PB.13 VDDIO2 IROUT O IR carrier output
PB.14 VDDIO2 TM1 I Timer1 counter external clock input
PB.15 VDDIO2 LVDOUT O LVD indicator output
I: Input, O: Output, A: Analog input, VDDSPI: 5v/3.3v domain, VDDIO1: 5v/3.3v domain, VDDIO2:
5v/3.3v domain
N571P032 Technical Reference Manual
August 16, 2014 Page 12 of 171 Rev. 1.00
NuVoice™ N571P032 Technical Reference Manual
3.1.3 Pad Description
Name Type Power Description
1. GPIO
PA.0 ~ PA.13 I/O See 3.1.2 Bidirectional general purpose I/O ports. All of these pins have alternate
function; refer to section 3.1.2 for detail.
PB.6 ~ PB.15 I/O See 3.1.2 Bidirectional general purpose I/O ports. Most of these pins have alternate
function; refer to section 3.1.2 for detail.
2. Oscillator
X32I I VDDIO2 32KHz crystal input.
X32O O VDDIO2 32KHz crystal output.
PLLC(VCP) A LDO33 Capacitor connection for built-in PLL.
3. PGC and ADC
AVDD Pout VDDIO1 3.0V LDO output for driving ADC and PGC.
AVSS P - Analog ground.
MIC_BIAS A - Microphone bias output.
PGCVREF A - AVDD/2 for PGC. A 4.7uF (or higher) capacitor for low pass filter to filter
power noise is needed.
4. Speaker Driver
SPKP O VDDSPK Speaker positive output pin.
SPKN O VDDSPK Speaker negative output pin.
VDDSPK P - Analog power supply for PA.
VSSSPK P - Analog ground.
VMID A - Connect a capacitor to VSSSPK.
5. Power
VDDIO1 P - Power supply for I/O port, LVR, BOD and source of AVDD and LDO33.
VSSIO1 P - Ground pin, connect to 0V.
VDDIO2 P - Power supply for I/O port.
VSSIO2 P - Ground pin, connect to 0V.
VDDIO P - Power supply for I/O port.
VDDSPI P - Power supply for I/O port PA.4~PA.0.
LDO33 Pout VDDIO1 3.3V LDO output.
VPP P - Power supply for OTP programming.
6. SWD
ICE_CLK I VDDIO2 Serial Wired Debugger Clock pin.
ICE_DAT I/O VDDIO2 Serial Wired Debugger Data pin.
7. Other
nRESET I VDDIO2 Reset input pin, low active. Internal pull-high.
TEST I VDDIO2 Test pin.
Total: 49 pads
N571P032 Technical Reference Manual
August 16, 2014 Page 13 of 171 Rev. 1.00
NuVoiceN571P032 Technical Reference Manual
N571P032 Technical Reference Manual
August 16, 2014 Page 14 of 171 Rev. 1.00
NuVoice™ N571P032 Technical Reference Manual
4 BLOCK DIAGRAM
Cortex-M0
OTP
32KB
SRAM
4KB GPIO Clock
Control
PLL
46.07M
XTAL
32K
ROSC
46M
APB
Bridge
RTC
WDT
Timer0/1/2/F
PWM Timer
APU 13Bit
DAC Power
Amplifier
10 bit ADC PGC/
MICBIAS
SPI
LDO33
LVD
LVR
POR
ADC
Controller
Figure 4-1 Functional Block Diagram
N571P032 Technical Reference Manual
August 16, 2014 Page 15 of 171 Rev. 1.00
NuVoiceN571P032 Technical Reference Manual
5 FUNCTIONAL DESCRIPTION
5.1 ARM® Cortex™-M0 core
The Cortex™-M0 processor is a configurable, multistage, 32-bit RISC processor. It has an AMBA
AHB-Lite interface and includes an NVIC component. It also has optional hardware debug
functionality. The processor can execute Thumb code and is compatible with other Cortex-M profile
processor.
Figure 5-1 shows the functional blocks of processor.
Figure 5-1 Functional Block Diagram
The implemented device provides:
A low gate count processor that features:
The ARMv6-M Thumb® instruction set.
Thumb-2 technology.
ARMv6-M compliant 24-bit SysTick timer.
A 32-bit hardware multiplier.
The system interface supports little-endian data accesses.
The ability to have deterministic, fixed-latency, interrupt handling.
Load/store-multiples and multicycle-multiplies that can be abandoned and restarted to
facilitate rapid interrupt handling.
C Application Binary Interface compliant exception model.
This is the ARMv6-M, C Application Binary Interface(C-ABI) compliant exception model that
enables the use of pure C functions as interrupt handlers.
Low power sleep-mode entry using Wait For Interrupt(WFI), Wait For Even(WFE) instructions,
or the return from interrupt sleep-on-exit feature.
NVIC features
16 external interrupt inputs, each with four levels of priority.
Dedicated non-Maskable Interrupt (NMI) input.
Support for both level-sensitive and pulse-sensitive interrupt lines
Cortex-M0
Processor
core
Nested
Vectored
Interrupt
Controller
(NVIC )
Breakpoint
and
Watchpoint
Unit
Debugger
Interface
Bus matrix Debug
Access Port
(DAP)
DebugCortex-M0processor
Cortex-M0 components
Wakeup
Interrupt
Controller
(WIC)
Interrupts
Serial Wire Debug
Port
AHB-Lite interface
N571P032 Technical Reference Manual
August 16, 2014 Page 16 of 171 Rev. 1.00
NuVoice™ N571P032 Technical Reference Manual
Wake-up Interrupt Controller (WIC), providing ultra-low power sleep mode support.
Debug support
Four hardware breakpoints.
Two watchpoints.
Program Counter Sampling Register (PCSR) for non-intrusive code profiling.
Single step and vector catch capabilities.
Bus interfaces
Single 32-bit AMBA-3 AHB-Lite system interface that provides simple integration to all system
peripherals and memory.
Single 32-bit slave port that supports the DAP.
5.2 System Manager
5.2.1 Overview
The following functions are included in system manager section
System Memory Map
System management registers for chip and module functional reset and multi-function pin control
Chip miscellaneous Control Register
Combined peripheral interrupt source identify
N571P032 Technical Reference Manual
August 16, 2014 Page 17 of 171 Rev. 1.00
NuVoiceN571P032 Technical Reference Manual
5.2.2 System Memory Map
N571P032 provides a 4G-byte address space for programmers. The memory locations assigned to
each on-chip modules are shown in Table 5-1. The detailed register and memory addressing and
programming will be described in the following sections for individual on-chip modules. N571P032
series only supports little-endian data format.
Table 5-1 Address Space Assignments for On-Chip Modules
Address Space Token Modules Reference
Flash & SRAM Memory Space
0x0000_0000 – 0x0000_7FEF OTP_BA OTP Memory Space (32KB – 16B)
0x2000_0000 – 0x2000_0FFF SRAM_BA SRAM Memory Space (4KB)
AHB Modules Space (0x5000_0000 – 0x501F_FFFF)
0x5000_0000 – 0x5000_01FF SYS_BA System Global Control Registers 5.2.3
0x5000_0200 – 0x5000_02FF CLK_BA Clock Control Registers 5.3.5
0x5000_0300 – 0x5000_03FF INT_BA Interrupt Multiplexer Control Registers 5.2.5.5
0x5000_0400 – 0x5000_04FF MAC_BA MAC Control Registers
0x5000_4000 – 0x5000_7FFF GPIO_BA GPIO Control Registers 5.5.2
0x5000_8000 – 0x5000_BFFF APU_BA APU Controller Registers 5.11.1
0x5000_C000 – 0x5000_FFFF OMC_BA OTP Memory Control Registers 6.6
APB Modules Space (0x4000_0000 ~ 0x400F_FFFF)
0x4000_4000 – 0x4000_7FFF WDT_BA Watch-Dog Timer Control Registers 5.10.1
0x4000_8000 – 0x4000_BFFF RTC_BA Real Time Clock (RTC) Control Registers 5.7.2
0x4001_0000 – 0x4001_3FFF TMR_BA Timer0/Timer1/Timer2/TimerF Control Registers 5.9.4
0x4003_0000 – 0x4003_3FFF SPI0_BA SPI0 Serial Interface Control Registers 5.8.6
0x4004_0000 – 0x4004_3FFF PWM_BA PWM Control Registers 5.6.11
0x400E_0000 – 0x400E_FFFF ADC_BA Analog-Digital-Converter (ADC) Control Registers 5.12.5
System Control Space (0xE000_E000 ~ 0xE000_EFFF)
0xE000_E100 – 0xE000_ECFF SCS_BA NVIC Control Registers 5.2.5.4
N571P032 Technical Reference Manual
August 16, 2014 Page 18 of 171 Rev. 1.00
NuVoice™ N571P032 Technical Reference Manual
5.2.3 System Manager Control Registers
Register
Offset
R/W Description
Reset Value
SYS Base Address:
SYS_BA = 0x5000_0000
SYS_PDID
SYS
_BA+0x00 R Product Identifier Register
0x
0B32_XXXX
SYS_RSTSTS
SYS_BA
+0x04 R/W System Reset Source Register
0x0000_00XX
SYS_IPRST0
SYS_BA+0x08
R/W IP Reset Control Resister0
0x0000_0000
SYS_IPRST1
SYS_BA+0x0C
R/W IP Reset Control Resister1
0x0000_0000
SYS_BODCTL
SYS_BA+0x
18 R/W Brown-Out Detector Control Register
0x0000_0080
SYS_PORCTL
SYS_BA+0x
1C R/W Power-On-Reset Controller Register
0x0000_0000
SYS_GPA_MFP
SYS_BA+0x3
0 R/W GPIO PA Multiple Alternate Functions and Input
Type Control Register
0x0000_0000
SYS_GPB_MFP
SYS_BA+0x3
4 R/W GPIO PB Multiple Alternate Functions and Input
Type Control Register
0x0000_0000
SYS_GPA_HS
SYS_BA+0x
38 R/W PA.4 ~ PA.0 High Speed Transition Control Register
0x0000_000
0
SYS_ICE_MFP
SYS_BA+0x
40 R/W ICE Multi-Function-Pin Controller Register
0x0000_000
1
SYS_DEVICEID
SYS
_BA+0xF4 R Device ID Register
0x0000_3E61
SYS_IMGMAP1
SYS
_BA+0xFC R MAP1 Data Image Register
0xXXXX_XXXX
SYS_REGLCTL
SYS_BA+0x100
R/W Register Lock Control Register
0x0000_0000
SYS_PA_ADJ
SYS_BA+0x1
20 R/W PA Offset Voltage Adjustment Register
0x
0000_0010
N571P032 Technical Reference Manual
August 16, 2014 Page 19 of 171 Rev. 1.00
NuVoiceN571P032 Technical Reference Manual
Product Identifier Register (SYS_PDID)
This register provides specific read-only information for software to identify this chip.
Register
R/W Description Reset Value
SYS_PDID
_BA+0x00 R Product Identifier Register 0x0B32_XXXX
31 30 29 28 27 26 25 24
0x0B
23 22 21 20 19 18 17 16
0x32
15 14 13 12 11 10 9 8
IMG2[15:8]
7 6 5 4 3 2 1 0
IMG2[7:0]
Bits Description
[15:0] IMG2 Product Identifier
Data in MAP2 of information block are copied to this register after power
on. MAP2 is used to store part number defined by Nuvoton.
N571P032 Technical Reference Manual
August 16, 2014 Page 20 of 171 Rev. 1.00
NuVoice™ N571P032 Technical Reference Manual
System Reset Source Register (SYS_RSTSTS)
This register provides specific information for software to identify this chip’s reset source from last
operation.
Register Offset R/W Description Reset Value
SYS_RSTSTS SYS_BA+0x04 R/W System Reset Source Register 0x0000_00XX
31 30 29 28 27 26 25 24
Reserved
23 22 21 20 19 18 17 16
Reserved
15 14 13 12 11 10 9 8
Reserved
7 6 5 4 3 2 1 0
Reserved PMURSTF Reserved LVRF WDTRF PINRF PORF
Bits Description
[31:7] Reserved Reserved.
[6] PMURSTF
Reset Source From PMU
The PMURSTF flag is set by the reset signal from the PMU module to indicate the
previous reset source.
0= No reset from PMU.
1= The PMU has issued the reset signal to reset the system.
Note: Write 1 to clear this bit to 0.
[5:4] Reserved Reserved.
[3] LVRF
LVR Reset Flag
The LVR reset flag is set by the “Reset Signal” from the Low Voltage Reset
Controller to indicate the previous reset source.
0 = No reset from LVR.
1 = LVR controller had issued the reset signal to reset the system.
Note: Write 1 to clear this bit to 0.
[2] WDTRF
Reset Source From WDG
The WDTRF flag is set if pervious reset source originates from the Watch-Dog
module.
0= No reset from Watch-Dog.
1= The Watch-Dog module issued the reset signal to reset the system.
Note: Write 1 to clear this bit to 0.
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162
  • Page 163 163
  • Page 164 164
  • Page 165 165
  • Page 166 166
  • Page 167 167
  • Page 168 168
  • Page 169 169
  • Page 170 170
  • Page 171 171

Nuvoton N571P032 Technical Reference Manual

Type
Technical Reference Manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI