Renesas RYZ012 User Manual

Renesas RYZ012 User Manual

Multi-standard wireless communication module for bluetooth 5 low energy and 802.15.4
Table of Contents

Advertisement

Quick Links

RYZ012
Multi-Standard Wireless Communication Module
for Bluetooth 5 Low Energy and 802.15.4
Description
The RYZ012 is a highly integrated multi-standard wireless
communication module that provides a qualified solution for
Bluetooth™ 5 Low Energy (LE) and several IEEE 802.15.4 based
communication standards. The integrated RISC processor runs the
network stack and can execute the user application.
The integrated Bluetooth 5 Low Energy chipset, a multi-standard
wireless SoC solution with internal Flash and audio support,
combines the features and functions needed for 2.4GHz IoT
standards into a single SoC. The RYZ012 supports concurrent
multi-standards, and for some use cases, the RYZ012 can
concurrently run two standards. For example, stacks such as
Bluetooth Low Energy and 802.15.4 can run concurrently with one
application state but with dual radio communication channels that
are used to interact with different devices. Working in this mode,
the end product can maintain active connections to smart phones
or other Bluetooth Low Energy devices while controlling and
communicating with 802.15.4 or other 2.4GHz devices. In this case,
the end product complies with the Bluetooth standard, supports
Bluetooth Low Energy specification up to Bluetooth 5 and allows
simple connectivity with Bluetooth Low Energy mobile phones,
tablets and laptops. The Bluetooth Low Energy stack supports
Bluetooth Low Energy slave and master mode operation, including
broadcast, encryption, connection updates, and channel map
updates. Combining Bluetooth Low Energy with IEEE 802.15.4
based standards such as ZigBee or Thread, creates an
interoperable solution for use within the home.
The RYZ012 integrates hardware acceleration to support the
complicated security operations required by HomeKit, Thread, and
other standards without the requirement for an external DSP,
resulting in a significant reduction in the product eBOM. The
RYZ012 also supports single or dual analog microphones or a
digital microphone along with stereo audio output with enhanced
voice performance for voice search and similar applications.
Including a full range of on-chip peripherals, the RYZ012 interfaces
with external components such as LEDs, sensors, touch controllers,
keyboards, external processors, and motors.
Typical Applications
Portable devices and equipment
Smart lighting, smart home devices
Remote equipment
Building automation
R15UH0002EU0103 Rev.1.03
Apr.21.21
Smart grid
Intelligent logistics, transportation, and tracking
Industrial control
Health care
Supported Standards
Bluetooth 5 Low Energy
ZigBee
6LoWPAN / Thread
RF4CE
Concurrent operation
Bluetooth™ is a trademark of the Bluetooth SIG, Inc.
The use of Bluetooth™ in this product is under license from the
Bluetooth SIG, Inc.
Block Diagram
User's Manual
Page 1 of 206

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RYZ012 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Renesas RYZ012

  • Page 1 DSP, resulting in a significant reduction in the product eBOM. The RYZ012 also supports single or dual analog microphones or a digital microphone along with stereo audio output with enhanced voice performance for voice search and similar applications.
  • Page 2 RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 General Features RF Features Bluetooth Low Energy/802.15.4/2.4GHz RF transceiver  4-byte chip UID (unique ID)  embedded, working in worldwide 2.4GHz ISM band Embedded 32-bit proprietary microcontroller ...
  • Page 3  Based on IEEE 802.15.4 Standard, certified RF4CE platform,  positioning support with ZRC1.1/ZRC2.0 and MSO profile support Renesas extended profile with audio support for voice  Various transmission options including broadcast  command-based searches Provides a secured key generation mechanism ...
  • Page 4: Table Of Contents

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Contents Contents ..........................................4 List of Figures ........................................14 List of Tables ........................................15 Pin Descriptions ......................................17 MCU Description ......................................18 2.1 Register Description ..................................18 2.2 Memory ......................................19 2.2.1 Flash Memory ..................................19 2.2.2...
  • Page 5 RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 3.5.8 SCTL:WAKEUPEN - Wakeup Enable Digital Module Control ....................35 3.5.9 SCTL:LPRC - Low-Power and Reset Control ........................36 3.5.10 SCTL:HSC2 - HS1 Clock Configuration ..........................36 3.5.11 SCTL:WDSTATE - Watchdog Status ..........................37 3.5.12...
  • Page 6 RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.3.10 GPIOA:T0G2R - GPIOA Extra Peripheral Mapping 0 ......................56 5.3.11 GPIOA:T1G2R - GPIOA Extra Peripheral Mapping 1 ......................57 5.3.12 GPIOA:T2 - GPIOA Extra Peripheral Mapping 2 ........................57 5.4 GPIOA Analog Register Reference ..............................58 5.4.1...
  • Page 7 RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.8.2 GPIOC:WKUPPOL - GPIOC Wakeup Polarity Control .......................70 5.8.3 GPIOC:WKUPEN - GPIOC Wakeup Enable ........................70 5.9 GPIOD Register Reference ................................71 5.9.1 GPIOD:ID - GPIOD Input Data ............................71 5.9.2 GPIOD:IEN - GPIOD Input Enable .............................71...
  • Page 8 RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 6.5.11 I2C:HSTATE - I2C Host Status ............................84 SPI Interface .......................................85 7.1 SPI Master Mode ....................................85 7.2 SPI Slave Mode ....................................86 7.3 Register Reference ....................................86 7.3.1 SPI:DATA - SPI Data ................................86 7.3.2...
  • Page 9 RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 10.5.2 SYSTIM:CTRL - System Timer Control ..........................103 11. PWM .........................................104 11.1 PWM Modes ....................................104 11.1.1 Continuous Mode ................................104 11.1.2 Counting Mode .................................105 11.1.3 IR Mode ....................................105 11.2 Register Reference ..................................106 11.2.1...
  • Page 10 RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 11.2.33 PWM:FIFO_DAT_ENTRY - FIFO Data Entry ........................119 11.2.34 PWM:FIFO_NUM_LVL - FIFO Interrupt Trigger Entry ......................119 11.2.35 PWM:FIFO_SR - PWM FIFO Status ..........................119 11.2.36 PWM:FIFO_CLR - PWM FIFO Clear ..........................120 12.
  • Page 11 RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.23 AUDIO_IN:DFIFO1_RPTR - Read FIFO1 PTR ........................133 12.3.24 AUDIO_IN:DFIFO1_WPTR - Write FIFO1 PTR .......................133 12.3.25 AUDIO_IN:DFIFO2_RPTR - Read FIFO2 ........................133 12.3.26 AUDIO_IN:DFIFO2_WPTR - Write FIFO2 PTR .......................134 12.3.27 AUDIO_IN:DFIFO0_NUM - Number FIFO0........................134 12.3.28 AUDIO_IN:DFIFO1_NUM - Number FIFO1........................134...
  • Page 12 RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.62 AUDIO_IN:PGA_VALUE_L - PGA Left Channel Value ....................146 12.3.63 AUDIO_IN:PGA_FIX_VALUE - PGA Fixed Value ......................146 12.3.64 AUDIO_IN:PGA_R_L - Change PGA Channel Control ....................146 12.3.65 AUDIO_IN:PGA_MAN_TARGET_R - PGA Right Channel Manual Target ..............147 12.3.66 AUDIO_IN:PGA_VALUE_R - PGA Right Channel Value ....................147...
  • Page 13 RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 14.1.3 ADC Capture State ................................163 14.1.4 Use Cases ..................................163 14.2 Analog Register Reference ................................165 14.2.1 SAR_ADC:VREF_CTRL - SAR Reference Voltage Configuration ...................165 14.2.2 SAR_ADC:CHM_INPUT - SAR Input Misc Channel Configuration ..................166 14.2.3...
  • Page 14: List Of Figures

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 19. Bluetooth Low Energy/802.15.4/2.4GHz RF Transceiver .........................187 19.1 Block Diagram ....................................187 19.2 Baseband ......................................187 19.2.1 Packet Format ..................................188 19.2.2 RSSI and Frequency Offset ..............................188 20. Electrical Characteristics ..................................189 20.1 Absolute Maximum Ratings ................................189...
  • Page 15: List Of Tables

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Figure 21. Audio Input Path ....................................121 Figure 22. Audio Input Processing ..................................122 Figure 23. Audio Output Path ....................................147 Figure 24. Linear Interpolation ...................................148 Figure 25. Delay Interpolation ...................................148 Figure 26.
  • Page 16 RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Table 21. Absolute Maximum Ratings ................................189 Table 22. Recommended Operating Conditions..............................189 Table 23. Electrical Characteristics ...................................190 Table 24. AC Characteristics (V = 3.3V, T = 25°C) ............................190 Table 25. Bluetooth Low Energy, 1 Mbps Mode ..............................191 Table 26.
  • Page 17: Pin Descriptions

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Pin Descriptions Figure 1. Pin Assignments – Top View NRST Table 1. Pin Descriptions Driving Strength Pin No. Name Type Notes High Digital I/O 4 mA 2 mA...
  • Page 18: Mcu Description

    MCU Description The RYZ012 integrates a powerful 32-bit MCU. Due to a 16-bit instruction set, the binary code size is small, and due to a single cycle hardware multiplier, the data processing is fast. All data processing is done from internal registers.
  • Page 19: Memory

    Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Memory The RYZ012 has an addressable memory space of 16 MByte. Flash memory, SRAM, and peripheral registers are mapped to this space as shown in Table 3. Table 3. Physical Memory Map...
  • Page 20: Sram Memory

    Bit56–63 2.2.1.2 Readout Protection The RYZ012 supports multiple firmware encryption methods to achieve anti-cloning protection including: UID-based authentication and Bootloader-based firmware encryption. 2.2.1.2.1 UID-based Authentication Code Generation During firmware burning (such as through specific burning jig), the user can encrypt the UID read from the chip flash through AES, generating a unique cipher text that is written into the E-Fuse section.
  • Page 21: Peripheral Registers

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 2.2.3 Peripheral Registers In the digital domain, peripheral control registers are memory mapped, starting from address 0x800000. Similar to the SRAM, they are accessed by reading and writing the corresponding address. For convenience the SDK defines usable mnemonics.
  • Page 22: Register Reference

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Register Reference 2.3.1 ARA:ADDR - Analog Register Address Address: 0x00b8 Reset: 0x00 ARA:ADDR ADDR rw, 0 ADDR Address of the analog register to be accessed 2.3.2 ARA:DATA - Analog Register Data...
  • Page 23: System Control

    Power-on-Reset - On power-on the whole chip is reset; consequently, all registers are set to their default values.  Watchdog Reset - The RYZ012 includes a programmable watchdog timer to monitor software execution. If the watchdog is triggered, all ...
  • Page 24: Figure 4. Power-Up Sequence

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Figure 4. Power-Up Sequence R15UH0002EU0103 Rev.1.03 Page 24 of 206 Apr.21.21...
  • Page 25: Figure 5. Power Down Sequence

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Figure 5. Power Down Sequence Table 6. Characteristics of the Power Control Logic Symbol Parameter Minimum Typical Maximum Unit VDD voltage when VUVLO turns to high level 1.62 VDD voltage when VUVLO turns to low level 1.55...
  • Page 26: Power Management

    Power Management The RYZ012 provides six different power modes. Depending on the active power mode, different functional units are active or powered down. The Power Management module is always active and allows for flexible power control of individual peripheral units or the whole chip. Table 7 outlines the features and properties of the different power modes.
  • Page 27: Standby Mode

    GPIOx:WKUPPOL. GPIO wakeup provides an optional glitch filter, controlled through bit SCTL:WKUPEN:IOFILT. Figure 6. Wakeup Logic Wakeup from Shutdown Mode is only supported through NRST. 3.3.8 Retention Registers The RYZ012 provides eight registers SCTL:RD0 SCTL:RD7 which contents that are retained during all low-power modes except Shutdown Mode.
  • Page 28: Clock

    Clock The MCU of the RYZ012 provides low and high-speed clocks with versatile configuration options to optimize the power consumption and system performance. The CPU clock and most of the peripheral clocks are derived from a 24 MHz high speed clock. The low speed clock is used to drive the digital microphone peripheral and the low power timer (LP_TIMER), which can be kept running in suspend and deep sleep modes.
  • Page 29: Peripheral Clocks

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 3.4.2 Peripheral Clocks Register SCTL:PCEN is used to enable or disable clock for individual peripherals. It is strongly recommended to disable the clocks for all unused modules to keep the current consumption at a minimum.
  • Page 30 RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 RISC1 RISC reset 0: Module operating normally 1: Module is held in reset state MCIC MCIC reset 0: Module operating normally 1: Module is held in reset state...
  • Page 31: Sctl:pcen - Peripheral Clock Enable 1

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Baseband module 0: Module operating normally 1: Module is held in reset state SWIRE SWIRE reset 0: Module operating normally 1: Module is held in reset state QDEC...
  • Page 32 RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 RISCEN MC clock enable control 0: Disables module clock 1: Enables module clock DMAEN DMA clock enable control 0: Disables module clock 1: Enables module clock DFIFOEN DFIFO clock enable control...
  • Page 33: Sctl:hsc1 - System Clock Configuration

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 UARTEN UART (RS232) clock enable control 0: Disables module clock 1: Enables module clock I2CEN I2C clock enable control 0: Disables module clock 1: Enables module clock SPIEN...
  • Page 34: Sctl:i2Scc - I2S Clock Control

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 3.5.4 SCTL:I2SCC - I2S Clock Control Address: 0x0067 Reset: 0x00 SCTL:I2SCC STEP rw, 0 rw, 0 Enable I2S clock 0: Disables I2S clock 1: Enables I2S clock STEP I2S step 3.5.5 SCTL:I2S_MOD - I2S Clock Modifier...
  • Page 35: Sctl:dmic_Mod - Dcmi Clock Modifier

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 3.5.7 SCTL:DMIC_MOD - DCMI Clock Modifier Address: 0x006d Reset: 0x02 SCTL:DMIC_MOD DMIC_MOD rw, 2 DMIC_MOD = 48MHz * DMICC:STEP / DMIC_MOD DMIC DMIC_MOD should be larger than or equal to 2 * DMICC:STEP 3.5.8 SCTL:WAKEUPEN - Wakeup Enable Digital Module Control...
  • Page 36: Sctl:lprc - Low-Power And Reset Control

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 3.5.9 SCTL:LPRC - Low-Power and Reset Control Address: 0x006f Reset: 0x00 SCTL:LPRC SUSPTRIG RSVD SRST RSVD SUSP w, 0 rw, 0 rw, 0 rw, 0 rw, 0 SUSPTRIG...
  • Page 37: Sctl:wdstate - Watchdog Status

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 3.5.11 SCTL:WDSTATE - Watchdog Status Address: 0x0072 Reset: 0x00 SCTL:WDSTATE RSVD STATE rw, 0 rw, 0 STATE Watch dog status indication 0: No Watchdog indication detected 1: Watchdog indication detected Write 1 to clear.
  • Page 38: Analog Register Reference

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Analog Register Reference 3.6.1 SCTL:PDC0 - Power Down Control Address: 0x0005 Reset: 0x02 SCTL:PDC0 BBPLDOPD BUSLDOPD DCDCPD PLPD X24MPD RC24MPD X32KPD RC32KPD rw, 0 rw, 0 rw, 0...
  • Page 39: Sctl:pdc1 - Power Down Control

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 3.6.2 SCTL:PDC1 - Power Down Control Address: 0x0007 Reset: 0x1d SCTL:PDC1 RSVD TSPD LPCPD RDPD DLDOPD SPDLDO rw, 0 rw, 1 rw, 1 rw, 1 rw, 0 rw, 1...
  • Page 40: Sctl:wkupen - Wakeup Enable Module Control

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 3.6.4 SCTL:WKUPEN - Wakeup Enable Module Control Address: 0x0026 Reset: 0x00 SCTL:WKUPEN LPCEN TIM32EN RSVD GPIOEN IOFILT RSVD rw, 0 rw, 0 rw, 0 rw, 0 rw, 0...
  • Page 41: Sctl:rd2 - Retention Data 2

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 3.6.7 SCTL:RD2 - Retention Data 2 Address: 0x0037 Reset: 0x00 SCTL:RD2 rw, 0 Application data buffer 3.6.8 SCTL:RD3 - Retention Data 3 Address: 0x0038 Reset: 0x00 SCTL:RD3 rw, 0 Application data buffer 3.6.9 SCTL:RD4 - Retention Data 4...
  • Page 42: Sctl:rd6 - Retention Data 6

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 3.6.11 SCTL:RD6 - Retention Data 6 Address: 0x003b Reset: 0x00 SCTL:RD6 rw, 0 Application data buffer Note: This field is only reset by power on reset. Data is retained after Watchdog or System Reset.
  • Page 43: Sctl:apctrl - Analog Power Control

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 CAL_32K 32kHz clock calibration status 0: 32kHz clock is not calibrated 1: 32kHz clock is calibrated IO_WKUP Set to 1 if last wakeup event was triggered from GPIO Write 1 to clear.
  • Page 44: Interrupt System

    On completion of the ISR, normal code execution is continued. The RYZ012 provides 16 level triggered interrupts and 8 edge triggered interrupts. Table 8 lists the available interrupt sources. Each of the interrupt lines can be enabled or disabled individually by setting the corresponding bit in register IRQ:MASK. Sometimes it is required to disable interrupt processing completely for the processing of critical sections.
  • Page 45: Register Reference

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Register Reference 4.1.1 IRQ:MASK - Interrupt Mask Configuration Address: 0x0640 Reset: 0x000000 IRQ:MASK[2] RSVD G2R1 G2R0 SYSTIM LSTIM GPIO RSVD rw, 0 rw, 0 rw, 0 rw, 0...
  • Page 46: Irq:gien - Global Interrupt Enable

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 UART Configure UART interrupt enable mask bit 0: Deactivate UART level-triggered interrupt 1: Activate UART level-triggered interrupt DFIFO Configure DFIFO interrupt enable mask bit 0: Deactivate DFIFO level-triggered interrupt...
  • Page 47: Irq:prio - Interrupt Priority Configuration

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 4.1.3 IRQ:PRIO - Interrupt Priority Configuration Address: 0x0644 Reset: 0x000000 IRQ:PRIO[2] RSVD G2R1 G2R0 SYSTIM LSTIM GPIO RSVD rw, 0 rw, 0 rw, 0 rw, 0 rw, 0...
  • Page 48: Irq:ips - Interrupt Pending Status

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 DFIFO Configure DFIFO interrupt priority configuration bit 0: Set LOW priority interrupt to specified module 1: Set HIGH priority interrupt to specified module Configure DMA interrupt priority configuration bit...
  • Page 49 RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 LSTIM Read PMTM interrupt trigger state 0: There is NO triggered interrupt on specified module 1: There is A triggered interrupt on the specified module GPIO Read GPIO interrupt trigger state...
  • Page 50: General Purpose Io

    General Purpose IO The 17 GPIO pins of the RYZ012 module are configurable as general-purpose I/O pins, which are freely controllable from the application or act as I/O pins for different peripheral units. A schematic of a GPIO is shown in the figure below.
  • Page 51: Gpio To Timer And Interrupt Mapping

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Register Description Link Name Analog Registers Pull resistor control. Pins configured in input mode (IE=0b1) can select from one of the following options: A, B, C, 2b'00 - No resistor connected 2b'01 - Weak pull-up resistor connected (typical 1MΩ)
  • Page 52: Table 10 Peripheral Function Mapping

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Table 10 Peripheral Function Mapping Port Pin-Nr. UART 7816 DMIC BCLK PWM0 1(N) 2(N) PWM1 1(N) 0(N) PWM2 2(N) PWM3 PWM4 1(N) PWM5 0:P0 0:N0 0:P1 0:N1 Analog SWIRE R15UH0002EU0103 Rev.1.03...
  • Page 53: Gpioa Register Reference

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 GPIOA Register Reference 5.3.1 GPIOA:ID - GPIOA Input Data Address: 0x0580 Reset: 0x00 GPIOA:ID r, 0 r, 0 r, 0 r, 0 r, 0 r, 0 r, 0...
  • Page 54: Gpioa:odis - Gpioa Output Disable

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.3.3 GPIOA:ODIS - GPIOA Output Disable Address: 0x0582 Reset: 0x00 GPIOA:ODIS ODIS7 ODIS6 ODIS5 ODIS4 ODIS3 ODIS2 ODIS1 ODIS0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0...
  • Page 55: Gpioa:ds - Gpioa Driving Strength

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.3.6 GPIOA:DS - GPIOA Driving Strength Address: 0x0585 Reset: 0xFF GPIOA:DS rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 0, 1, 2, 3, 4,...
  • Page 56: Gpioa:pfs - Peripheral Function Selection Register

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.3.9 GPIOA:PFS - Peripheral Function Selection Register Address: 0x05a8 Reset: 0x0000 GPIOA:PFS[1] RSVD rw, 0 rw, 0 GPIOA:PFS[0] RSVD rw, 0 rw, 0 rw, 0 15:14 Peripheral select if pin is configured in peripheral mode.
  • Page 57: Gpioa:t1G2R - Gpioa Extra Peripheral Mapping 1

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.3.11 GPIOA:T1G2R - GPIOA Extra Peripheral Mapping 1 Address: 0x05c0 Reset: 0x00 GPIOA:T1G2R T1G2R7 T1G2R6 T1G2R5 T1G2R4 T1G2R3 T1G2R2 T1G2R1 T1G2R0 rw, 0 rw, 0 rw, 0 rw, 0...
  • Page 58: Gpioa Analog Register Reference

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 GPIOA Analog Register Reference 5.4.1 GPIOA:PRC - Port A Pull Register Control Low Address: 0x000e Reset: 0x00 GPIOA:PRC[1] PSEL7 PSEL6 PSEL5 PSEL4 rw, 0 rw, 0 rw, 0...
  • Page 59: Gpiob Register Reference

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 GPIOB Register Reference 5.5.1 GPIOB:ID - GPIOB Input Data Address: 0x0588 Reset: 0x00 GPIOB:ID r, 0 r, 0 r, 0 r, 0 r, 0 r, 0 r, 0...
  • Page 60: Gpiob:odis - Gpiob Output Disable

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.5.3 GPIOB:ODIS - GPIOB Output Disable Address: 0x058a Reset: 0x00 GPIOB:ODIS ODIS7 ODIS6 ODIS5 ODIS4 ODIS3 ODIS2 ODIS1 ODIS0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0...
  • Page 61: Gpiob:ds - Gpiob Driving Strength

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.5.6 GPIOB:DS - GPIOB Driving strength Address: 0x058d Reset: 0xFF GPIOB:DS rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 0, 1, 2, 3, 4,...
  • Page 62: Gpiob:pfs - Peripheral Function Selection Register

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.5.9 GPIOB:PFS - Peripheral Function Selection Register Address: 0x05aa Reset: 0x5000 GPIOB:PFS[1] rw, 1 rw, 1 rw, 0 rw, 0 GPIOB:PFS[0] RSVD RSVD rw, 0 rw, 0 rw, 0 15:14 Peripheral select if pin is configured in peripheral mode.
  • Page 63: Gpiob:t0G2R - Gpiob Extra Peripheral Mapping 0

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.5.10 GPIOB:T0G2R - GPIOB Extra Peripheral Mapping 0 Address: 0x05b9 Reset: 0x00 GPIOB:T0G2R T0G2R7 T0G2R6 T0G2R5 T0G2R4 T0G2R3 T0G2R2 T0G2R1 T0G2R0 rw, 0 rw, 0 rw, 0 rw, 0...
  • Page 64: Gpiob Analog Register Reference

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 GPIOB Analog Register Reference 5.6.1 GPIOB:PRC - Port B Pull Resistor Control Low Address: 0x0010 Reset: 0x00 GPIOB:PRC[1] PSEL7 PSEL6 PSEL5 PSEL4 rw, 0 rw, 0 rw, 0...
  • Page 65: Gpioc Register Reference

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 GPIOC Register Reference 5.7.1 GPIOC:ID - GPIOC Input Data Address: 0x0590 Reset: 0x00 GPIOC:ID r, 0 r, 0 r, 0 r, 0 r, 0 r, 0 r, 0...
  • Page 66: Gpioc:odis - Gpioc Output Disable

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.7.3 GPIOC:ODIS - GPIOC Output Disable Address: 0x0592 Reset: 0x00 GPIOC:ODIS ODIS7 ODIS6 ODIS5 ODIS4 ODIS3 ODIS2 ODIS1 ODIS0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0...
  • Page 67: Gpioc:ds - Gpioc Driving Strength

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.7.6 GPIOC:DS - GPIOC Driving Strength Address: 0x0595 Reset: 0xFF GPIOC:DS rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 0, 1, 2, 3, 4,...
  • Page 68: Gpioc:pfs - Peripheral Function Selection Register

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.7.9 GPIOC:PFS - Peripheral Function Selection Register Address: 0x05ac Reset: 0x0050 GPIOC:PFS[1] RSVD rw, 0 rw, 0 GPIOC:PFS[0] rw, 1 rw, 1 rw, 0 rw, 0 Peripheral select if pin is configured in peripheral mode.
  • Page 69: Gpioc:t0G2R - Gpioc Extra Peripheral Mapping 0

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.7.10 GPIOC:T0G2R - GPIOC Extra Peripheral Mapping 0 Address: 0x05ba Reset: 0x00 GPIOC:T0G2R T0G2R7 T0G2R6 T0G2R5 T0G2R4 T0G2R3 T0G2R2 T0G2R1 T0G2R0 rw, 0 rw, 0 rw, 0 rw, 0...
  • Page 70: Gpioc Analog Register Reference

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 GPIOC Analog Register Reference 5.8.1 GPIOC:PRC - Port C Pull Resistor Control Low Address: 0x0012 Reset: 0x00 GPIOC:PRC[1] PSEL7 PSEL6 PSEL5 PSEL4 rw, 0 rw, 0 rw, 0...
  • Page 71: Gpiod Register Reference

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 GPIOD Register Reference 5.9.1 GPIOD:ID - GPIOD Input Data Address: 0x0598 Reset: 0x00 GPIOD:ID r, 0 r, 0 r, 0 r, 0 r, 0 r, 0 r, 0...
  • Page 72: Gpiod:odis - Gpiod Output Disable

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.9.3 GPIOD:ODIS - GPIOD Output Disable Address: 0x059a Reset: 0x00 GPIOD:ODIS ODIS7 ODIS6 ODIS5 ODIS4 ODIS3 ODIS2 ODIS1 ODIS0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0...
  • Page 73: Gpiod:ds - Gpiod Driving Strength

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.9.6 GPIOD:DS - GPIOD Driving strength Address: 0x059d Reset: 0xFF GPIOD:DS rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 0, 1, 2, 3, 4,...
  • Page 74: Gpiod:pfs - Peripheral Function Selection Register

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.9.9 GPIOD:PFS - Peripheral Function Selection Register Address: 0x05ae Reset: 0x0000 GPIOD:PFS[1] RSVD rw, 0 rw, 0 rw, 0 GPIOD:PFS[0] RSVD rw, 0 rw, 0 rw, 0 15:14 Peripheral select if pin is configured in peripheral mode.
  • Page 75: Gpiod:t1G2R - Gpiod Extra Peripheral Mapping 1

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.9.11 GPIOD:T1G2R - GPIOD Extra Peripheral Mapping 1 Address: 0x05c3 Reset: 0x00 GPIOD:T1G2R T1G2R7 T1G2R6 T1G2R5 T1G2R4 T1G2R3 T1G2R2 T1G2R1 T1G2R0 rw, 0 rw, 0 rw, 0 rw, 0...
  • Page 76: Gpiod Analog Register Reference

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.10 GPIOD Analog Register Reference 5.10.1 GPIOD:PRC - Port D Pull Register Control Low Address: 0x0014 Reset: 0x00 GPIOD:PRC[1] PSEL7 PSEL6 PSEL5 PSEL4 rw, 0 rw, 0 rw, 0...
  • Page 77: I2C Interface

    I2C Slave Mode By default, the I2C unit of the RYZ012 is working in Slave Mode. The I2C slave address of the device is configured in register I2C:SADR. In I2C Slave Mode, either Direct Memory Access (DMA) Mode or Mapping Mode can be used. The operating mode is selected by bit I2C:CTRL:MMEN.
  • Page 78: Mapping Mode

    Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 In DMA Mode, the master must first write the address to be read or written into the RYZ012. The address is three bytes long, by which the MSB is transmitted first. For a write operation, the data to be written can follow the address immediately. For read access, another start byte must be transmitted with read bit set.
  • Page 79: Master Mode

    Notes on Concurrent I2C and SPI Usage I2C hardware and SPI hardware modules on the RYZ012 share parts of the hardware; as a result, when both hardware interfaces are in use, I2C and SPI must not be operated in slave mode at the same time.
  • Page 80: Register Reference

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Register Reference 6.5.1 I2C:CPRE - I2C Clock Prescaler Configuration Address: 0x0000 Reset: 0x1f I2C:CPRE CPRE rw, 31 CPRE I2C clock prescaler value / ( 4 * CPRE ) 6.5.2 I2C:SADR - I2C Slave Address Configuration...
  • Page 81: I2C:ctrl - I2C General Control

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Master busy 0: I2C is idle 1: I2C is busy 6.5.4 I2C:CTRL - I2C General Control Address: 0x0003 Reset: 0x01 I2C:CTRL RSVD CSTREN MMEN MSTREN AAINC rw, 0...
  • Page 82: I2C:w2D - I2C Master Mode Write Buffer

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 6.5.6 I2C:W2D - I2C Master Mode Write Buffer Address: 0x0005 Reset: 0xf1 I2C:W2D rw, 241 Master mode write data buffer 6.5.7 I2C:W3RD - I2C Master Mode Write/Read Buffer...
  • Page 83: I2C:lhadr - I2C Last Hold Address

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 W3RDEN Receive data or Send data from W3RD 0: Do not use W3RD 1: Write Mode: Send Data from W3RD ReadMode: Read data into register W3RD W2DEN Send data from register W2D...
  • Page 84: I2C:hstate - I2C Host Status

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 6.5.11 I2C:HSTATE - I2C Host Status Address: 0x00e4 Reset: 0x00 I2C:HSTATE RSVD rw, 0 rw, 0 rw, 0 I2C ready indication 0: The I2C host read operation is NOT complete 1: The I2C host read operation is complete Write 1 to clear.
  • Page 85: Spi Interface

    Figure 15. SPI Timing Diagram SPI Master Mode SPI for the RYZ012 supports both master mode and slave mode and acts as slave mode by default. To configure Master Mode, register SPI:CTRL must be set to the appropriate values. The bits...
  • Page 86: Spi Slave Mode

    AddrH, AddrM and AddrL. The address is offset by 0x800000 automatically by the SPI hardware. The command can be either 0x00 for Write or 0x80 for Read. The bytes following the command byte are used to send or receive data from the RYZ012 SRAM or register space. Bit SPI:CTRL:AAINC determines whether the address received from the master is incremented automatically or not.
  • Page 87: Spi:mode - Spi Mode Configuration

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 14:8 CPRE SPI clock prescaler / ( 2 * ( CPRE + 1 ) ) Busy status 0: SPI is ready for next operation 1: SPI has not completed transmission of 8 clock pulses...
  • Page 88 RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 CPOL SPI clock polarity 0: Clock line is low when idle 1: Clock line is high when idle R15UH0002EU0103 Rev.1.03 Page 88 of 206 Apr.21.21...
  • Page 89: Uart Interface

    TX. Data received through the pin RX is first written to the RX buffer; next the data is read by MCU or DMA. If the RX buffer of the RYZ012 UART is close to full, the RYZ012 sends a signal (configurable high or low level) through pin RTS to inform the other device that it should stop sending data.
  • Page 90: Register Reference

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Register Reference 8.1.1 UART:DATA - UART Data Buffer Address: 0x0090 Reset: 0x00000000 UART:DATA[3] DAT3 rw, 0 UART:DATA[2] DAT2 rw, 0 UART:DATA[1] DAT1 rw, 0 UART:DATA[0] DAT0 rw, 0...
  • Page 91: Uart:ctrl - Uart Control

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 8.1.3 UART:CTRL - UART Control Address: 0x0096 Reset: 0x00a50e0f UART:CTRL[3] TXTRIG RXTRIG rw, 0 rw, 0 UART:CTRL[2] RTSEN RTSMEN RTSMVAL RTSPAR RTSTRIG rw, 1 rw, 0 rw, 1...
  • Page 92 RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 13:12 STOP Stop bit configuration 00: 1 bit stop signal generation 01: 1.5 bit stop signal generation 1x: 2 bit stop signal generation PARMODE Parity mode configuration 0: Configure Even-Parity...
  • Page 93: Uart:rxtimeout - Uart Rx Timeout Configuration

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 8.1.4 UART:RXTIMEOUT - UART RX Timeout Configuration Address: 0x009a Reset: 0x01c0 UART:RXTIMEOUT[1] MASKERR MASKDONE 7816EN RSVD rw, 0 rw, 0 rw, 0 rw, 0 rw, 1 UART:RXTIMEOUT[0] rw, 192...
  • Page 94: Uart:status - Uart Status

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 8.1.6 UART:STATUS - UART Status Address: 0x009d Reset: 0x00 UART:STATUS RXERR TXERR RSVD RSVD r, 0 r, 0 r, 0 r, 0 r, 0 RXERR RX mask error indication...
  • Page 95: Uart:state - Uart State

    10.1 General-Purpose Timers Timer 0 - Timer 2 The RYZ012 supports three timers: Timer 0 – Timer 2. The three timers all support four modes: Mode 0 (System Clock Mode), Mode 1 (GPIO Trigger Mode), Mode 2 (GPIO Pulse Width Mode) and Mode 3 (Tick Mode), which are selectable through...
  • Page 96: Mode 1 (Gpio Trigger Mode)

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Timer 0 starts counting upward, and Tick value is increased by 1 on each positive edge of system clock until it reaches Timer0 Capture value. 10.1.2 Mode 1 (GPIO Trigger Mode) In Mode 1, GPIO is employed as clock source.
  • Page 97: Watchdog

    10.2 32K LTIMER The RYZ012 also supports a low frequency (32kHz) LTIMER in Suspend, Deep Sleep or Standby Mode. This timer can be used as one kind of wakeup source. R15UH0002EU0103 Rev.1.03 Page 97 of 206 Apr.21.21...
  • Page 98: Register Reference

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 10.3 Register Reference 10.3.1 TIMER:CTRL - Timer Control Address: 0x0620 Reset: 0x000000 TIMER:CTRL[2] WDEN WDCAPT rw1, 0 rw, 0 TIMER:CTRL[1] WDCAPT MODE2 rw, 0 rw, 0 TIMER:CTRL[0] MODE2...
  • Page 99: Timer:status - Timer Status

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 MODE0 Timer 0 mode selection 00: Using SCLK 01: Using GPIO 10: Count width of GPI 11: Timer ticks Timer 0 enable 0: Disables Timer 0 1: Enables Timer 0 10.3.2 TIMER:STATUS - Timer Status...
  • Page 100: Timer:capt0 - Timer 0 Capture

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 10.3.3 TIMER:CAPT0 - Timer 0 Capture Address: 0x0624 Reset: 0x00000000 TIMER:CAPT0[3] CAPT0 rw, 0 TIMER:CAPT0[2] CAPT0 rw, 0 TIMER:CAPT0[1] CAPT0 rw, 0 TIMER:CAPT0[0] CAPT0 rw, 0 31:0 CAPT0 Timer 0 Capture Value 10.3.4 TIMER:CAPT1 - Timer 1 Capture...
  • Page 101: Timer:capt2 - Timer 2 Capture

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 10.3.5 TIMER:CAPT2 - Timer 2 Capture Address: 0x062c Reset: 0x00000000 TIMER:CAPT2[3] CAPT2 rw, 0 TIMER:CAPT2[2] CAPT2 rw, 0 TIMER:CAPT2[1] CAPT2 rw, 0 TIMER:CAPT2[0] CAPT2 rw, 0 31:0 CAPT2 Timer 2 Capture Value 10.3.6 TIMER:TICK0 - Timer 0 Tick Counter...
  • Page 102: Timer:tick1 - Timer 1 Tick Counter

    31:0 TICK2 Timer 2 Counter Value 10.4 System Timer The RYZ012 also supports a System Timer. As introduced in System Timer Clock the clock frequency for System Timer is fixed as 16MHz irrespective of system clock. In suspend mode, both System Timer and Timer 0–Timer 2 stop counting, and 32K Timer starts counting. When the chip restores to active mode, Timer 0–Timer 2 continue counting from the number at which they stopped;...
  • Page 103: Register Reference

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 10.5 Register Reference 10.5.1 SYSTIM:CNT - System Timer Counter Value Address: 0x0740 Reset: 0x00 SYSTIM:CNT[3] rw, 0 SYSTIM:CNT[2] rw, 0 SYSTIM:CNT[1] rw, 0 SYSTIM:CNT[0] RSVD rw, 0 rw, 0 31:3 This is the System Timer counter value.
  • Page 104: Pwm

    Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 11. PWM The RYZ012 has six Pulse-Width-Modulation (PWM) channels. Each PWM has separate direct (non-inverted) outputs named PWMx. In addition, for channels 0-2 and 4, inverted outputs named PWMxN are available.
  • Page 105: Counting Mode

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 After completion of a signal frame, the corresponding PWM cycle done interrupt flag PWM:INT0:FRx is set. If the interrupt is enabled in register PWM:MASK0, an interrupt request is sent to the interrupt controller. The user needs to write 1b'1 to the flag bit to manually clear it.
  • Page 106: Register Reference

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 11.2 Register Reference 11.2.1 PWM:EN - PWM Enable Address: 0x0780 Reset: 0x0000 PWM:EN[1] RSVD CH0EN rw, 0 rw, 0 PWM:EN[0] RSVD CH5EN CH4EN CH3EN CH2EN CH1EN RSVD rw, 0...
  • Page 107: Pwm:clkdiv - Pwm Clock Divider Configuration

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 11.2.2 PWM:CLKDIV - PWM Clock Divider Configuration Address: 0x0782 Reset: 0x00 PWM:CLKDIV rw, 0 Select PWM Clock divider / ( CLKDIV + 1 ) 11.2.3 PWM:MODE - PWM Mode...
  • Page 108: Pwm:ipol - Pwmx_N Pin Output Inversion

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 11.2.5 PWM:IPOL - PWMx_N Pin Output Inversion Address: 0x0785 Reset: 0x00 PWM:IPOL RSVD IPOL5 IPOL4 IPOL3 IPOL2 IPOL1 IPOL0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0...
  • Page 109: Pwm:tmax0 - Pwm0 Maximum Cycle Time

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 11.2.8 PWM:TMAX0 - PWM0 Maximum Cycle Time Address: 0x0796 Reset: 0x0000 PWM:TMAX0[1] rw, 0 PWM:TMAX0[0] rw, 0 15:0 PWM0 cycle time value 11.2.9 PWM:TCMP1 - PWM1 Capture Mode Time...
  • Page 110: Pwm:tcmp2 - Pwm2 Capture Mode Time

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 11.2.11 PWM:TCMP2 - PWM2 Capture Mode Time Address: 0x079c Reset: 0x0000 PWM:TCMP2[1] rw, 0 PWM:TCMP2[0] rw, 0 15:0 PWM2 high time or low time value 11.2.12 PWM:TMAX2 - PWM2 Maximum Cycle Time...
  • Page 111: Pwm:tmax3 - Pwm3 Maximum Cycle Time

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 11.2.14 PWM:TMAX3 - PWM3 Maximum Cycle Time Address: 0x07a2 Reset: 0x0000 PWM:TMAX3[1] rw, 0 PWM:TMAX3[0] rw, 0 15:0 PWM3 cycle time value 11.2.15 PWM:TCMP4 - PWM4 Capture Mode Time...
  • Page 112: Pwm:tcmp5 - Pwm5 Capture Mode Time

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 11.2.17 PWM:TCMP5 - PWM5 Capture Mode Time Address: 0x07a8 Reset: 0x0000 PWM:TCMP5[1] rw, 0 PWM:TCMP5[0] rw, 0 15:0 PWM5 high time or low time value 11.2.18 PWM:TMAX5 - PWM5 Maximum Cycle Time...
  • Page 113: Pwm:mask0 - Pwm Interrupt Mask

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 11.2.20 PWM:MASK0 - PWM Interrupt Mask Address: 0x07b0 Reset: 0x00 PWM:MASK0 DMA0 CNT0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0...
  • Page 114: Pwm:int0 - Pwm Interrupt Status

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 11.2.21 PWM:INT0 - PWM Interrupt Status Address: 0x07b1 Reset: 0x00 PWM:INT0 DMA0 CNT0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 PWM5 cycle done interrupt indication (CNT5 –...
  • Page 115: Pwm:mask1 - Pwm Interrupt Mask

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 CNT0 PWM0 count interrupt indication (NCNT0 == PNUM0) 0: No interrupt detected 1: Interrupt detected Write 1 to clear. 11.2.22 PWM:MASK1 - PWM Interrupt Mask Address: 0x07b2 Reset:...
  • Page 116: Pwm:cnt0 - Pwm0 Counter Value

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 11.2.24 PWM:CNT0 - PWM0 Counter Value Address: 0x07b4 Reset: 0x0000 PWM:CNT0[1] r, 0 PWM:CNT0[0] r, 0 15:0 PWM0 counter value 11.2.25 PWM:CNT1 - PWM1 Counter Value Address: 0x07b6...
  • Page 117: Pwm:cnt3 - Pwm3 Counter Value

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 11.2.27 PWM:CNT3 - PWM3 Counter Value Address: 0x07ba Reset: 0x0000 PWM:CNT3[1] r, 0 PWM:CNT3[0] r, 0 15:0 PWM3 counter value 11.2.28 PWM:CNT4 - PWM4 Counter Value Address: 0x07bc...
  • Page 118: Pwm:ncnt0 - Pwm0 Pulse Count Value

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 11.2.30 PWM:NCNT0 - PWM0 Pulse Count Value Address: 0x07c0 Reset: 0x0000 PWM:NCNT0[1] r, 0 PWM:NCNT0[0] r, 0 15:0 PWM0 pulse count value 11.2.31 PWM:TCMP0_SHADOW - PWM0 Shadow Capture Mode Time...
  • Page 119: Pwm:fifo_Dat_Entry - Fifo Data Entry

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 11.2.33 PWM:FIFO_DAT_ENTRY - FIFO Data Entry Address: 0x07c8 Reset: 0x00 PWM:FIFO_DAT_ENTRY[3] rw, 0 PWM:FIFO_DAT_ENTRY[2] rw, 0 PWM:FIFO_DAT_ENTRY[1] rw, 0 PWM:FIFO_DAT_ENTRY[0] rw, 0 31:0 FIFO data entry byte 0 in IR FIFO mode 11.2.34...
  • Page 120: Pwm:fifo_Clr - Pwm Fifo Clear

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 FIFO data count Current number of bytes in the FIFO 11.2.36 PWM:FIFO_CLR - PWM FIFO Clear Address: 0x07ce Reset: 0x00 PWM:FIFO_CLR RSVD w1, 0 w1, 0 Clear data FIFO...
  • Page 121: Audio

    After implementing AD conversion for selected AMIC input signal, data of 3 analog channels (CH0–CH2) is generated. Data of CH0/CH1 is sent to the audio input processing module, while data of CH2 is directly written into the FIFO. 12.1.2 DMIC Input Stereo digital microphone (DMIC) interface is also supported in the RYZ012. AUDIO_IN:DFIFOAIN:AISEL should be set as 2b'11 to select DMIC as audio input.
  • Page 122: I2S Input

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.1.3 I2S Input AUDIO_IN:DFIFOAIN:AISEL should be set as 2b'01 to select I2S as audio input. Digital I2S audio interface supports Master mode only, 16-bit data width, and variable sampling rate: 8K/16K/22.05K/24K/32K/44.1K/48K. The sampling rate is determined by I2S clock.
  • Page 123: Decimation Filter

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.2.1 Decimation Filter AUDIO_IN:DFIFOAIN:DECFEN should be cleared to enable decimation filter. The decimation filter serves to down-sample the mono or stereo input data to required audio data playback rate (for example 48K or 32K).
  • Page 124 RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.2.5.2 Manual Regulation in Analog Mode For manual regulation, the PGA gain can be adjusted by either of the following two manual modes. Manual Mode 1 AUDIO_IN:PGA_FIX_VALUE:FGEN should be set as 1b'1 to select manual mode 1. In this mode, the PGA consists of two stages of amplifiers including pre-amplifier and post-amplifier and each stage has configurable gain.
  • Page 125: Audio Input Path Register Reference

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3 Audio Input Path Register Reference 12.3.1 AUDIO_IN:DFIFO0_BADR0 - DFIFO0 Base Address Address: 0x0b00 Reset: 0x00 AUDIO_IN:DFIFO0_BADR0 rw, 0 FIFO0 base address byte 0 12.3.2 AUDIO_IN:DFIFO0_BADR1 - DFIFO0 Base Address...
  • Page 126: Audio_In:dfifo1_Badr0 - Dfifo1 Base Address

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.5 AUDIO_IN:DFIFO1_BADR0 - DFIFO1 Base Address Address: 0x0b04 Reset: 0x00 AUDIO_IN:DFIFO1_BADR0 rw, 0 FIFO1 base address byte 0 12.3.6 AUDIO_IN:DFIFO1_BADR1 - DFIFO1 Base Address Address: 0x0b05 Reset: 0x48...
  • Page 127: Audio_In:dfifo2_Badr0 - Dfifo2 Base Address

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.9 AUDIO_IN:DFIFO2_BADR0 - DFIFO2 Base Address Address: 0x0b08 Reset: 0x00 AUDIO_IN:DFIFO2_BADR0 rw, 0 FIFO2 base address byte 0 12.3.10 AUDIO_IN:DFIFO2_BADR1 - DFIFO2 Base Address Address: 0x0b09 Reset: 0x3c...
  • Page 128: Audio_In:dfifo0_Llev - Dfifo0 Interrupt Level

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.13 AUDIO_IN:DFIFO0_LLEV – DFIFO0 Interrupt Level Address: 0x0b0c Reset: 0x20 AUDIO_IN:DFIFO0_LLEV rw, 32 FIFO0 interrupt trigger low level byte count 12.3.14 AUDIO_IN:DFIFO0_HLEV - DFIFO0 Interrupt Level Address: 0x0b0d...
  • Page 129: Audio_In:dfifomode - Dfifo Mode

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.17 AUDIO_IN:DFIFOMODE - DFIFO Mode Address: 0x0b10 Reset: 0xF9 AUDIO_IN:DFIFOMODE HIGH HIGH1 HIGH0 LOW0 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 rw, 0 rw, 0...
  • Page 130: Audio_In:dfifoain - Dfifo Analog Input Configuration

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.18 AUDIO_IN:DFIFOAIN - DFIFO Analog Input Configuration Address: 0x0b11 Reset: 0x21 AUDIO_IN:DFIFOAIN EEN1 EEN0 DECFEN AIMODE AISEL ESEL1 ESEL0 rw, 0 rw, 0 rw, 1 rw, 0 rw, 0...
  • Page 131: Audio_In:dfifodec - Dfifo Qdec Configuration

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.19 AUDIO_IN:DFIFODEC - DFIFO QDEC Configuration Address: 0x0b12 Reset: 0x5b AUDIO_IN:DFIFODEC SHIFT RATIO rw, 5 rw, 11 SHIFT CIC shift select (0 – 7) RATIO CIC down conversion ratio 12.3.20...
  • Page 132: Audio_In:dfifo0_Rptr - Read Fifo0 Ptr

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 HIGH1A FIFO1 high level interrupt indication 0: No interrupt detected 1: Interrupt detected Cleared by hardware when number of items in FIFO0 is below DFIFO1_HLEV. HIGH0A FIFO0 high level interrupt indication...
  • Page 133: Audio_In:dfifo1_Rptr - Read Fifo1 Ptr

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.23 AUDIO_IN:DFIFO1_RPTR - Read FIFO1 PTR Address: 0x0b18 Reset: 0x0000 AUDIO_IN:DFIFO1_RPTR[1] RSVD ro, 0 ro, 0 AUDIO_IN:DFIFO1_RPTR[0] ro, 0 11:0 Read FIFO1 PTR value 12.3.24 AUDIO_IN:DFIFO1_WPTR - Write FIFO1 PTR...
  • Page 134: Audio_In:dfifo2_Wptr - Write Fifo2 Ptr

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.26 AUDIO_IN:DFIFO2_WPTR - Write FIFO2 PTR Address: 0x0b1e Reset: 0x0000 AUDIO_IN:DFIFO2_WPTR[1] RSVD ro, 0 ro, 0 AUDIO_IN:DFIFO2_WPTR[0] ro, 0 11:0 Write FIFO2 PTR value 12.3.27 AUDIO_IN:DFIFO0_NUM - Number FIFO0...
  • Page 135: Audio_In:dfifo2_Num - Number Fifo2

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.29 AUDIO_IN:DFIFO2_NUM - Number FIFO2 Address: 0x0b28 Reset: 0x0000 AUDIO_IN:DFIFO2_NUM[1] ro, 0 AUDIO_IN:DFIFO2_NUM[0] ro, 0 15:0 Current number of bytes FIFO2 12.3.30 AUDIO_IN:DFIFO_MANUAL - DFIFO Manual Mode Address:...
  • Page 136: Audio_In:dfifo_Man_Dat1 - Dfifo Manual Mode Data

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.32 AUDIO_IN:DFIFO_MAN_DAT1 - DFIFO Manual Mode Data Address: 0x0b31 Reset: 0x00 AUDIO_IN:DFIFO_MAN_DA w, 0 FIFO manual mode data input (byte 1) 12.3.33 AUDIO_IN:DFIFO_MAN_DAT2 - DFIFO Manual Mode Data...
  • Page 137: Audio_In:audio_Cfg - Audio Configuration

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.35 AUDIO_IN:AUDIO_CFG - Audio Configuration Address: 0x0b35 Reset: 0x09 AUDIO_IN:AUDIO_CFG RSVD INSWAP ADCTRIM ADCSIGN ADCOPT VALIDEN rw, 0 rw, 0 rw, 1 rw, 0 rw, 0 rw, 1...
  • Page 138: Audio_In:adc_Bias - Adc Calibration Bias

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.37 AUDIO_IN:ADC_BIAS - ADC calibration bias Address: 0x0b37 Reset: 0x00 AUDIO_IN:ADC_BIAS BIAS rw, 0 BIAS ADC calibration bias 12.3.38 AUDIO_IN:ALC_FLT_CTRL - ALC Filter Control Address: 0x0b40 Reset: 0xfb...
  • Page 139: Audio_In:alc_Vol_L - Alc Left Channel Setting

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.39 AUDIO_IN:ALC_VOL_L - ALC Left Channel Setting Address: 0x0b41 Reset: 0x20 AUDIO_IN:ALC_VOL_L MODE GAIN rw, 0 rw, 32 MODE Mode selection 0: Select automatic mode 1: Select manual mode...
  • Page 140: Audio_In:alc_Vol_Thh - Pga High Volume Target

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.42 AUDIO_IN:ALC_VOL_THH - PGA High Volume Target Address: 0x0b44 Reset: 0x60 AUDIO_IN:ALC_VOL_THH RSVD FRAC rw, 0 rw, 48 rw, 0 Set integer part [dB] of high volume target in automatic mode...
  • Page 141: Audio_In:alc_Vol_L_R - Pga Left Channel Gain

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.45 AUDIO_IN:ALC_VOL_L_R - PGA Left Channel Gain Address: 0x0b4d Reset: 0x00 AUDIO_IN:ALC_VOL_L_R GAIN r, 0 GAIN Current digital gain/volume in automatic/manual mode of left channel 12.3.46 AUDIO_IN:ALC_VOL_R_R - PGA Right Channel Gain...
  • Page 142: Audio_In:alc_Cfg - Alc Configuration

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.49 AUDIO_IN:ALC_CFG - ALC Configuration Address: 0x0b54 Reset: 0x0a AUDIO_IN:ALC_CFG RSVD MAXEN TICKCLR IIRAEN IIRVEN ANSEL rw, 0 rw, 0 rw, 1 rw, 0 rw, 1 rw, 0...
  • Page 143: Audio_In:alc_Dat_Mask - Data Mask

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.51 AUDIO_IN:ALC_DAT_MASK - Data Mask Address: 0x0b56 Reset: 0x00 AUDIO_IN:ALC_DAT_MASK RSVD MASK rw, 0 rw, 0 MASK Configure the data to be masked for gain changes in automatic mode 12.3.52...
  • Page 144: Audio_In:alc_Dec_Max - Pga Maximum Gain Decrease

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.55 AUDIO_IN:ALC_DEC_MAX - PGA Maximum Gain Decrease Address: 0x0b5a Reset: 0x06 AUDIO_IN:ALC_DEC_MAX RSVD MASK rw, 0 rw, 6 MASK PGA maximum gain decrease of a peak tick cycle in automatic mode 12.3.56...
  • Page 145: Audio_In:cur_Pga_Gain_R - Pga Right Channel Current Gain

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.59 AUDIO_IN:CUR_PGA_GAIN_R - PGA Right Channel Current Gain Address: 0x0b5f Reset: 0x00 AUDIO_IN:CUR_PGA_GAIN GAIN r, 0 GAIN PGA right channel current gain in automatic analog mode 12.3.60 AUDIO_IN:PGA_MAN_SPD - PGA Gain Manual Increase Speed...
  • Page 146: Audio_In:pga_Value_L - Pga Left Channel Value

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.62 AUDIO_IN:PGA_VALUE_L - PGA Left Channel Value Address: 0x0b62 Reset: 0x00 AUDIO_IN:PGA_VALUE_L MUTE r, 0 r, 0 MUTE Left channel mute control 0: Channel is not muted 1: Channel is muted Current left channel value in manual mode 12.3.63...
  • Page 147: Audio_In:pga_Man_Target_R - Pga Right Channel Manual Target

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.65 AUDIO_IN:PGA_MAN_TARGET_R - PGA Right Channel Manual Target Address: 0x0b65 Reset: 0x00 AUDIO_IN:PGA_MAN_TAR TACC TGAIN GET_R r, 0 rw, 0 TACC Target right channel value indication 0: PGA target right channel value not reached in manual mode...
  • Page 148: Rate Matching

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.4.1 Rate Matching The rate matching block performs clock rate conversion and data synchronization between the input audio data and the SDM/I2S output.SRAM works in system clock domain with 24MHz/32MHz/48Mhz clocks and the SDM/I2S works between 4MHz and 8MHz.
  • Page 149: Register Configuration

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Figure 26. SDM Block Diagram 12.4.3 Register Configuration Bit 1 to 4 of AUDIO_OUT:CTRL should be set to 1b'1 to enable I2S recorder, ISO player, SDM player and I2S player, while AUDIO_OUT:CTRL:MODE is to select either mono or stereo audio output.
  • Page 150: Audio Output Path Register Reference

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.5 Audio Output Path Register Reference 12.5.1 AUDIO_OUT:CTRL - Audio Out Control Address: 0x0560 Reset: 0x04 AUDIO_OUT:CTRL HPFEN GRPEN I2S_EN I2S_REC ISO_PLY SDM_PLY I2S_PLY MODE rw, 0 rw, 0...
  • Page 151: Audio_Out:midgrp - Middle Of Grp

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.5.2 AUDIO_OUT:MIDGRP - Middle of GRP Address: 0x0561 Reset: 0x40 AUDIO_OUT:MIDGRP MGRP rw, 64 MGRP Middle of GRP 12.5.3 AUDIO_OUT:VOL_CTRL - Audio Out Volume Control Address: 0x0562 Reset:...
  • Page 152: Audio_Out:ascl_Tune - Tune Step

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 RSEN Right channel shaping enable 0: Right channel shaping disable 1: Right channel shaping enabled LSEN Left channel shaping enable 0: Left channel shaping disable 1: Left channel shaping enabled...
  • Page 153: Audio_Out:ascl_Step - Rate Matching Block Step

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.5.7 AUDIO_OUT:ASCL_STEP - Rate Matching Block Step Address: 0x0566 Reset: 0x00c4 AUDIO_OUT:ASCL_STEP[1] rw, 0 AUDIO_OUT:ASCL_STEP[0] rw, 196 15:0 High 16 bits of rate matching block step [19:4] 12.5.8 AUDIO_OUT:PN_CTRL - PN Generator Control...
  • Page 154: Audio_Out:const_Left - Constant Left Channel

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 20:16 BPN1R Right channel PN1 bits Range from 0 to 16 PN1REN Right channel PN1 enable 0: Disables PN generator 1 of right channel 1: Enables PN generator 1 of right channel...
  • Page 155: Audio_Out:const_Right - Constant Right Channel

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.5.10 AUDIO_OUT:CONST_RIGHT - Constant Right Channel Address: 0x056e Reset: 0x0000 AUDIO_OUT:CONST_RIGH CCHR T[1] rw, 0 AUDIO_OUT:CONST_RIGH CCHR T[0] rw, 0 15:0 CCHR DC input constant of right channel R15UH0002EU0103 Rev.1.03...
  • Page 156: Quadrature Decoder

    13. Quadrature Decoder The RYZ012 embeds one quadrature decoder (QDEC) that is designed mainly for applications such as wheel. The QDEC provides optional input debouncing to filter out jitter on the two phase inputs, and it generates smooth square waves for the two phase.
  • Page 157: Read Real-Time Counting Value

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Figure 28. Double Accuracy Mode 13.3 Read Real-time Counting Value The Hardware Counter value cannot be read directly through software, and the counting value in address QDEC:COUNT cannot be updated automatically.
  • Page 158: Timing

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Figure 30. Shuttle Mode 13.6 Timing Figure 31. Timing Sequence Table 13. Timing Constraints Time Interval Minimum Value ( n = QDEC:GC:FTIME (High-level pulse width) * clk_32kHz * 3...
  • Page 159: Register Reference

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 13.7 Register Reference 13.7.1 QDEC:COUNT - QDEC Pulse Edge Count Address: 0x00d0 Reset: 0x00 QDEC:COUNT COUNT r, 0 COUNT Pulse edge number counting value Register will be cleared by reading 13.7.2 QDEC:GC - QDEC General Configuration...
  • Page 160: Qdec:cha - Qdec Input Channel A

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 13.7.3 QDEC:CHA - QDEC Input Channel A Address: 0x00d2 Reset: 0x00 QDEC:CHA RSVD INSEL rw, 0 rw, 0 INSEL Input pin select for channel A 0: Select Port A Pin 2...
  • Page 161: Qdec:rst - Qdec Reset Control

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 13.7.5 QDEC:RST - QDEC Reset Control Address: 0x00d6 Reset: 0x00 QDEC:RST RSVD rw, 0 rw, 0 QDEC Reset 0: Is set automatically when QDEC was reset 1: If bit is set to 1 data can be loaded 13.7.6 QDEC:DOUBLE - QDEC Mode Configuration...
  • Page 162: Sar-Adc

    14. SAR-ADC The RYZ012 integrates one SAR ADC module, which can be used to sample analog input signals such as battery voltage, temperature sensor, mono or stereo audio signals. The SAR ADC is disabled by default. To power on the ADC, the analog register...
  • Page 163: Adc Capture State

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 ADC data is always 15-bit format no matter what the resolution is set. For example, 14 bits resolution indicates ADC data consists of 14-bit valid data and 1-bit sign extension bit. Set a sampling time that determines the speed to stabilize input signals with...
  • Page 164: Table 15. Register Setting For L/R/M Channel

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 14.1.4.1 Example with Detailed Settings This example shows the register setting details for 3-channel sampling of left, right and Misc channels. The ADC must be switched on by setting 1b'0 in register SCTL:APCTRL:ADC.
  • Page 165: Analog Register Reference

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 14.2 Analog Register Reference 14.2.1 SAR_ADC:VREF_CTRL - SAR Reference Voltage Configuration Address: 0x00e7 Reset: 0x00 SAR_ADC:VREF_CTRL RSVD VREFM VREFR VREFL rw, 0 rw, 0 rw, 0 rw, 0...
  • Page 166: Sar_Adc:chm_Input - Sar Input Misc Channel Configuration

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 14.2.2 SAR_ADC:CHM_INPUT - SAR Input Misc Channel Configuration Address: 0x00e8 Reset: 0x00 SAR_ADC:CHM_INPUT PCHSEL NCHSEL rw, 0 rw, 0 PCHSEL Positive input selection for Misc channel 0: Select no input channel...
  • Page 167 RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 NCHSEL Negative input selection for Misc channel 0: Select no input channel 1: Select Port B Pin 0 as input 2: Select Port B Pin 1 as input...
  • Page 168: Sar_Adc:chl_Input - Sar Input Left Channel Configuration

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 14.2.3 SAR_ADC:CHL_INPUT - SAR Input Left Channel Configuration Address: 0x00e9 Reset: 0x00 SAR_ADC:CHL_INPUT PCHSEL NCHSEL rw, 0 rw, 0 PCHSEL Positive input selection for left channel 0: Select no input channel...
  • Page 169 RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 NCHSEL Negative input selection for left channel 0: Select no input channel 1: Select Port B Pin 0 as input 2: Select Port B Pin 1 as input...
  • Page 170: Sar_Adc:chr_Input - Sar Input Right Channel Configuration

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 14.2.4 SAR_ADC:CHR_INPUT - SAR Input Right Channel Configuration Address: 0x00ea Reset: 0x00 SAR_ADC:CHR_INPUT PCHSEL NCHSEL rw, 0 rw, 0 PCHSEL Positive input selection for right channel 0: Select no input channel...
  • Page 171: Sar_Adc:chcfg - Sar General Channel Configuration

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 NCHSEL Negative input selection for right channel 0: Select no input channel 1: Select Port B Pin 0 as input 2: Select Port B Pin 1 as input...
  • Page 172 RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 RESM Misc channel resolution selection 00: Select 8-bit resolution 01: Select 10-bit resolution 10: Select 12-bit resolution 11: Select 14-bit resolution RESR Right channel resolution selection 00: Select 8-bit resolution...
  • Page 173: Sar_Adc:tsamp - Sar Sampling Time Configuration

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 14.2.6 SAR_ADC:TSAMP - SAR Sampling Time Configuration Address: 0x00ed Reset: 0x0000 SAR_ADC:TSAMP[1] RSVD CNUMM rw, 0 rw, 0 SAR_ADC:TSAMP[0] CNUMR CNUML rw, 0 rw, 0 11:8 CNUMM ADC clock cycle number selection for Misc channel...
  • Page 174: Sar_Adc:capcfg - Sar Channel Capture Configuration

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 14.2.7 SAR_ADC:CAPCFG - SAR Channel Capture Configuration Address: 0x00ef Reset: 0x000000 SAR_ADC:CAPCFG[2] CTMH CTLRH rw, 0 rw, 0 rw, 0 SAR_ADC:CAPCFG[1] CTLRL rw, 0 SAR_ADC:CAPCFG[0] CTML rw, 0...
  • Page 175: Sar_Adc:clkdiv - Sar Clock Divider Configuration

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 14.2.9 SAR_ADC:CLKDIV - SAR Clock Divider Configuration Address: 0x00f4 Reset: 0x03 SAR_ADC:CLKDIV RSVD ADCDIV rw, 0 rw, 3 ADCDIV Set ADC clock divider (derive from external 24M crystal) = 24M / ( ADCDIV + 1 ) 14.2.10...
  • Page 176: Programmable Gain Amplifier

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 15. Programmable Gain Amplifier (PGA) The PGA supports two channels including left channel and right channel and each channel consists of a Boost stage pre-amplifier and a Gain stage post-amplifier.
  • Page 177: Adjust Gain

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 15.3 Adjust Gain To adjust the PGA gain, the ALC of the audio module should be configured as analog mode, and the following three cases can apply: Auto regulate If auto regulate function is enabled, the user can set an initial PGA gain.
  • Page 178 RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 INLN Left channel negative input source selection Gate off all input with pga_pd_l 00: Select Port C Pin 1 as input 01: Select no input 10: Select no input...
  • Page 179: Temperature Sensor

    Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 16. Temperature Sensor The RYZ012 integrates a temperature sensor and it is used in combination with the SAR ADC to detect real-time temperature. The temperature sensor is disabled by default. The analog register SCTL:PDC1:TSPD must be cleared to enable the temperature sensor.
  • Page 180: Low Power Comparator

    Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 17. Low Power Comparator The RYZ012 embeds a low power comparator. This comparator takes two inputs: input derived from external PortB (PB4-PB7), and reference input derived from internal reference or AVDD.
  • Page 181: Mode And Reference Selection

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 17.3 Mode and Reference Selection Generally, it is needed to clear both the LPC:CFG0:REFMODE LPC:CFG1:BIASEN to select the normal mode. In normal mode, the internal reference is derived from UVLO and has higher accuracy, but current bias is larger (10µA); reference voltage input channel is selectable from internal reference of 972mV, 921mV, 870mV and 819mV, as well as PB0, PB3, AVDD3 and float.
  • Page 182: Lpc:cfg1 - Lpc Configuration

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 17.6.2 LPC:CFG1 - LPC Configuration Address: 0x000d Reset: 0x80 LPC:CFG1 BIASEN REFSEL RSVD INSEL rw, 1 rw, 0 rw, 0 rw, 0 BIASEN Enable 10µA current bias (low active) 0: Enables 10µA current bias...
  • Page 183: Aes

    18. AES The RYZ012 embeds an AES module with encryption and decryption function. The 128-bit plaintext input in combination with the AES key is converted into the output ciphertext through encryption; otherwise, the 128-bit ciphertext in combination of key can also be converted into 128- bit plaintext through decryption.
  • Page 184: Register Reference

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 18.4 Register Reference 18.4.1 AES:CTRL - AES Control Address: 0x0540 Reset: 0x00 AES:CTRL CCMEN RSVD ODRDY IDRDY rw, 0 rw, 0 ro, 0 ro, 0 rw, 0 CCMEN...
  • Page 185 RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 AES:KEY[15] KEY15 rw, 0 AES:KEY[14] KEY14 rw, 0 AES:KEY[13] KEY13 rw, 0 AES:KEY[12] KEY12 rw, 0 AES:KEY[11] KEY11 rw, 0 AES:KEY[10] KEY10 rw, 0 AES:KEY[9] KEY9 rw, 0...
  • Page 186 RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 7:0, 15:8, KEYx AES-Key Data 23:16, 31:24, AES-Key Data buffer to corresponding byte (128 bit key) 39:32, 47:40, 55:48, 63:56, 71:64, 79:72, 87:80, 95:88, 103:96, 111:104, 119:112, 127:120 R15UH0002EU0103 Rev.1.03...
  • Page 187: Bluetooth Low Energy/802.15.4/2.4Ghz Rf Transceiver

    19. Bluetooth Low Energy/802.15.4/2.4GHz RF Transceiver 19.1 Block Diagram The RYZ012 integrates an advanced Bluetooth LE/802.15.4/2.4GHz RF transceiver. The RF transceiver works in the worldwide 2.4GHz ISM (Industrial Scientific Medical) band. The transceiver consists of a fully integrated RF synthesizer, a Power Amplifier (PA), a Low Noise Amplifier (LNA), a TX filter, a RX filter, a TX DAC, an ADC, a modulator and a demodulator.
  • Page 188: Packet Format

    (1-2 bytes) (1–33 bytes) 19.2.2 RSSI and Frequency Offset The RYZ012 provides accurate RSSI (Receiver Signal Strength Indicator) and frequency offset indication. RSSI can be read from the 1byte at the tail of each received data packet.  If no data packet is received (for example to perform channel energy measurement when no desired signal is present), real-time RSSI can ...
  • Page 189: Electrical Characteristics

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 20. Electrical Characteristics 20.1 Absolute Maximum Ratings The absolute maximum ratings are stress ratings only. Stresses greater than those listed below can cause permanent damage to the device.
  • Page 190: Electrical Characteristics

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 20.3 Electrical Characteristics Table 23. Electrical Characteristics Symbol Parameter Conditions Minimum Typical Maximum Units RX current Whole chip TX current Whole chip at 0dBm with DCDC Deep sleep with...
  • Page 191: Table 25. Bluetooth Low Energy, 1 Mbps Mode

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Table 25. Bluetooth LE, 1 Mbps Mode Symbol Parameter Conditions Minimum Typical Maximum Units RX Performance (±250kHz Deviation) 1Mbps Sensitivity Frequency Offset -250 +300 Tolerance Co-channel Wanted signal at -...
  • Page 192: Table 27. Bluetooth Low Energy, 500 Kbps Mode

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 TX Performance Output Power, Maximum Setting Output Power, Minimum Setting Programmable Output Power Range Modulation 20dB Bandwidth [b] For actual sensitivity level of Bluetooth LE 2Mbps mode, see Bluetooth 5 specification.
  • Page 193: Table 28. Bluetooth Low Energy, 125 Kbps Mode

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Table 28. Bluetooth LE, 125 kbps Mode Symbol Parameter Conditions Minimum Typical Maximum Units RX Performance (±250kHz Deviation) 125kbps Sensitivity -101 Frequency Offset -150 Tolerance Co-channel Wanted signal at -...
  • Page 194: Table 29. Ieee 802.15.4, 250Kbps

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Table 29. IEEE 802.15.4, 250kbps Symbol Parameter Conditions Minimum Typical Maximum Units Rx performance (±500kHz Deviation) 250kbps Sensitivity -99.5 Frequency Offset -300 +300 Tolerance Adjacent Channel Wanted signal at -...
  • Page 195: Spi Characteristics

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Differential 10-bit resolution Nonlinearity mode Integral Nonlinearity 10-bit resolution mode SINAD Signal-to-Noise and = 1kHz, f Distortion Ratio 16kHz ENOB Effective Number of 10.5 bits Bits Sampling ksps Frequency 20.4 SPI Characteristics...
  • Page 196: I2C Characteristics

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 20.5 I2C Characteristics Table 31. I2C Characteristics (over process, voltage 1.9–3.6V, and T = -40 to +85°C) Symbol Parameter Conditions Standard Mode Fast Mode Units SCL Frequency Rise Time of...
  • Page 197: Package Outline Drawings

    Module integrators must adhere to the integration guidelines in given in the following sections to maintain compliance with the certification requirements while providing the maximum performance. Note: Any modifications to the RYZ012 modules are not allowed and may void the users permission to operated the module. 21.1 List of applicable FCC / ISED rules ISED 47 CFR Part 15 Subpart C §15.247...
  • Page 198 RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Figure 37 RYZ012A1 Layout Guidelie Antenna keep-out area: No copper or components allowed 6.1 mm RYZ012A1 Host PCB 21.3.2 RZY012B1 Do not place any metal in the keep-out area (no traces, planes, components, batteries, screws …).Ensure the module is properly connected to ground (e.g.
  • Page 199 RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Figure 38 RYZ012B1 Layout Guideline Keep-out area Antenna connector 50Ω trace No copper or metallic objects here Host PCB RYZ012B1 Dimension [mm] 0.65 0.75 0.25 R15UH0002EU0103 Rev.1.03 Page 199 of 206...
  • Page 200 FCC/ISED covered regions allow the use of other monopole antennas with less than 1dBi gain. Antennas which do not fulfill both requirements must be tested before they may be used with the module. Please contact Renesas for further information. R15UH0002EU0103 Rev.1.03 Page 200 of 206 Apr.21.21...
  • Page 201 21.6 Labeling Requirements 21.6.1 FCC (US) Host devices integrating the RYZ012 should indicate the use of this module on a label on the host device by the following statement: Contains FCC-ID: COR-RYZ012X1 In addition, the host device should include the following text on the label (if possible): This device complies with part 15 of the FCC rules.
  • Page 202 If above statement cannot be included on the host device label, this statement must be included in the users manual of the host device. 21.6.3 Japan Host devices integrating the RYZ012 should indicate the use of this module on a label on the host device by the following statement: 当該機器には電波法に基づく、技術基準適合証明等を受けた特定無線設備を装着している...
  • Page 203 22.2 EU Declaration of Conformity Integrated Device Technology, a Renesas Corporation company declares that the RYZ012 complies with the essential requirements and other relevant provisions of Directive 2014/53/EU. A copy of the Declaration of Conformity is available on request.
  • Page 204: Table 33. Module Dimensions

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 23. Package Outline Drawings Table 33. Module Dimensions In mm Min. Nom. 11.85 12.00 12.15 11.85 12.00 12.15 0.96 1.00 0.75 2.16 2.31 2.46 0.71 0.81 0.91 R15UH0002EU0103 Rev.1.03 Page 204 of 206 Apr.21.21...
  • Page 205: Soldering Information

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 24. Soldering Information The recommended soldering profile for a lead-free (RoHS-compliant) process is shown below. Figure 40. Recommended Soldering Profile It is important to ensure this temperature profile is measured at the sensor itself. Measuring the profile at a larger component with a higher thermal mass results in the temperature at the small sensor measuring higher than expected.
  • Page 206: Ordering Information

    RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 25. Ordering Information Shipping Ambient Orderable Part Number Package MSL Rating Packaging Temperature RYZ012A100FZ00#HD0 Bluetooth Low Energy Module with Tape&Reel -40°C to +85°C internal antenna RYZ012B100FZ00#HD0 Bluetooth Low Energy Module Tape&Reel...

Table of Contents