NXP JN5178 User guide

Type
User guide

This manual is also suitable for

JN517x Integrated Peripherals API
User Guide
JN-UG-3118
Revision 1.2
22 December 2016
JN517x Integrated Peripherals API
User Guide
2 © NXP Laboratories UK 2016 JN-UG-3118 v1.2
JN517x Integrated Peripherals API
User Guide
JN-UG-3118 v1.2 © NXP Laboratories UK 2016 3
Contents
Preface 15
Organisation 15
Conventions 17
Acronyms and Abbreviations 17
Related Documents 18
Support Resources 18
Trademarks 18
Part I: Concept and Operational Information
1. Overview 21
1.1 JN517x Integrated Peripherals 21
1.2 JN517x Integrated Peripherals API 22
1.3 Using this Manual 23
2. General Functionality 25
2.1 API Initialisation 25
2.2 Radio Power 25
2.2.1 Transmission Power 25
2.2.2 Receive Power 25
2.3 Antenna Diversity 26
2.4 Random Number Generator 27
2.5 Accessing Internal NVM 28
2.6 Configuring the JN517x Device for a Specific Module 28
2.6.1 Adding the Function to an Application 29
2.6.2 JN517x Module Type Enumerations 29
3. System Controller 31
3.1 Clock Management 31
3.1.1 System Clock Start-up and Source Selection 32
3.1.2 System Clock Start-up Following Sleep 33
3.1.3 CPU Clock Frequency Selection 34
3.1.4 System Clock Operation at High Temperatures 34
3.1.5 32kHz Clock Selection 35
3.2 Power Management 36
3.2.1 Power Domains 36
3.2.2 Wireless Transceiver Clock 37
3.2.3 Low-Power Modes 38
Contents
4 © NXP Laboratories UK 2016 JN-UG-3118 v1.2
3.2.4 Power Status 39
3.3 Supply Voltage Monitor (SVM) 40
3.3.1 Configuring SVM 40
3.3.2 Monitoring Voltage 41
3.4 Resets 41
3.5 System Controller Interrupts 42
4. Analogue Peripherals 43
4.1 ADC 43
4.1.1 Single-Shot Mode 46
4.1.2 Continuous Mode 46
4.1.3 Accumulation Mode 47
4.2 ADC with DMA Engine (Sample Buffer Mode) 48
4.2.1 Preparing for Sample Buffer Mode 48
4.2.2 Sample Buffer Mode Operation 49
4.3 Comparator 51
4.3.1 Comparator Interrupts and Wake-up 53
4.3.2 Comparator Low-Power Mode 53
4.4 Analogue Peripheral Interrupts 54
5. Digital Inputs/Outputs (DIOs) 55
5.1 Using the DIOs 55
5.1.1 Setting the Directions of the DIOs 55
5.1.2 Setting DIO Outputs 56
5.1.3 Enabling and Setting DIO Pull-ups/Pull-downs 56
5.1.4 Reading the DIOs 58
5.1.5 Reading the State of Pull-ups/Pull-downs 58
5.1.6 Configuring the Functions of DIOs 58
5.2 DIO Interrupts and Wake-up 59
5.2.1 DIO Interrupts 59
5.2.2 DIO Wake-up 60
5.3 Configuring Digital Outputs (DOs) 61
6. UARTs 63
6.1 UART Signals and Pins 63
6.2 UART Operation 64
6.2.1 2-wire Mode 64
6.2.2 4-wire Mode (with Flow Control) [UART0 Only] 65
6.2.3 1-Wire Mode [UART1 Only] 66
6.3 Configuring the UARTs 66
6.3.1 Enabling a UART 66
6.3.2 Setting the Baud-rate 67
6.3.3 Setting Other UART Properties 67
JN517x Integrated Peripherals API
User Guide
JN-UG-3118 v1.2 © NXP Laboratories UK 2016 5
6.3.4 Enabling Interrupts 68
6.4 Transferring Serial Data in 2-wire Mode 69
6.4.1 Transmitting Data (2-wire Mode) 69
6.4.2 Receiving Data (2-wire Mode) 70
6.5 Transferring Serial Data in 4-wire Mode (UART0 Only) 71
6.5.1 Transmitting Data (4-wire Mode, Manual Flow Control) 71
6.5.2 Receiving Data (4-wire Mode, Manual Flow Control) 72
6.5.3 Automatic Flow Control (4-wire Mode) 73
6.6 Transmitting Serial Data in 1-wire Mode 75
6.7 Break Condition 75
6.8 UART Interrupt Handling 76
7. Timers 77
7.1 Modes of Timer Operation 78
7.2 Setting up a Timer 79
7.2.1 Selecting DIOs 79
7.2.2 Enabling a Timer 80
7.2.3 Selecting Clocks 81
7.3 Starting and Operating a Timer 82
7.3.1 Timer and PWM Modes 82
7.3.2 Delta-Sigma Mode (NRZ and RTZ) 83
7.3.3 Capture Mode 84
7.3.4 Counter Mode 86
7.4 Timer Interrupts 87
8. Wake Timers 89
8.1 Using a Wake Timer 89
8.1.1 Enabling and Starting a Wake Timer 89
8.1.2 Stopping a Wake Timer 90
8.1.3 Reading a Wake Timer 90
8.1.4 Obtaining Wake Timer Status 90
8.2 Clock Calibration 90
9. Tick Timer 93
9.1 Tick Timer Operation 93
9.2 Using the Tick Timer 94
9.2.1 Setting Up the Tick Timer 94
9.2.2 Running the Tick Timer 94
9.3 Tick Timer Interrupts 95
Contents
6 © NXP Laboratories UK 2016 JN-UG-3118 v1.2
10. Watchdog Timer 97
10.1 Watchdog Operation 97
10.2 Using the Watchdog Timer 98
10.2.1 Starting the Timer 98
10.2.2 Resetting the Timer 99
10.2.3 Exception Handler for Debug 99
11. Pulse Counters 101
11.1 Pulse Counter Operation 101
11.2 Using a Pulse Counter 102
11.2.1 Configuring a Pulse Counter 102
11.2.2 Starting and Stopping a Pulse Counter 102
11.2.3 Monitoring a Pulse Counter 103
11.3 Pulse Counter Interrupts 103
12. Infra-Red Transmitter 105
12.1 Infra-Red Transmitter Operation 105
12.2 Using the Infra-Red Transmitter 106
12.2.1 Configuring the Infra-Red Transmitter 106
12.2.2 Starting an Infra-Red Transmission 107
12.2.3 Monitoring an Infra-Red Transmission 107
12.2.4 Disabling the Infra-Red Transmitter 108
12.3 Infra-Red Transmitter Interrupt 108
13. Inter-Integrated Circuit (I2C) Interface 109
13.1 Common Configuration 109
13.2 I2C Master 110
13.2.1 Enabling the I2C Master 111
13.2.2 Writing Data to a Slave 112
13.2.3 Reading Data from a Slave 112
13.2.4 Multiple (Block Chain) Transfers 112
13.2.5 Waiting for Completion 113
13.2.6 Interrupts 113
13.3 I2C Slave 114
13.3.1 Enabling the Slave and its Interrupts 114
13.3.2 Receiving Data from the Master 115
13.3.3 Sending Data to the Master 115
14. Serial Peripheral Interface (SPI) Master 117
14.1 SPI Bus Lines 117
14.2 Data Transfers 118
14.3 SPI Modes 118
JN517x Integrated Peripherals API
User Guide
JN-UG-3118 v1.2 © NXP Laboratories UK 2016 7
14.4 Slave Selection 118
14.5 Using the Serial Peripheral Interface 119
14.5.1 Performing a Data Transfer 119
14.5.2 Performing a Continuous Transfer 120
14.6 SPI Interrupts 120
15. Serial Peripheral Interface (SPI) Slave 121
15.1 SPI Slave Operation 121
15.1.1 SPI Bus Lines and DIO Usage 122
15.1.2 SPI Slave FIFOs and Interrupts 122
15.2 Using the SPI Slave 123
16. Flash Memory 125
16.1 Flash Memory Organisation and Types 125
16.2 API Functions 126
16.3 Operating on Flash Memory 126
16.3.1 Erasing Data from Flash Memory 127
16.3.2 Reading Data from Flash Memory 127
16.3.3 Writing Data to Flash Memory 127
16.4 Controlling Power to External Flash Memory 128
17. EEPROM 131
17.1 Initialisation 132
17.2 Writing to the EEPROM 132
17.3 Reading from the EEPROM 132
17.4 Erasing the EEPROM 132
Part II: Reference Information
18. General Functions 135
u32AHI_Init 137
vAHI_RfPinOutputEnable 138
vAHI_AntennaDiversityEnable 139
u8AHI_AntennaDiversityStatus 140
vAHI_AntennaDiversityControl 141
vAHI_AntennaDiversitySwitch 142
vAHI_StartRandomNumberGenerator 143
vAHI_StopRandomNumberGenerator 144
u16AHI_ReadRandomNumber 145
bAHI_RndNumPoll 146
vAHI_WriteNVData 147
u32AHI_ReadNVData 148
Contents
8 © NXP Laboratories UK 2016 JN-UG-3118 v1.2
vAHI_RadioSetReducedInputPower 149
vAHI_ModuleConfigure 150
19. System Controller Functions 151
u16AHI_PowerStatus 153
vAHI_CpuDoze 154
vAHI_Sleep 155
vAHI_ProtocolPower 157
bAHI_Set32KhzClockMode 158
vAHI_Init32KhzXtal 159
vAHI_Trim32KhzRC 160
vAHI_SelectClockSource 161
bAHI_GetClkSource 162
bAHI_SetClockRate 163
u8AHI_GetSystemClkRate 164
bAHI_Clock32MHzStable 166
vAHI_ClockXtalPull 167
vAHI_Trim32Mhz 168
vAHI_PowerXTAL 169
vAHI_EnableFastStartUp 170
bAHI_TrimHighSpeedRCOsc 171
vAHI_OptimiseWaitStates 172
vAHI_BrownOutConfigure 173
bAHI_BrownOutStatus 175
bAHI_BrownOutEventResetStatus 176
u32AHI_BrownOutPoll 177
vAHI_SwReset 178
vAHI_SetJTAGdebugger 179
vAHI_ClearSystemEventStatus 180
vAHI_SysCtrlRegisterCallback 181
20. Analogue Peripheral Functions 183
20.1 Common Analogue Peripheral Functions 183
vAHI_ApConfigure 184
vAHI_ApSetBandGap 186
bAHI_APRegulatorEnabled 187
vAHI_ApSetSlowConversions 188
vAHI_APRegisterCallback 189
20.2 ADC Functions 190
vAHI_AdcEnable 191
vAHI_AdcSetTemperatureSensor 193
vAHI_AdcSetBatteryMonitor 194
vAHI_AdcStartSample 195
vAHI_AdcStartAccumulateSamples 196
bAHI_AdcPoll 197
JN517x Integrated Peripherals API
User Guide
JN-UG-3118 v1.2 © NXP Laboratories UK 2016 9
u16AHI_AdcRead 198
vAHI_AdcDisable 199
20.3 ADC with DMA Engine Functions 200
bAHI_AdcEnableSampleBuffer 201
vAHI_AdcDisableSampleBuffer 203
u16AHI_AdcSampleBufferOffset 204
20.4 Comparator Functions 205
vAHI_ComparatorEnable 206
vAHI_ComparatorDisable 208
vAHI_ComparatorLowPowerMode 209
vAHI_ComparatorIntEnable 210
vAHI_ComparatorWakeEnable 211
u8AHI_ComparatorStatus 212
u8AHI_ComparatorWakeStatus 213
bAHI_ComparatorControl 214
21. DIO and DO Functions 217
vAHI_DioSetDirection 219
vAHI_DioSetOutput 220
vAHI_DioSetPullup 221
vAHI_DioSetPullupDirection 222
u32AHI_DioReadPullupDirection 223
vAHI_SetDIOpinMultiplexValue 224
u32AHI_ReadDIOMultiplexValue 226
u32AHI_DioReadInput 227
vAHI_DioSetByte 228
u8AHI_DioReadByte 229
vAHI_DioInterruptEnable 230
vAHI_DioInterruptEdge 231
u32AHI_DioInterruptStatus 232
vAHI_DioWakeEnable 233
vAHI_DioWakeEdge 234
u32AHI_DioWakeStatus 235
vAHI_SetDIOpinsRadioMode 236
bAHI_DoEnableOutputs 237
vAHI_DoSetDataOut 238
vAHI_DoSetPullup 239
vAHI_SetDOpinMultiplexValue 240
22. UART Functions 241
bAHI_UartEnable 243
bAHI_UartEnableNoneDIO 245
vAHI_UartDisable 247
vAHI_UartSetBaudRate 248
vAHI_UartSetBaudDivisor 249
Contents
10 © NXP Laboratories UK 2016 JN-UG-3118 v1.2
vAHI_UartSetClocksPerBit 250
vAHI_UartSetClockDivisor 251
vAHI_UartSetControl 252
vAHI_UartSetInterrupt 253
vAHI_UartSetRTSCTS 254
vAHI_UartSetRTS 255
vAHI_UartSetAutoFlowCtrl 256
vAHI_UartSetBreak 258
vAHI_UartReset 259
u16AHI_UartReadRxFifoLevel 260
u16AHI_UartReadTxFifoLevel 261
u8AHI_UartReadLineStatus 262
u8AHI_UartReadModemStatus 263
u8AHI_UartReadInterruptStatus 264
vAHI_UartWriteData 265
u8AHI_UartReadData 266
u16AHI_UartBlockWriteData 267
u16AHI_UartBlockReadData 268
vAHI_Uart0RegisterCallback 269
vAHI_Uart1RegisterCallback 270
23. Timer Functions 271
vAHI_TimerEnable 273
vAHI_TimerEnableNoneDIO 275
vAHI_TimerClockSelect 277
vAHI_TimerConfigureOutputs 278
vAHI_TimerConfigureInputs 279
vAHI_TimerStartSingleShot 280
vAHI_TimerStartRepeat 281
vAHI_TimerStartCapture 283
vAHI_TimerStartDeltaSigma 284
u16AHI_TimerReadCount 286
vAHI_TimerReadCapture 287
vAHI_TimerReadCaptureFreeRunning 288
u32AHI_Timer17bitReadCount 289
vAHI_Timer17bitReadCapture 290
vAHI_Timer17bitReadCaptureFreeRunning 291
bAHI_Switch32MHzClockForPWM 293
vAHI_TimerStop 294
vAHI_TimerDisable 295
u8AHI_TimerFired 296
vAHI_Timer0RegisterCallback 297
vAHI_Timer1RegisterCallback 298
vAHI_Timer2RegisterCallback 299
vAHI_Timer3RegisterCallback 300
vAHI_Timer4RegisterCallback 301
JN517x Integrated Peripherals API
User Guide
JN-UG-3118 v1.2 © NXP Laboratories UK 2016 11
vAHI_Timer5RegisterCallback 302
vAHI_Timer6RegisterCallback 303
vAHI_Timer7RegisterCallback 304
vAHI_Timer8RegisterCallback 305
boAHI_RegisterTimerCallbackById 306
24. Wake Timer Functions 307
vAHI_WakeTimerEnable 308
vAHI_WakeTimerStart 309
u32AHI_WakeTimerRead 310
vAHI_WakeTimerStop 311
vAHI_WakeTimerStartLarge 312
u64AHI_WakeTimerReadLarge 313
u8AHI_WakeTimerStatus 314
u8AHI_WakeTimerFiredStatus 315
u32AHI_WakeTimerCalibrate 316
u32AHI_WakeTimerCalibrateEnhanced 317
25. Tick Timer Functions 319
vAHI_TickTimerConfigure 320
vAHI_TickTimerInterval 321
vAHI_TickTimerInit 322
vAHI_TickTimerClear 323
u32AHI_TickTimerRead 324
vAHI_TickTimerStop 325
bAHI_TickTimerWrapStatus 326
vAHI_SetTickTimerSource 327
vAHI_TickTimerIntEnable 328
bAHI_TickTimerIntStatus 329
vAHI_TickTimerIntPendClr 330
26. Watchdog Timer Functions 331
vAHI_WatchdogStart 332
vAHI_WatchdogStop 333
vAHI_WatchdogRestart 334
u16AHI_WatchdogReadValue 335
bAHI_WatchdogResetEvent 336
vAHI_WatchdogException 337
27. Pulse Counter Functions 339
bAHI_PulseCounterConfigure 340
bAHI_SetPulseCounterRef 342
bAHI_StartPulseCounter 343
bAHI_StopPulseCounter 344
u32AHI_PulseCounterStatus 345
Contents
12 © NXP Laboratories UK 2016 JN-UG-3118 v1.2
bAHI_Read16BitCounter 346
bAHI_Read32BitCounter 347
bAHI_Clear16BitPulseCounter 348
bAHI_Clear32BitPulseCounter 349
28. Infra-Red Transmitter Functions 351
bAHI_InfraredEnable 352
vAHI_InfraredDisable 354
bAHI_InfraredStart 355
bAHI_InfraredStatus 356
vAHI_InfraredRegisterCallback 357
29. I2C Interface Functions 359
29.1 I2C Common Functions 360
vAHI_I2CcontrollerConfigure 361
vAHI_SetI2CpinsToMFIOmode 362
u32AHI_I2CGetStatus 363
vAHI_I2CReset 364
boAHI_I2CIsBusy 365
vAHI_I2CRegisterCallback 366
pfAHI_I2CGetCallback 367
29.2 I2C Master Functions 368
boAHI_I2CMasterConfigure 369
u16AHI_I2CMasterReadWriteData 370
u16AHI_I2CMasterMultiReadWriteData 371
boAHI_I2CIsMasterTransferComplete 372
u32AHI_I2CTransferHasFailed 373
boAHI_I2CIsMaster 374
29.3 I2C Slave Functions 375
boAHI_I2CSlaveConfigure 376
u16AHI_I2CSlaveWriteData 377
30. SPI Master Functions 379
vAHI_SpiConfigureNoneDIO 380
vAHI_SpiConfigure 382
vAHI_SpiReadConfiguration 384
vAHI_SpiRestoreConfiguration 385
vAHI_SpiSelect 386
vAHI_SpiStop 387
vAHI_SpiDisable 388
vAHI_SpiStartTransfer 389
u32AHI_SpiReadTransfer32 390
u16AHI_SpiReadTransfer16 391
u8AHI_SpiReadTransfer8 392
vAHI_SpiContinuous 393
JN517x Integrated Peripherals API
User Guide
JN-UG-3118 v1.2 © NXP Laboratories UK 2016 13
bAHI_SpiPollBusy 394
vAHI_SpiWaitBusy 395
vAHI_SpiSetDelayReadEdge 396
vAHI_SpiSetContinuousMode 397
vAHI_SpiRegisterCallback 398
31. SPI Slave Functions 399
bAHI_SpiSlaveEnable 400
vAHI_SpiSlaveDisable 402
vAHI_SpiSlaveReset 403
vAHI_SpiSlaveTxWriteByte 404
u8AHI_SpiSlaveRxReadByte 405
u8AHI_SpiSlaveTxFillLevel 406
u8AHI_SpiSlaveRxFillLevel 407
u8AHI_SpiSlaveStatus 408
vAHI_SpiSlaveRegisterCallback 409
32. Flash Memory Functions 411
bAHI_FlashInit 412
bAHI_FlashEraseSector 414
bAHI_FlashInternalMultiSectorErase 415
bAHI_FullFlashProgram 416
bAHI_FullFlashRead 417
vAHI_FlashPowerDown 418
vAHI_FlashPowerUp 419
bAHI_FlashEECerrorInterruptSet 420
vAHI_ExtendedTemperatureOperation 421
vAHI_FlashAndEEPROMControllerIntHandler 422
33. EEPROM Functions 423
u16AHI_InitialiseEEP 424
iAHI_WriteDataIntoEEPROMsegment 425
iAHI_ReadDataFromEEPROMsegment 426
iAHI_EraseEEPROMsegment 427
Part III: Appendices
A. Interrupt Handling 431
A.1 Callback Function Prototype and Parameters 432
A.2 Callback Behaviour 433
A.3 Handling Wake Interrupts 433
B. Interrupt Enumerations and Masks 436
B.1 Peripheral Interrupt Enumerations (u32DeviceId) 436
B.2 Peripheral Interrupt Sources (u32ItemBitmap) 437
Contents
14 © NXP Laboratories UK 2016 JN-UG-3118 v1.2
JN517x Integrated Peripherals API
User Guide
JN-UG-3118 v1.2 © NXP Laboratories UK 2016 15
Preface
This manual describes the use of the JN517x Integrated Peripherals Application
Programming Interface (API) to interact with the peripherals on a wireless
microcontroller from the NXP JN517x family. The manual explains the basic operation
of each peripheral and indicates how to use the relevant API functions to control the
peripheral from the application which runs on the JN517x device. The C functions and
associated resources of the API are fully detailed.
Organisation
This manual is divided into three parts:
ï‚¡ Part I: Concept and Operational Information comprises 17 chapters:
ï‚  Chapter 1 presents a functional overview of the JN517x Integrated
Peripherals API.
ï‚  Chapter 2 describes use of the General functions of the API, including
the API initialisation function.
ï‚  Chapter 3 describes use of the System Controller functions, including
functions that configure the system clock and sleep operations.
ï‚  Chapter 4 describes use of the Analogue Peripheral functions, used to
control the ADC and comparator.
ï‚  Chapter 5 describes use of the DIO functions, used to control the
general-purpose digital input/output pins.
ï‚  Chapter 6 describes use of the UART functions, used to control the
16550-compatible UARTs.
ï‚  Chapter 7 describes use of the Timer functions, used to control the
general-purpose timers.
ï‚  Chapter 8 describes use of the Wake Timer functions, used to control the
wake timers that can be employed to time sleep periods.
ï‚  Chapter 9 describes use of the Tick Timer functions, used to control the
high-precision hardware timer.
ï‚  Chapter 10 describes use of the Watchdog Timer functions, used to
control the watchdog that allows software lock-ups to be avoided.
ï‚  Chapter 11 describes use of the Pulse Counter functions, used to
control the two pulse counters.
ï‚  Chapter 12 describes use of the Infra-Red Transmitter functions, used
to control the infra-red transmission feature of Timer 2.
ï‚  Chapter 13 describes use of the I
2
C Interface functions, used to control a
2-wire I
2
C master and I
2
C slave.
ï‚  Chapter 14 describes use of the Serial Peripheral Interface (SPI) Master
functions, used to control the master interface to the SPI bus.
Preface
16 © NXP Laboratories UK 2016 JN-UG-3118 v1.2
ï‚  Chapter 15 describes use of the Serial Peripheral Interface (SPI) Slave
functions, used to control the slave interface to the SPI bus.
ï‚  Chapter 16 describes use of the Flash Memory functions, used to
manage the Flash memory.
ï‚  Chapter 17 describes use of the EEPROM functions, used to access the
on-chip EEPROM device.
ï‚¡ Part II: Reference Information comprises 16 chapters:
ï‚  Chapter 18 details the General functions of the API, including the API
initialisation function.
ï‚  Chapter 19 details the System Controller functions, including functions
that configure the system clock and sleep operations.
ï‚  Chapter 20 details the Analogue Peripheral functions, used to control
the ADC and comparator.
ï‚  Chapter 21 details the DIO functions, used to control the general-purpose
digital input/output pins.
ï‚  Chapter 22 details the UART functions, used to control the 16550-
compatible UARTs.
ï‚  Chapter 23 details the Timer functions, used to control the general-
purpose timers.
ï‚  Chapter 24 details the Wake Timer functions, used to control the wake
timers that can be employed to time sleep periods.
ï‚  Chapter 25 details the Tick Timer functions, used to control the high-
precision hardware timer.
ï‚  Chapter 26 details the Watchdog Timer functions, used to control the
watchdog that allows software lock-ups to be avoided.
ï‚  Chapter 27 details the Pulse Counter functions, used to control the two
pulse counters.
ï‚  Chapter 28 details the Infra-Red Transmitter functions, used to control
infra-red transmission.
ï‚  Chapter 29 details the I
2
C Interface functions, used to control a 2-wire
I
2
C master and I
2
C slave.
ï‚  Chapter 30 details the Serial Peripheral Interface (SPI) Master
functions, used to control the master interface to the SPI bus.
ï‚  Chapter 31 details the Serial Peripheral Interface (SPI) Slave functions,
used to control the slave interface to the SPI bus.
ï‚  Chapter 32 details the Flash Memory functions, used to manage the
Flash memory.
ï‚  Chapter 33 details the EEPROM functions, used to access the on-chip
EEPROM device.
ï‚¡ Part III: Appendices provides information on handling interrupts from the
peripheral devices.
JN517x Integrated Peripherals API
User Guide
JN-UG-3118 v1.2 © NXP Laboratories UK 2016 17
Conventions
Files, folders, functions and parameter types are represented in bold type.
Function parameters are represented in italics type.
Code fragments are represented in the Courier New typeface.
Acronyms and Abbreviations
ADC Analogue-to-Digital Converter
AES Advanced Encryption Standard
AHI Application Hardware Interface
API Application Programming Interface
CPU Central Processing Unit
CTS Clear-To-Send
DAC Digital-to-Analogue Converter
DAI Digital Audio Interface
DIO Digital Input/Output
EIRP Equivalent Isotropically Radiated Power
FIFO First In, First Out (queue)
GPIO General Purpose Input/Output
I
2
C Inter-Integrated Circuit
JCU JN51xx Core Utilities
This is a Tip. It indicates useful or practical information.
This is a Note. It highlights important additional
information.
This is a Caution. It warns of situations that may result
in equipment malfunction or damage.
Preface
18 © NXP Laboratories UK 2016 JN-UG-3118 v1.2
LPRF Low-Power Radio Frequency
MAC Medium Access Control
NVM Non-Volatile Memory
PDM Persistent Data Manager
PWM Pulse Width Modulation
RAM Random Access Memory
RTS Ready-To-Send
SI Serial Interface
SDK Software Developer’s Kit
SPI Serial Peripheral Interface
UART Universal Asynchronous Receiver-Transmitter
VBO Voltage Brownout
Related Documents
JN517X JN517x Data Sheet
Support Resources
To access online support resources such as SDKs, Application Notes and User
Guides, visit the Wireless Connectivity area of the NXP web site:
www.nxp.com/products/wireless-connectivity
All NXP resources referred to in this manual can be found at the above address,
unless otherwise stated.
Trademarks
All trademarks are the property of their respective owners.
JN517x Integrated Peripherals API
User Guide
JN-UG-3118 v1.2 © NXP Laboratories UK 2016 19
Part I:
Concept and Operational
Information
20 © NXP Laboratories UK 2016 JN-UG-3118 v1.2
  • 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
  • Page 172 172
  • Page 173 173
  • Page 174 174
  • Page 175 175
  • Page 176 176
  • Page 177 177
  • Page 178 178
  • Page 179 179
  • Page 180 180
  • Page 181 181
  • Page 182 182
  • Page 183 183
  • Page 184 184
  • Page 185 185
  • Page 186 186
  • Page 187 187
  • Page 188 188
  • Page 189 189
  • Page 190 190
  • Page 191 191
  • Page 192 192
  • Page 193 193
  • Page 194 194
  • Page 195 195
  • Page 196 196
  • Page 197 197
  • Page 198 198
  • Page 199 199
  • Page 200 200
  • Page 201 201
  • Page 202 202
  • Page 203 203
  • Page 204 204
  • Page 205 205
  • Page 206 206
  • Page 207 207
  • Page 208 208
  • Page 209 209
  • Page 210 210
  • Page 211 211
  • Page 212 212
  • Page 213 213
  • Page 214 214
  • Page 215 215
  • Page 216 216
  • Page 217 217
  • Page 218 218
  • Page 219 219
  • Page 220 220
  • Page 221 221
  • Page 222 222
  • Page 223 223
  • Page 224 224
  • Page 225 225
  • Page 226 226
  • Page 227 227
  • Page 228 228
  • Page 229 229
  • Page 230 230
  • Page 231 231
  • Page 232 232
  • Page 233 233
  • Page 234 234
  • Page 235 235
  • Page 236 236
  • Page 237 237
  • Page 238 238
  • Page 239 239
  • Page 240 240
  • Page 241 241
  • Page 242 242
  • Page 243 243
  • Page 244 244
  • Page 245 245
  • Page 246 246
  • Page 247 247
  • Page 248 248
  • Page 249 249
  • Page 250 250
  • Page 251 251
  • Page 252 252
  • Page 253 253
  • Page 254 254
  • Page 255 255
  • Page 256 256
  • Page 257 257
  • Page 258 258
  • Page 259 259
  • Page 260 260
  • Page 261 261
  • Page 262 262
  • Page 263 263
  • Page 264 264
  • Page 265 265
  • Page 266 266
  • Page 267 267
  • Page 268 268
  • Page 269 269
  • Page 270 270
  • Page 271 271
  • Page 272 272
  • Page 273 273
  • Page 274 274
  • Page 275 275
  • Page 276 276
  • Page 277 277
  • Page 278 278
  • Page 279 279
  • Page 280 280
  • Page 281 281
  • Page 282 282
  • Page 283 283
  • Page 284 284
  • Page 285 285
  • Page 286 286
  • Page 287 287
  • Page 288 288
  • Page 289 289
  • Page 290 290
  • Page 291 291
  • Page 292 292
  • Page 293 293
  • Page 294 294
  • Page 295 295
  • Page 296 296
  • Page 297 297
  • Page 298 298
  • Page 299 299
  • Page 300 300
  • Page 301 301
  • Page 302 302
  • Page 303 303
  • Page 304 304
  • Page 305 305
  • Page 306 306
  • Page 307 307
  • Page 308 308
  • Page 309 309
  • Page 310 310
  • Page 311 311
  • Page 312 312
  • Page 313 313
  • Page 314 314
  • Page 315 315
  • Page 316 316
  • Page 317 317
  • Page 318 318
  • Page 319 319
  • Page 320 320
  • Page 321 321
  • Page 322 322
  • Page 323 323
  • Page 324 324
  • Page 325 325
  • Page 326 326
  • Page 327 327
  • Page 328 328
  • Page 329 329
  • Page 330 330
  • Page 331 331
  • Page 332 332
  • Page 333 333
  • Page 334 334
  • Page 335 335
  • Page 336 336
  • Page 337 337
  • Page 338 338
  • Page 339 339
  • Page 340 340
  • Page 341 341
  • Page 342 342
  • Page 343 343
  • Page 344 344
  • Page 345 345
  • Page 346 346
  • Page 347 347
  • Page 348 348
  • Page 349 349
  • Page 350 350
  • Page 351 351
  • Page 352 352
  • Page 353 353
  • Page 354 354
  • Page 355 355
  • Page 356 356
  • Page 357 357
  • Page 358 358
  • Page 359 359
  • Page 360 360
  • Page 361 361
  • Page 362 362
  • Page 363 363
  • Page 364 364
  • Page 365 365
  • Page 366 366
  • Page 367 367
  • Page 368 368
  • Page 369 369
  • Page 370 370
  • Page 371 371
  • Page 372 372
  • Page 373 373
  • Page 374 374
  • Page 375 375
  • Page 376 376
  • Page 377 377
  • Page 378 378
  • Page 379 379
  • Page 380 380
  • Page 381 381
  • Page 382 382
  • Page 383 383
  • Page 384 384
  • Page 385 385
  • Page 386 386
  • Page 387 387
  • Page 388 388
  • Page 389 389
  • Page 390 390
  • Page 391 391
  • Page 392 392
  • Page 393 393
  • Page 394 394
  • Page 395 395
  • Page 396 396
  • Page 397 397
  • Page 398 398
  • Page 399 399
  • Page 400 400
  • Page 401 401
  • Page 402 402
  • Page 403 403
  • Page 404 404
  • Page 405 405
  • Page 406 406
  • Page 407 407
  • Page 408 408
  • Page 409 409
  • Page 410 410
  • Page 411 411
  • Page 412 412
  • Page 413 413
  • Page 414 414
  • Page 415 415
  • Page 416 416
  • Page 417 417
  • Page 418 418
  • Page 419 419
  • Page 420 420
  • Page 421 421
  • Page 422 422
  • Page 423 423
  • Page 424 424
  • Page 425 425
  • Page 426 426
  • Page 427 427
  • Page 428 428
  • Page 429 429
  • Page 430 430
  • Page 431 431
  • Page 432 432
  • Page 433 433
  • Page 434 434
  • Page 435 435
  • Page 436 436
  • Page 437 437
  • Page 438 438
  • Page 439 439
  • Page 440 440
  • Page 441 441
  • Page 442 442

NXP JN5178 User guide

Type
User guide
This manual is also suitable for

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

Finding information in a document is now easier with AI