SEGGER STUDIO PARA PROGRAMAÇÃO DO NINA B112
O objetivo deste BLOG é dar uma idéia geral da ferramenta SEGGER STUDIO, utilizada para programação do NINA B112. O material é da empresa Embedded Centric, a qual oferece cursos online sobre o SDK, poupando horas de trabalho no entendimento dos códigos exemplos em C. O material (separado por LAB's) pode ser aplicado ao EVK-NINA-B1, mas requer alteração do arquivo de mapa de IO board_custom.
nRF5x SoC Overview
The Nordic Semiconductor nRF5x SoCs are ideal for ultra-low power (ULP) and cost effective short-range wireless solutions. Typical applications for the nRF5x SoC are Internet of Things (IoT) devices, wearables, smart home, wireless mobile phone accessories, PC Peripherals, beacons, Bluetooth-enabled consumer electronics in general, human interface devices, sports equipment, medical equipment, security and toys. The nRF5x supports Bluetooth Low Energy (BLE) (also known as Bluetooth Smart) among other short-range wireless protocols. What made these devices so popular is that they can be operated for months and sometimes years on a small battery such as a button cell battery if properly programmed and configured . Samples of the nRFx SoC are shown below :
There are two series in the nRF5x SoC family. The original nRF51 series which was introduced in 2012, and the more advanced and relevantly newer nRF52 series . The nRF52 has extra features ,more memory, RAM and even lower than its predecessor in power consumption , however , when it comes to the chip cost ; the nRF51 has the advantage here.
The key differences between these two series are highlighted in the following table:
Each of these two series ( nRF52 and nRF51) has three chips options.
The nRF5x SoCs are flash memory based. It means that the firmware will be residing on a flash memory inside the SOC itself . When compared with ROM or OTP SoCs, flash based SoCs are easy to work with and more fixable to update/patch the firmware later on.
The RAM memory is also hosted in the chip die. nRF52 and nRF51 chips differ in the available hardware peripherals and available RAM and Flash as shown in the tables below :Available Flash and RAM in nRF51 and nRF52 series
This series of system on chip offers a very powerful microcontroller with an amazing multi-protocol 2.4GHz radio transceiver, combined with a rich set of system, analog , digital peripherals and RAM/flash memories all in just one 3.2 x3.0 mm CSP chip. The nRF52 offers more processing power than its predecessor the nRF51 . The ARM Cortex-M4 on the nRF52 is more capable than the ARM Cortex-M0 , especially when it comes to floating point and DSP operations. More flash and RAM memory were added in the new series . The clock rate has also been increased substantially (See comparison here )and power consumption has been further reduced by adopting different advanced strategies and silicon technologies. The figures below show a brief and detailed view of the nRF52 architecture.
Available system peripherals and Digital and Analog I/O (in order as they appear in the detailed block diagram) :
- 31x GPIO (Except the nRF52840 which has 48XGPIO ).
- Hardware Random Number Generator (RNG).
- 3×24-bit Real Time Clock (RTC).
- 5×32-bit timer.
- Built-in Temp sensor.
- 128-bit AES ECB/CCM/AAR co-processor( AES Hardware Encryption Accelerator).
- 2x Master SPI.
- 2x TWI/M/S (2-wire(I2C compatible ) ).
- 2xSlave SPI.
- Pulse Density Modulation (PDM)
- Inter-IC Sound (I2S)
- 4x Pulse Width Modulation (PWM)
- Quadrature Demodulator.
- Successive Approximation Analog to Digital Convertor(SAADC).
- 2x Comparators ( COMP and LPCOMP)
- GPIOTE( GPIO Task and Events ).
- Near Field Communication Tag (NFCT)
- 16-channel Programmable Peripheral Interconnect (PPI).
- Watchdog timer.
There are three chips options in the nRF52 series :
The complete comparison between these chips is shown in the figure below(Click on the picture to enlarge):