nRF51 Series Reference Manual
Version 3.0
The nRF51 series offers a range of ultra-low power System on
Chip solutions for your 2.4 GHz wireless products. With the nRF51
series you have a diverse selection of devices including those with
embedded
Bluetooth®
low energy and/or ANT™ protocol stacks as
well as open devices enabling you to develop your own proprietary
wireless stack and ecosystem.
The nRF51 series combines Nordic Semiconductor’s leading 2.4
GHz transceiver technology with a powerful but low power ARM®
Cortex™-M0 core, a range of peripherals and memory options. The
pin and code compatible devices of the nRF51 series offer you the
most flexible platform for all your 2.4 GHz wireless applications.
All rights reserved.
Reproduction in whole or in part is prohibited without the prior written permission of the copyright holder.
2014-10-20
Contents
Contents
1 Revision history................................................................................... 8
2 About this document........................................................................... 9
2.1 Peripheral naming and abbreviations..................................................................................... 9
2.2 Register tables........................................................................................................................ 9
2.2.1 Fields and values...................................................................................................... 9
3 System overview................................................................................ 11
3.1 Summary............................................................................................................................... 11
3.2 Block diagram....................................................................................................................... 11
3.3 System blocks....................................................................................................................... 12
3.3.1 ARM® Cortex
™
-M0................................................................................................. 12
3.3.2 2.4 GHz radio..........................................................................................................13
3.3.3 Power management................................................................................................ 13
3.3.4 PPI system.............................................................................................................. 13
3.3.5 Debugger support....................................................................................................13
4 CPU......................................................................................................14
5 Memory................................................................................................15
5.1 Functional description........................................................................................................... 15
5.1.1 Memory categories.................................................................................................. 15
5.1.2 Memory types.......................................................................................................... 15
5.1.3 Code memory.......................................................................................................... 16
5.1.4 Random Access Memory........................................................................................ 16
5.1.5 Peripheral registers................................................................................................. 16
5.2 Instantiation........................................................................................................................... 17
6 Non-Volatile Memory Controller (NVMC)......................................... 18
6.1 Functional description........................................................................................................... 18
6.1.1 Writing to the NVM..................................................................................................18
6.1.2 Writing to User Information Configuration Registers............................................... 18
6.1.3 Erase all.................................................................................................................. 18
6.1.4 Erasing a page in code region 1............................................................................ 18
6.1.5 Erasing a page in code region 0............................................................................ 18
6.2 Register Overview................................................................................................................. 18
6.3 Register Details.....................................................................................................................19
7 Factory Information Configuration Registers (FICR)...................... 21
7.1
7.2
7.3
7.4
Functional description........................................................................................................... 21
Override parameters............................................................................................................. 21
Register Overview................................................................................................................. 21
Register Details.....................................................................................................................22
Page 2
Contents
8 User Information Configuration Registers (UICR).......................... 25
8.1 Functional description........................................................................................................... 25
8.2 Register Overview................................................................................................................. 25
8.3 Register Details.....................................................................................................................26
9 Memory Protection Unit (MPU)......................................................... 28
9.1 Functional description........................................................................................................... 28
9.1.1 Inputs....................................................................................................................... 28
9.1.2 Output...................................................................................................................... 29
9.1.3 Output decision table.............................................................................................. 29
9.1.4 Exceptions from table..............................................................................................30
9.1.5 NVM protection blocks............................................................................................ 30
9.2 Register Overview................................................................................................................. 31
9.3 Register Details.....................................................................................................................31
10 Peripheral interface..........................................................................37
10.1 Functional description......................................................................................................... 37
10.1.1 Peripheral ID......................................................................................................... 37
10.1.2 Bit set and clear.................................................................................................... 38
10.1.3 Tasks..................................................................................................................... 38
10.1.4 Events....................................................................................................................38
10.1.5 Shortcuts................................................................................................................38
10.1.6 Interrupts................................................................................................................38
11 Debugger Interface (DIF)................................................................. 40
11.1 Functional description......................................................................................................... 40
11.1.1 Normal mode......................................................................................................... 40
11.1.2 Debug interface mode...........................................................................................40
11.1.3 Resuming normal mode........................................................................................ 40
12 Power management (POWER)........................................................ 42
12.1 Functional description......................................................................................................... 42
12.1.1 Power supply......................................................................................................... 42
12.1.2 Internal LDO setup................................................................................................ 42
12.1.3 DC/DC converter setup......................................................................................... 42
12.1.4 Low voltage mode setup....................................................................................... 43
12.1.5 System OFF mode................................................................................................ 44
12.1.6 Emulated System OFF mode................................................................................44
12.1.7 System ON mode..................................................................................................44
12.1.8 Power supply supervisor....................................................................................... 45
12.1.9 Power-fail comparator........................................................................................... 45
12.1.10 RAM blocks......................................................................................................... 46
12.1.11 Reset................................................................................................................... 46
12.1.12 Power-on reset.................................................................................................... 46
12.1.13 Pin reset.............................................................................................................. 46
12.1.14 Wakeup from OFF mode reset........................................................................... 46
12.1.15 Soft reset............................................................................................................. 46
12.1.16 Watchdog reset................................................................................................... 46
12.1.17 Brown-out reset................................................................................................... 47
12.1.18 Retained registers............................................................................................... 47
12.1.19 Reset behavior.................................................................................................... 47
12.2 Register Overview............................................................................................................... 47
Page 3
Contents
12.3 Register Details...................................................................................................................48
13 Clock management (CLOCK).......................................................... 51
13.1 Functional description......................................................................................................... 51
13.1.1 HFCLK clock controller......................................................................................... 51
13.1.2 LFCLK clock controller.......................................................................................... 52
13.1.3 Calibrating the 32.768 kHz RC oscillator.............................................................. 53
13.1.4 Calibration timer.................................................................................................... 53
13.2 Register Overview............................................................................................................... 53
13.3 Register Details...................................................................................................................54
14 General-Purpose Input/Output (GPIO)........................................... 56
14.1 Functional description......................................................................................................... 56
14.2 Register Overview............................................................................................................... 57
14.3 Register Details...................................................................................................................57
15 GPIO tasks and events (GPIOTE)...................................................70
15.1 Functional description......................................................................................................... 70
15.1.1 Pin events and tasks.............................................................................................70
15.1.2 Port event.............................................................................................................. 70
15.1.3 Task and events pin configuration........................................................................ 70
15.2 Register Overview............................................................................................................... 71
15.3 Register Details...................................................................................................................71
16 Programmable Peripheral Interconnect (PPI)................................73
16.1 Functional description......................................................................................................... 73
16.1.1 Pre-programmed channels.................................................................................... 74
16.2 Register Overview............................................................................................................... 74
16.3 Register Details...................................................................................................................75
17 2.4 GHz Radio (RADIO)................................................................... 81
17.1 Functional description......................................................................................................... 81
17.1.1 EasyDMA...............................................................................................................81
17.1.2 Packet configuration.............................................................................................. 82
17.1.3 Maximum packet length........................................................................................ 82
17.1.4 Address configuration............................................................................................82
17.1.5 Received Signal Strength Indicator (RSSI)........................................................... 83
17.1.6 Data whitening.......................................................................................................83
17.1.7 CRC....................................................................................................................... 84
17.1.8 Radio states.......................................................................................................... 84
17.1.9 Maximum consecutive transmission time..............................................................85
17.1.10 Transmit sequence.............................................................................................. 85
17.1.11 Receive sequence............................................................................................... 87
17.1.12 Interframe spacing...............................................................................................88
17.1.13 Device address match.........................................................................................88
17.1.14 Bit counter........................................................................................................... 89
17.1.15 Bluetooth trim values...........................................................................................89
17.2 Register Overview............................................................................................................... 90
17.3 Register Details...................................................................................................................91
18 Timer/counter (TIMER).....................................................................99
18.1 Functional description......................................................................................................... 99
Page 4
Contents
18.1.1 Capture................................................................................................................ 100
18.1.2 Compare.............................................................................................................. 100
18.1.3 Task delays......................................................................................................... 100
18.1.4 Task priority......................................................................................................... 100
18.2 Register Overview............................................................................................................. 100
18.3 Register Details................................................................................................................. 101
19 Real Time Counter (RTC).............................................................. 103
19.1 Functional description....................................................................................................... 103
19.1.1 Clock source........................................................................................................103
19.1.2 Resolution versus overflow and the PRESCALER..............................................103
19.1.3 The COUNTER register...................................................................................... 104
19.1.4 Overflow features................................................................................................ 104
19.1.5 The TICK event................................................................................................... 104
19.1.6 Event Control feature.......................................................................................... 104
19.1.7 Compare feature..................................................................................................105
19.1.8 TASK and EVENT jitter/delay............................................................................. 107
19.1.9 Reading the COUNTER register......................................................................... 108
19.2 Register Overview............................................................................................................. 109
19.3 Register Details................................................................................................................. 109
20 Watchdog timer (WDT).................................................................. 112
20.1 Functional description....................................................................................................... 112
20.1.1 Reload criteria..................................................................................................... 112
20.1.2 Temporarily pausing the watchdog..................................................................... 112
20.1.3 Watchdog reset................................................................................................... 112
20.2 Register Overview............................................................................................................. 112
20.3 Register Details................................................................................................................. 113
21 Random Number Generator (RNG).............................................. 115
21.1 Functional description....................................................................................................... 115
21.1.1 Digital error correction......................................................................................... 115
21.1.2 Speed.................................................................................................................. 115
21.2 Register Overview............................................................................................................. 115
21.3 Register Details................................................................................................................. 116
22 Temperature sensor (TEMP)......................................................... 117
22.1 Functional description....................................................................................................... 117
22.2 Register Overview............................................................................................................. 117
22.3 Register Details................................................................................................................. 117
23 AES Electronic Codebook mode encryption (ECB).................... 119
23.1 Functional description....................................................................................................... 119
23.1.1 EasyDMA.............................................................................................................119
23.1.2 ECB Data Structure.............................................................................................119
23.1.3 Shared resources................................................................................................ 119
23.2 Register Overview............................................................................................................. 119
23.3 Register Details................................................................................................................. 120
24 AES CCM Mode Encryption (CCM).............................................. 121
24.1 Functional description....................................................................................................... 121
24.1.1 Encryption............................................................................................................121
Page 5
评论