User’s Manual 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.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 General Features RF Features 4-byte chip UID (unique ID) Bluetooth Low Energy/802.15.4/2.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 RF4CE Features Based on IEEE 802.15.4 Standard, certified RF4CE platform, with ZRC1.1/ZRC2.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Contents Contents ................................................................................................................................................................................................................4 List of Figures ..............................................................................................................................................................................
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 ...................................................
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 .........................................
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 ...................................................................
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 6.5.11 7. I2C:HSTATE - I2C Host Status ..........................................................................................................................................84 SPI Interface ...............................................................................................................................................................................................85 7.1 SPI Master Mode ........
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 ...................
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 ........................................................
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 .....................................................
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 ..............................................
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 ...........
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 .......................
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 ....................................................................................................................................................................
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.
RYZ012 1. Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Pin Descriptions GND ANT GND Figure 1. Pin Assignments – Top View 20 19 18 T6 T1 PB1 4 T3 5 6 T4 7 8 9 10 PC0 3 VDD PA7 PB7 2 T5 PB6 PA1 T2 PB5 1 PB4 PA0 17 NRST 16 PD2 15 PD3 14 PD4 13 PD7 12 PC4 11 PC1 Table 1. Pin Descriptions Driving Strength Pin No.
RYZ012 2. Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 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. The MCU services interrupt requests in a dedicated processing mode.
RYZ012 2.2 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.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Table 4. Flash Memory Partition Partition No of contained ... ...Bytes ...Pages ...Sectors ...Blocks Device 512k 2k 128 16 Block 32k 128 8 1 Sector 4k 16 1 - Page 256 1 - - For chip identification and traceability, the Flash is preloaded with a Unique ID (UID). The user is not allowed to modify this preloaded UID, but the user can read the UID through the corresponding API interface.
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. Peripheral registers in the analog domain are not directly accessible.
RYZ012 2.3 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Register Reference 2.3.1 ARA:ADDR - Analog Register Address 0x00b8 0x00 Address: Reset: 7 6 5 4 ARA:ADDR 3 2 1 0 3 2 1 0 3 2 1 0 ADDR rw, 0 7:0 ADDR Address of the analog register to be accessed 2.3.2 ARA:DATA - Analog Register Data 0x00b9 0x00 Address: Reset: 7 6 5 4 ARA:DATA DATA rw, 0 7:0 DATA Input/Output data 2.3.
RYZ012 3. 3.1 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 System Control Reset The module supports different reset types, each with a different scope: 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.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Figure 4. Power-Up Sequence R15UH0002EU0103 Rev.1.03 Apr.21.
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 VPOR VDD voltage when VUVLO turns to high level 1.62 V VPDN VDD voltage when VUVLO turns to low level 1.55 V TDLY Delay counter value R15UH0002EU0103 Rev.1.03 Apr.21.
RYZ012 3.3 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 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. Table 7.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 3.3.5 Standby Mode In Standby, only the PM module is active, while analog and digital modules including the retention SRAMs are powered down. The chip can be triggered to Active mode by 32K Timer, IO pin or NRST pin. The time to switch to Active mode is 1ms or so. 3.3.6 Shutdown Mode In Shutdown mode, all digital and analog modules are powered down, and the PM module is active.
RYZ012 3.4 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 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.
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. 3.4.2.1 System Timer Clock System Timer clock is derived directly from 24M crystal oscillator with a 2/3 frequency divider. The clock frequency is fixed as 16MHz.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 2 UARTEN UART (RS232) clock enable control 0: Disables module clock 1: Enables module clock 1 I2CEN I2C clock enable control 0: Disables module clock 1: Enables module clock 0 SPIEN SPI clock enable control 0: Disables module clock 1: Enables module clock 3.5.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 3.5.4 SCTL:I2SCC - I2S Clock Control 0x0067 0x00 Address: Reset: 7 SCTL:I2SCC 7 CEN 6 5 4 3 2 1 0 3 2 1 0 3 2 1 0 CEN STEP rw, 0 rw, 0 Enable I2S clock 0: Disables I2S clock 1: Enables I2S clock 6:0 STEP I2S step 3.5.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 3.5.7 SCTL:DMIC_MOD - DCMI Clock Modifier 0x006d 0x02 Address: Reset: 7 6 5 4 SCTL:DMIC_MOD 3 2 1 0 DMIC_MOD rw, 2 7:0 DMIC_MOD FDMIC = 48MHz * DMICC:STEP / DMIC_MOD DMIC_MOD should be larger than or equal to 2 * DMICC:STEP 3.5.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 3.5.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 3.5.11 SCTL:WDSTATE - Watchdog Status 0x0072 0x00 Address: Reset: 7 6 5 4 SCTL:WDSTATE 0 STATE 3 2 1 0 RSVD STATE rw, 0 rw, 0 Watch dog status indication 0: No Watchdog indication detected 1: Watchdog indication detected Write 1 to clear. 3.5.
RYZ012 3.6 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Analog Register Reference 3.6.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 3.6.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 3.6.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 3.6.7 SCTL:RD2 - Retention Data 2 0x0037 0x00 Address: Reset: 7 6 5 4 SCTL:RD2 3 2 1 0 3 2 1 0 3 2 1 0 3 2 1 0 RD2 rw, 0 7:0 RD2 Application data buffer 3.6.8 SCTL:RD3 - Retention Data 3 0x0038 0x00 Address: Reset: 7 6 5 4 SCTL:RD3 RD3 rw, 0 7:0 RD3 Application data buffer 3.6.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 3.6.11 SCTL:RD6 - Retention Data 6 0x003b 0x00 Address: Reset: 7 6 5 4 SCTL:RD6 3 2 1 0 1 0 RD6 rw, 0 7:0 RD6 Application data buffer Note: This field is only reset by power on reset. Data is retained after Watchdog or System Reset. 3.6.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 4 CAL_32K 32kHz clock calibration status 0: 32kHz clock is not calibrated 1: 32kHz clock is calibrated 3 IO_WKUP Set to 1 if last wakeup event was triggered from GPIO Write 1 to clear. 1 T32_WKUP Set to 1 if last wakeup event was triggered from 32kHz timer Write 1 to clear. 0 LPC_WKUP Set to 1 if last wakeup event was triggered from LPC Write 1 to clear. 3.6.
RYZ012 4. Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Interrupt System The RYZ has 24 interrupt lines that can interrupt normal program flow, allowing quick handling of external or internal events. When an interrupt is triggered, the normal program flow is stopped, and the MCU jumps into an Interrupt Service Routine (ISR) that handles the event processing. On completion of the ISR, normal code execution is continued.
RYZ012 4.1 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Register Reference 4.1.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 4.1.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.
RYZ012 5. Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 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. Figure 8. Schematic of a GPIO bit There are 4 GPIO blocks, named GPIOA to GPIOD.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Register Name Description Link Analog Registers PRC Pull resistor control. Pins configured in input mode (IE=0b1) can select from one of the following options: 2b'00 - No resistor connected 2b'01 - Weak pull-up resistor connected (typical 1MΩ) 2b'10 - Pull-down resistor connected (typical 160kΩ) 2b'11 - Strong pull-up resistor connected (typical 18kΩ) A, B, C, D WKUPEN Wakeup enable.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Table 10 Peripheral Function Mapping Port A B C D Pin 0 1 7 1 4 5 6 7 0 1 2 3 4 2 3 4 7 Pin-Nr.
RYZ012 5.3 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: Reset: 0x0580 0x00 GPIOA:ID 0, 1, 2, 3, 4, 5, 6, 7 INx 7 6 5 4 3 2 1 0 IN7 IN6 IN5 IN4 IN3 IN2 IN1 IN0 r, 0 r, 0 r, 0 r, 0 r, 0 r, 0 r, 0 r, 0 3 2 1 0 GPIOA Input Data The input signal level is indicated bitwise for the corresponding pin.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.3.3 GPIOA:ODIS - GPIOA Output Disable Address: Reset: 0x0582 0x00 GPIOA:ODIS 0, 1, 2, 3, 4, 5, 6, 7 ODISx 7 6 5 4 3 2 1 0 ODIS7 ODIS6 ODIS5 ODIS4 ODIS3 ODIS2 ODIS1 ODIS0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 GPIOA Output Disable Disable the corresponding bit as GPIO output. 0: Enable corresponding pin as Output 1: Disable corresponding pin as Output 5.3.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.3.6 GPIOA:DS - GPIOA Driving Strength Address: Reset: 0x0585 0xFF GPIOA:DS 0, 1, 2, 3, 4, 5, 6, 7 DSx 7 6 5 4 3 2 1 0 DS7 DS6 DS5 DS4 DS3 DS2 DS1 DS0 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 GPIO Driver strength (DS) Use the corresponding bit to set the driving level. 0: Set minimum driving level on corresponding pin 1: Set maximum driving level on corresponding pin 5.3.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.3.9 GPIOA:PFS - Peripheral Function Selection Register 0x05a8 0x0000 Address: Reset: 7 GPIOA:PFS[1] 6 PF7 4 3 2 RSVD rw, 0 rw, 0 GPIOA:PFS[0] 15:14 5 PF7 1 0 RSVD PF1 PF0 rw, 0 rw, 0 rw, 0 Peripheral select if pin is configured in peripheral mode. 00: SWS (Default) 01: UART_RTS 10: Not used 3:2 PF1 Peripheral select if pin is configured in peripheral mode.
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: Reset: 0x05c0 0x00 GPIOA:T1G2R 0, 1, 2, 3, 4, 5, 6, 7 T1G2Rx 7 6 5 4 3 2 1 0 T1G2R7 T1G2R6 T1G2R5 T1G2R4 T1G2R3 T1G2R2 T1G2R1 T1G2R0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 GPIO extra peripheral mapping Using this register individual GPIO pins can be mapped to Timer 1 or to the GPIO2RISC IRQ1 interrupt source.
RYZ012 5.4 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 GPIOA Analog Register Reference 5.4.
RYZ012 5.5 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: Reset: 0x0588 0x00 GPIOB:ID 0, 1, 2, 3, 4, 5, 6, 7 INx 7 6 5 4 3 2 1 0 IN7 IN6 IN5 IN4 IN3 IN2 IN1 IN0 r, 0 r, 0 r, 0 r, 0 r, 0 r, 0 r, 0 r, 0 3 2 1 0 GPIOB Input Data The input signal level is indicated bitwise for the corresponding pin.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.5.3 GPIOB:ODIS - GPIOB Output Disable Address: Reset: 0x058a 0x00 GPIOB:ODIS 0, 1, 2, 3, 4, 5, 6, 7 ODISx 7 6 5 4 3 2 1 0 ODIS7 ODIS6 ODIS5 ODIS4 ODIS3 ODIS2 ODIS1 ODIS0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 GPIOB Output Disable Disable the corresponding bit as GPIO output. 0: Enable corresponding pin as Output 1: Disable corresponding pin as Output 5.5.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.5.6 GPIOB:DS - GPIOB Driving strength Address: Reset: 0x058d 0xFF GPIOB:DS 0, 1, 2, 3, 4, 5, 6, 7 DSx 7 6 5 4 3 2 1 0 DS7 DS6 DS5 DS4 DS3 DS2 DS1 DS0 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 GPIOB Driving strength Use the corresponding bit to set the driving level. 0: Set minimum driving level on corresponding pin 1: Set maximum driving level on corresponding pin 5.5.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.5.9 GPIOB:PFS - Peripheral Function Selection Register 0x05aa 0x5000 Address: Reset: 7 GPIOB:PFS[1] 6 PF7 4 3 2 1 0 PF6 PF5 PF4 rw, 1 rw, 1 rw, 0 rw, 0 RSVD PF1 RSVD rw, 0 rw, 0 rw, 0 GPIOB:PFS[0] 15:14 5 PF7 Peripheral select if pin is configured in peripheral mode. 00: SDM_N1 01: SPI_DO 10: UART_RX 13:12 PF6 Peripheral select if pin is configured in peripheral mode.
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: Reset: 0x05b9 0x00 GPIOB:T0G2R 0, 1, 2, 3, 4, 5, 6, 7 T0G2Rx 7 6 5 4 3 2 1 0 T0G2R7 T0G2R6 T0G2R5 T0G2R4 T0G2R3 T0G2R2 T0G2R1 T0G2R0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 GPIO extra peripheral mapping Using this register individual GPIO pins can be mapped to Timer 0 and to the GPIO2RISC IRQ0 interrupt source.
RYZ012 5.6 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 GPIOB Analog Register Reference 5.6.
RYZ012 5.7 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: Reset: 0x0590 0x00 GPIOC:ID 0, 1, 2, 3, 4, 5, 6, 7 INx 7 6 5 4 3 2 1 0 IN7 IN6 IN5 IN4 IN3 IN2 IN1 IN0 r, 0 r, 0 r, 0 r, 0 r, 0 r, 0 r, 0 r, 0 3 2 1 0 GPIOC Input Data The input signal level is indicated bitwise for the corresponding pin.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.7.3 GPIOC:ODIS - GPIOC Output Disable Address: Reset: 0x0592 0x00 GPIOC:ODIS 0, 1, 2, 3, 4, 5, 6, 7 ODISx 7 6 5 4 3 2 1 0 ODIS7 ODIS6 ODIS5 ODIS4 ODIS3 ODIS2 ODIS1 ODIS0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 GPIOC Output Disable Disable the corresponding bit as GPIO output. 0: Enable corresponding pin as Output 1: Disable corresponding pin as Output 5.7.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.7.6 GPIOC:DS - GPIOC Driving Strength Address: Reset: 0x0595 0xFF GPIOC:DS 0, 1, 2, 3, 4, 5, 6, 7 DSx 7 6 5 4 3 2 1 0 DS7 DS6 DS5 DS4 DS3 DS2 DS1 DS0 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 GPIO Driving Strength (DS) Use the corresponding bit to set the driving level. 0: Set minimum driving level on corresponding pin 1: Set maximum driving level on corresponding pin 5.7.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.7.9 GPIOC:PFS - Peripheral Function Selection Register 0x05ac 0x0050 Address: Reset: 7 6 GPIOC:PFS[1] GPIOC:PFS[0] 9:8 PF4 5 4 3 2 1 0 RSVD PF4 rw, 0 rw, 0 PF3 PF2 PF1 PF0 rw, 1 rw, 1 rw, 0 rw, 0 Peripheral select if pin is configured in peripheral mode. 00: PWM2 01: UART_CTS 10: PWM0_N 7:6 PF3 Peripheral select if pin is configured in peripheral mode.
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: Reset: 0x05ba 0x00 GPIOC:T0G2R 0, 1, 2, 3, 4, 5, 6, 7 T0G2Rx 7 6 5 4 3 2 1 0 T0G2R7 T0G2R6 T0G2R5 T0G2R4 T0G2R3 T0G2R2 T0G2R1 T0G2R0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 GPIO extra peripheral mapping Using this register individual GPIO pins can be mapped to Timer 0 and to the GPIO2RISC IRQ0 interrupt source.
RYZ012 5.8 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 GPIOC Analog Register Reference 5.8.
RYZ012 5.9 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: Reset: 0x0598 0x00 GPIOD:ID 0, 1, 2, 3, 4, 5, 6, 7 INx 7 6 5 4 3 2 1 0 IN7 IN6 IN5 IN4 IN3 IN2 IN1 IN0 r, 0 r, 0 r, 0 r, 0 r, 0 r, 0 r, 0 r, 0 3 2 1 0 GPIOD Input Data The input signal level is indicated bitwise for the corresponding pin.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.9.3 GPIOD:ODIS - GPIOD Output Disable Address: Reset: 0x059a 0x00 GPIOD:ODIS 0, 1, 2, 3, 4, 5, 6, 7 ODISx 7 6 5 4 3 2 1 0 ODIS7 ODIS6 ODIS5 ODIS4 ODIS3 ODIS2 ODIS1 ODIS0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 GPIOD Output Disable Disable the corresponding bit as GPIO output. 0: Enable corresponding pin as Output 1: Disable corresponding pin as Output 5.9.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.9.6 GPIOD:DS - GPIOD Driving strength Address: Reset: 0x059d 0xFF GPIOD:DS 0, 1, 2, 3, 4, 5, 6, 7 DSx 7 6 5 4 3 2 1 0 DS7 DS6 DS5 DS4 DS3 DS2 DS1 DS0 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 rw, 1 GPIOD Driving strength Use the corresponding bit to set the driving level. 0: Set minimum driving level on corresponding pin 1: Set maximum driving level on corresponding pin 5.9.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.9.9 GPIOD:PFS - Peripheral Function Selection Register 0x05ae 0x0000 Address: Reset: 7 GPIOD:PFS[1] GPIOD:PFS[0] 15:14 PF7 6 5 4 3 2 1 0 PF7 RSVD PF4 rw, 0 rw, 0 rw, 0 PF3 PF2 RSVD rw, 0 rw, 0 rw, 0 Peripheral select if pin is configured in peripheral mode. 00: SPI_CK 01: I2S_BCK 10: UART_TX 9:8 PF4 Peripheral select if pin is configured in peripheral mode.
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: Reset: 0x05c3 0x00 GPIOD:T1G2R 0, 1, 2, 3, 4, 5, 6, 7 T1G2Rx 7 6 5 4 3 2 1 0 T1G2R7 T1G2R6 T1G2R5 T1G2R4 T1G2R3 T1G2R2 T1G2R1 T1G2R0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 GPIO extra peripheral mapping Using this register individual GPIO pins can be mapped to Timer 1 or to the GPIO2RISC IRQ1 interrupt source.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 5.10 GPIOD Analog Register Reference 5.10.
RYZ012 6. Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 I2C Interface The RYZ012 embeds an I2C hardware module, which can act as I2C Master or I2C Slave. I2C is a popular inter-IC interface requiring only 2 bus lines, a serial data line (SDA) and a serial clock line (SCL). 6.1 Communication Protocol The I2C unit supports I2C Standard Mode (100kbps) and I2C Fast Mode (400kbps) with restriction that system clock must be running at least at 10x the data rate.
RYZ012 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. The received address is automatically offset by 0x800000.
RYZ012 6.3 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Master Mode In Master Mode, the RYZ012 must provide the clock for I2C transfers. The clock speed is configured in register I2C:CPRE. The resulting I2C clock frequency is FI2C =FSYS /(4*I2C:CPRE). I2C master transfers are configured in register I2C:CYCTRL. The single bits in this register allow inclusion or exclusion of certain stages of an I2C transfer. Register I2C:MST carries master status information. 6.3.
RYZ012 6.5 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 0x0000 0x1f Address: Reset: 7 6 5 4 I2C:CPRE 3 2 1 3 2 1 0 CPRE rw, 31 7:0 CPRE I2C clock prescaler value FI2C = FSYS / ( 4 * CPRE ) 6.5.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 0 BSY Master busy 0: I2C is idle 1: I2C is busy 6.5.
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 0x0005 0xf1 Address: Reset: 7 6 5 4 I2C:W2D 3 2 1 0 3 2 1 0 W2D rw, 241 7:0 W2D Master mode write data buffer 6.5.7 I2C:W3RD - I2C Master Mode Write/Read Buffer 0x0006 0x00 Address: Reset: 7 6 5 4 I2C:W3RD W3RD rw, 0 7:0 W3RD Master mode read or write data buffer 6.5.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 3 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 2 W2DEN Send data from register W2D 0: Don't use W2D 1: Send Data from W2D 1 W1DEN Send data from register W1D 0: Do not use W1D 1: Send Data from W1D 0 ADREN Enable address transmission from SADR 0: Do not send I2C address byte 1: Send I2C address byte.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 6.5.11 I2C:HSTATE - I2C Host Status 0x00e4 0x00 Address: Reset: 7 6 5 I2C:HSTATE 1 RDY 1 0 RSVD 4 3 2 RDY INT 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. 0 INT I2C operation end indication 0: No I2C operation end interrupt detected 1: I2C operation end interrupt detected Write 1 to clear.
RYZ012 7. Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 SPI Interface The RYZ012 embeds a Serial Peripheral Interface (SPI)that can act as master or slave. SPI is a high-speed, full-duplex synchronous communication bus requiring four bus lines including a chip select (CS) line, a data input (DI) line, a data output (DO) line and a clock (CK) line. The bits CPOL and CPHA in register SPI:MODE control SPI clock polarity and phase.
RYZ012 7.2 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 SPI Slave Mode Slave Mode SPI transfers must follow a communication scheme similar to I2C DMA mode. For each transfer, the master first sends four bytes of data. First it determines the memory address to be read or written; next a command byte, controlling read or write is sent. The address consists of three bytes AddrH, AddrM and AddrL. The address is offset by 0x800000 automatically by the SPI hardware.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 0 CPOL SPI clock polarity 0: Clock line is low when idle 1: Clock line is high when idle R15UH0002EU0103 Rev.1.03 Apr.21.
RYZ012 8. Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 UART Interface The RYZ012 embeds UART (Universal Asynchronous Receiver/Transmitter) to implement full-duplex transmission and reception through UART TX and RX interface. Both TX and RX interface are 4-layer FIFO (First In First Out) interface. Hardware flow control is supported through RTS and CTS.
RYZ012 8.1 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Register Reference 8.1.1 UART:DATA - UART Data Buffer 0x0090 0x00000000 Address: Reset: 7 6 5 4 UART:DATA[3] 3 2 1 0 3 2 1 0 DAT3 rw, 0 UART:DATA[2] DAT2 rw, 0 UART:DATA[1] DAT1 rw, 0 UART:DATA[0] DAT0 rw, 0 7:0, 15:8, 23:16, 31:24 DATx UART Data Buffer Read/Write Data buffer to corresponding byte 8.1.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 8.1.
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.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 8.1.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 8.1.6 UART:STATUS - UART Status 0x009d 0x00 Address: Reset: UART:STATUS 7 RXERR 7 6 RXERR TXERR 5 RSVD 4 IRQ 3 2 RSVD 1 0 r, 0 r, 0 r, 0 r, 0 r, 0 RX mask error indication 0: No RX mask error detected 1: RX mask error detected Write 1 to clear. 6 TXERR TX mask error indication 0: No TX mask error detected 1: TX mask error detected Write 1 to clear.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 0 TXDONE TX mask done indication 0: No TX mask done detected 1: TX mask done detected 8.1.8 UART:STATE - UART State 0x009f 0x00 Address: Reset: 7 6 UART:STATE 9. 7:4 RSTATE [7:4] rstate_i 2:0 TSTATE [2:0] tstate_i 5 4 3 2 1 0 RSTATE RSVD TSTATE r, 0 r, 0 r, 0 Single Wire Interface The RYZ012 supports Single Wire interface.
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. The registers GPIOx:T0G2R, GPIOx:T1G2R or GPIOx:T2 specify the GPIO that generates the counting signal for Timer 0, Timer 1 and Timer2, respectively.
RYZ012 10.1.4.1 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Timer 0 Mode 3 Configuration Example 1. Set initial Timer 0 Tick value through TIMER:TICK0. It is recommended to clear initial Timer Tick value to 0. 2. Set Timer 0 to Mode 3 and enable Timer 0 by setting TIMER:CTRL:MODE0 to 2b'11 and TIMER:CTRL:EN0 to 1b'1. Timer0 Tick starts to roll. The Timer 0 Tick Value can be read any time from TIMER:TICK0. 10.1.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 10.3 Register Reference 10.3.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 2:1 MODE0 Timer 0 mode selection 00: Using SCLK 01: Using GPIO 10: Count width of GPI 11: Timer ticks 0 EN0 Timer 0 enable 0: Disables Timer 0 1: Enables Timer 0 10.3.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 10.3.3 TIMER:CAPT0 - Timer 0 Capture 0x0624 0x00000000 Address: Reset: 7 6 5 4 TIMER:CAPT0[3] 3 2 1 0 3 2 1 0 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.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 10.3.5 TIMER:CAPT2 - Timer 2 Capture 0x062c 0x00000000 Address: Reset: 7 6 5 4 TIMER:CAPT2[3] 3 2 1 0 3 2 1 0 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.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 10.3.7 TIMER:TICK1 - Timer 1 Tick Counter 0x0634 0x00000000 Address: Reset: 7 6 5 4 TIMER:TICK1[3] 3 2 1 0 3 2 1 0 TICK1 rw, 0 TIMER:TICK1[2] TICK1 rw, 0 TIMER:TICK1[1] TICK1 rw, 0 TIMER:TICK1[0] TICK1 rw, 0 31:0 TICK1 Timer 1 Counter Value 10.3.
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 0x0740 0x00 Address: Reset: 7 6 5 4 SYSTIM:CNT[3] 3 2 1 0 CNT rw, 0 SYSTIM:CNT[2] CNT rw, 0 SYSTIM:CNT[1] CNT rw, 0 SYSTIM:CNT[0] 31:3 CNT CNT RSVD rw, 0 rw, 0 This is the System Timer counter value. Write to set initial value. 10.5.
RYZ012 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. The PWM clock derives from the system clock. PWM:CLKDIV serves as frequency divider for the PWM clock, such that FPWM =FSYS /(PWM:CLKDIV+1).
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. 11.1.2 Counting Mode Only PWM0 supports Counting mode. PWM:MODE:MODE should be set as 4b'0001 to select PWM0 counting mode.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 11.2 Register Reference 11.2.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 11.2.2 PWM:CLKDIV - PWM Clock Divider Configuration 0x0782 0x00 Address: Reset: 7 6 5 4 PWM:CLKDIV 3 2 3 2 1 0 1 0 DIV rw, 0 7:0 DIV Select PWM Clock divider FPWM = FSYS / ( CLKDIV + 1 ) 11.2.
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 0x0785 0x00 Address: Reset: 7 PWM:IPOL 0, 1, 2, 3, 4, 5 IPOLx 5 4 3 2 1 0 RSVD 6 IPOL5 IPOL4 IPOL3 IPOL2 IPOL1 IPOL0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 Configures the output polarity of the corresponding inverted PWM output pin (PWMx_N) 0: PWMx_N is not inverted 1: PWMx_N is inverted 11.2.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 11.2.8 PWM:TMAX0 - PWM0 Maximum Cycle Time 0x0796 0x0000 Address: Reset: 7 6 5 4 PWM:TMAX0[1] 3 2 1 0 3 2 1 0 3 2 1 0 VAL rw, 0 PWM:TMAX0[0] VAL rw, 0 15:0 VAL PWM0 cycle time value 11.2.9 PWM:TCMP1 - PWM1 Capture Mode Time 0x0798 0x0000 Address: Reset: 7 6 5 4 PWM:TCMP1[1] VAL rw, 0 PWM:TCMP1[0] VAL rw, 0 15:0 VAL PWM1 high time or low time value 11.2.
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: Reset: 0x079c 0x0000 7 6 5 4 PWM:TCMP2[1] 3 2 1 0 3 2 1 0 3 2 1 0 VAL rw, 0 PWM:TCMP2[0] VAL rw, 0 15:0 VAL PWM2 high time or low time value 11.2.12 PWM:TMAX2 - PWM2 Maximum Cycle Time Address: Reset: 0x079e 0x0000 7 6 5 4 PWM:TMAX2[1] VAL rw, 0 PWM:TMAX2[0] VAL rw, 0 15:0 VAL PWM2 cycle time value 11.2.
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: Reset: 0x07a2 0x0000 7 6 5 4 PWM:TMAX3[1] 3 2 1 0 3 2 1 0 3 2 1 0 VAL rw, 0 PWM:TMAX3[0] VAL rw, 0 15:0 VAL PWM3 cycle time value 11.2.15 PWM:TCMP4 - PWM4 Capture Mode Time Address: Reset: 0x07a4 0x0000 7 6 5 4 PWM:TCMP4[1] VAL rw, 0 PWM:TCMP4[0] VAL rw, 0 15:0 VAL PWM4 high time or low time value 11.2.
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: Reset: 0x07a8 0x0000 7 6 5 4 PWM:TCMP5[1] 3 2 1 0 3 2 1 0 2 1 0 VAL rw, 0 PWM:TCMP5[0] VAL rw, 0 15:0 VAL PWM5 high time or low time value 11.2.18 PWM:TMAX5 - PWM5 Maximum Cycle Time Address: Reset: 0x07aa 0x0000 7 6 5 4 PWM:TMAX5[1] VAL rw, 0 PWM:TMAX5[0] VAL rw, 0 15:0 VAL PWM5 cycle time value 11.2.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 11.2.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 11.2.21 PWM:INT0 - PWM Interrupt Status Address: Reset: 0x07b1 0x00 PWM:INT0 7 FR5 7 6 5 4 3 2 1 0 FR5 FR4 FR3 FR2 FR1 FR0 DMA0 CNT0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 rw, 0 PWM5 cycle done interrupt indication (CNT5 – TMAX5) 0: No interrupt detected 1: Interrupt detected Write 1 to clear.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 0 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: Reset: 0x07b2 0x00 7 6 5 PWM:MASK1 0 FIFOCNT 4 3 2 1 0 RSVD FIFOCNT rw, 0 rw, 0 Enable PWM0 FIFO count interrupt (FIFO mode) 0: Disables interrupt 1: Enables interrupt 11.2.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 11.2.24 PWM:CNT0 - PWM0 Counter Value Address: Reset: 0x07b4 0x0000 7 6 5 4 PWM:CNT0[1] 3 2 1 0 3 2 1 0 3 2 1 0 VAL r, 0 PWM:CNT0[0] VAL r, 0 15:0 VAL PWM0 counter value 11.2.25 PWM:CNT1 - PWM1 Counter Value Address: Reset: 0x07b6 0x0000 7 6 5 4 PWM:CNT1[1] VAL r, 0 PWM:CNT1[0] VAL r, 0 15:0 VAL PWM1 counter value 11.2.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 11.2.27 PWM:CNT3 - PWM3 Counter Value Address: Reset: 0x07ba 0x0000 7 6 5 4 PWM:CNT3[1] 3 2 1 0 3 2 1 0 3 2 1 0 VAL r, 0 PWM:CNT3[0] VAL r, 0 15:0 VAL PWM3 counter value 11.2.28 PWM:CNT4 - PWM4 Counter Value Address: Reset: 0x07bc 0x0000 7 6 5 4 PWM:CNT4[1] VAL r, 0 PWM:CNT4[0] VAL r, 0 15:0 VAL PWM4 counter value 11.2.
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: Reset: 0x07c0 0x0000 7 6 5 4 PWM:NCNT0[1] 3 2 1 0 2 1 0 2 1 0 VAL r, 0 PWM:NCNT0[0] VAL r, 0 15:0 VAL PWM0 pulse count value 11.2.
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: Reset: 0x07c8 0x00 7 6 5 4 PWM:FIFO_DAT_ENTRY[3] 3 2 1 0 3 2 1 0 3 2 1 0 VAL rw, 0 PWM:FIFO_DAT_ENTRY[2] VAL rw, 0 PWM:FIFO_DAT_ENTRY[1] VAL rw, 0 PWM:FIFO_DAT_ENTRY[0] VAL rw, 0 31:0 VAL FIFO data entry byte 0 in IR FIFO mode 11.2.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 3:0 DAT FIFO data count Current number of bytes in the FIFO 11.2.36 PWM:FIFO_CLR - PWM FIFO Clear Address: Reset: 0x07ce 0x00 7 6 PWM:FIFO_CLR 0 CLR 5 4 3 2 1 0 RSVD CLR w1, 0 w1, 0 Clear data FIFO 0: Not used 1: FIFO data buffer is cleared R15UH0002EU0103 Rev.1.03 Apr.21.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12. Audio 12.1 Audio Input Path There are three types of audio input path: digital microphone (DMIC), Codec (I2S) and analog input channel (AMIC), which is selectable through AUDIO_IN:DFIFOAIN:AISEL. Stereo or mono input processing can be selected through AUDIO_IN:DFIFOAIN:AIMODE. Figure 21. Audio Input Path Table 11.
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. For I2S clock configuration details, see section I2S Clock.
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). Down-sampling rate is configurable as 1–8, 16, 32, 64, 128 or 256 by writing AUDIO_IN:DFIFODEC:RATIO.
RYZ012 12.2.5.2 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 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.
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 0x0b00 0x00 Address: Reset: 7 6 5 4 AUDIO_IN:DFIFO0_BADR0 3 2 1 0 3 2 1 0 3 2 1 0 3 2 1 0 VAL rw, 0 7:0 VAL FIFO0 base address byte 0 12.3.
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 0x0b04 0x00 Address: Reset: 7 6 5 4 AUDIO_IN:DFIFO1_BADR0 3 2 1 0 3 2 1 0 3 2 1 0 3 2 1 0 VAL rw, 0 7:0 VAL FIFO1 base address byte 0 12.3.6 AUDIO_IN:DFIFO1_BADR1 - DFIFO1 Base Address 0x0b05 0x48 Address: Reset: 7 6 5 4 AUDIO_IN:DFIFO1_BADR1 VAL rw, 72 7:0 VAL FIFO1 base address byte 1 12.3.
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 0x0b08 0x00 Address: Reset: 7 6 5 4 AUDIO_IN:DFIFO2_BADR0 3 2 1 0 3 2 1 0 3 2 1 0 3 2 1 0 VAL rw, 0 7:0 VAL FIFO2 base address byte 0 12.3.10 AUDIO_IN:DFIFO2_BADR1 - DFIFO2 Base Address Address: Reset: 0x0b09 0x3c 7 6 5 4 AUDIO_IN:DFIFO2_BADR1 VAL rw, 60 7:0 VAL FIFO2 base address byte 1 12.3.
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: Reset: 0x0b0c 0x20 7 6 5 4 AUDIO_IN:DFIFO0_LLEV 3 2 1 0 3 2 1 0 3 2 1 0 3 2 1 0 VAL rw, 32 7:0 VAL FIFO0 interrupt trigger low level byte count 12.3.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.
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: Reset: 0x0b12 0x5b 7 6 AUDIO_IN:DFIFODEC 7:4 SHIFT CIC shift select (0 – 7) 3:0 RATIO CIC down conversion ratio 5 4 rw, 5 rw, 11 AUDIO_IN:DFIFOIRQST - DFIFOx Interrupt Status Address: Reset: 0x0b13 0x00 7 HIGH2M 2 RATIO 12.3.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 2 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. 1 HIGH0A FIFO0 high level interrupt indication 0: No interrupt detected 1: Interrupt detected Cleared by hardware when number of items in FIFO0 is below DFIFO0_HLEV.
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: Reset: 0x0b18 0x0000 7 6 AUDIO_IN:DFIFO1_RPTR[1] 5 4 3 2 RSVD VAL ro, 0 ro, 0 AUDIO_IN:DFIFO1_RPTR[0] 1 0 1 0 1 0 VAL ro, 0 11:0 VAL Read FIFO1 PTR value 12.3.
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: Reset: 0x0b1e 0x0000 7 6 AUDIO_IN:DFIFO2_WPTR[1] 5 4 3 2 RSVD VAL ro, 0 ro, 0 AUDIO_IN:DFIFO2_WPTR[0] 1 0 VAL ro, 0 11:0 VAL Write FIFO2 PTR value 12.3.
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: Reset: 0x0b28 0x0000 7 6 5 4 AUDIO_IN:DFIFO2_NUM[1] 3 2 1 0 3 2 1 0 VAL ro, 0 AUDIO_IN:DFIFO2_NUM[0] VAL ro, 0 15:0 VAL Current number of bytes FIFO2 12.3.
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: Reset: 0x0b31 0x00 7 6 5 4 AUDIO_IN:DFIFO_MAN_DA T1 3 2 1 0 2 1 0 2 1 0 VAL w, 0 7:0 VAL FIFO manual mode data input (byte 1) 12.3.33 AUDIO_IN:DFIFO_MAN_DAT2 - DFIFO Manual Mode Data Address: Reset: 0x0b32 0x00 7 6 5 4 AUDIO_IN:DFIFO_MAN_DA T2 3 VAL w, 0 7:0 VAL FIFO manual mode data input (byte 2) 12.3.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.
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: Reset: 0x0b37 0x00 7 6 5 4 AUDIO_IN:ADC_BIAS 3 2 1 0 3 2 1 0 BIAS rw, 0 7:0 BIAS ADC calibration bias 12.3.
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: Reset: 0x0b41 0x20 7 AUDIO_IN:ALC_VOL_L 7 MODE 6 5 4 3 MODE GAIN rw, 0 rw, 32 2 1 0 2 1 0 2 1 0 Mode selection 0: Select automatic mode 1: Select manual mode 6:0 GAIN [6:0] Minimum gain limit in automatic mode [5:0] Digital gain in manual mode 12.3.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.
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: Reset: 0x0b4d 0x00 7 6 5 4 AUDIO_IN:ALC_VOL_L_R 3 2 1 0 3 2 1 0 3 2 1 0 3 2 1 0 GAIN r, 0 7:0 GAIN Current digital gain/volume in automatic/manual mode of left channel 12.3.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.
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: Reset: 0x0b56 0x00 7 6 AUDIO_IN:ALC_DAT_MASK 3:0 MASK 5 4 3 2 1 0 2 1 0 2 1 0 2 1 0 RSVD MASK rw, 0 rw, 0 Configure the data to be masked for gain changes in automatic mode 12.3.
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: Reset: 0x0b5a 0x06 7 AUDIO_IN:ALC_DEC_MAX 6:0 MASK 6 5 4 3 RSVD MASK rw, 0 rw, 6 2 1 0 2 1 0 2 1 0 2 1 0 PGA maximum gain decrease of a peak tick cycle in automatic mode 12.3.
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: Reset: 0x0b5f 0x00 7 6 5 4 AUDIO_IN:CUR_PGA_GAIN _R 3 2 1 0 2 1 0 1 0 GAIN r, 0 7:0 GAIN PGA right channel current gain in automatic analog mode 12.3.
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: Reset: 0x0b62 0x00 7 AUDIO_IN:PGA_VALUE_L 7 MUTE 6 5 4 3 MUTE VAL r, 0 r, 0 2 1 0 2 1 0 2 1 0 Left channel mute control 0: Channel is not muted 1: Channel is muted 6:0 VAL Current left channel value in manual mode 12.3.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.3.
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. When needed, the audio data from SRAM is interpolated to the SDM/I2S input rate.
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. AUDIO_OUT:CTRL:HPFEN should be set to 1b'1 to enable the HPF in audio output path. AUDIO_OUT:VOL_CTRL controls the volume level.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.5 Audio Output Path Register Reference 12.5.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 12.5.2 AUDIO_OUT:MIDGRP - Middle of GRP 0x0561 0x40 Address: Reset: 7 6 5 4 AUDIO_OUT:MIDGRP 3 2 1 0 3 2 1 0 MGRP rw, 64 7:0 MGRP Middle of GRP 12.5.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.
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 0x0566 0x00c4 Address: Reset: 7 6 5 4 AUDIO_OUT:ASCL_STEP[1] 3 2 1 0 3 2 1 0 BSH rw, 0 AUDIO_OUT:ASCL_STEP[0] BSH rw, 196 15:0 BSH High 16 bits of rate matching block step [19:4] 12.5.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.
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: Reset: 0x056e 0x0000 7 6 AUDIO_OUT:CONST_RIGH T[1] 5 4 3 2 1 0 CCHR rw, 0 AUDIO_OUT:CONST_RIGH T[0] CCHR rw, 0 15:0 CCHR R15UH0002EU0103 Rev.1.03 Apr.21.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 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. 13.1 Input Pin Selection The QDEC supports a two-channel input.
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. To read the real-time counting value, first write QDEC:DATA_LOAD with 1b'1 to load the hardware counter data into the QDEC:COUNT, before the register is read.
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.
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 0x00d0 0x00 Address: Reset: 7 6 5 4 QDEC:COUNT 3 2 2 1 0 1 0 COUNT r, 0 7:0 COUNT Pulse edge number counting value Register will be cleared by reading 13.7.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 13.7.3 QDEC:CHA - QDEC Input Channel A 0x00d2 0x00 Address: Reset: 7 6 QDEC:CHA 2:0 INSEL 5 4 3 2 1 0 RSVD INSEL rw, 0 rw, 0 Input pin select for channel A 0: Select Port A Pin 2 1: Select Port A Pin A 2: Select Port B Pin 6 3: Select Port B Pin 7 4: Select Port C Pin 2 5: Select Port C Pin 3 6: Select Port D Pin 6 7: Select Port D Pin 7 13.7.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 13.7.5 QDEC:RST - QDEC Reset Control 0x00d6 0x00 Address: Reset: 7 6 5 QDEC:RST 0 RST 4 3 2 1 0 RSVD RST 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.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 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 SCTL:APCTRL:ADC should be set as 1b'0.
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 SAR_ADC:TSAMP:CNUML (left channel), SAR_ADC:TSAMP:CNUMR (right channel) or SAR_ADC:TSAMP:CNUMM (Misc channel).
RYZ012 14.1.4.1 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 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. SAR_ADC:CHEN:LEN and SAR_ADC:CHEN:REN and SAR_ADC:CHEN:MEN should be set as 1b'1 to enable the corresponding channels. The max state index should be set as "6" by setting SAR_ADC:CHEN:SCNT.
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 0x00e7 0x00 Address: Reset: 7 SAR_ADC:VREF_CTRL 5:4 VREFM 6 5 4 3 2 1 0 RSVD VREFM VREFR VREFL rw, 0 rw, 0 rw, 0 rw, 0 VREF Misc channel selection 00: Select VREF = 0.6V 01: Select VREF = 0.9V 10: Select VREF = 1.2V 11: Not used 3:2 VREFR VREF right channel selection 00: Select VREF = 0.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 14.2.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 14.2.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 14.2.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 14.2.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 14.2.
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 0x00f4 0x03 Address: Reset: 7 6 SAR_ADC:CLKDIV 2:0 ADCDIV 5 4 3 2 1 0 RSVD ADCDIV rw, 0 rw, 3 Set ADC clock divider (derive from external 24M crystal) FADC = 24M / ( ADCDIV + 1 ) 14.2.
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.
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.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 3:2 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 11: Select no input 1:0 INLP Left channel positive input source selection Gate off all input with pga_pd_l 00: Select Port C Pin 0 as input 01: Select no input 10: Select no input 11: Select no input R15UH0002EU0103 Rev.1.03 Apr.21.
RYZ012 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. The temperature sensor embeds two diodes.
RYZ012 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. By comparing the input voltage multiplied by selected scaling coefficient with reference input voltage, the low power comparator outputs high or low level accordingly. Figure 35.
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 and 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.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 17.6.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 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 128bit plaintext through decryption. The AES hardware accelerator provides automatic encryption and decryption.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 18.4 Register Reference 18.4.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.
RYZ012 7:0, 15:8, 23:16, 31:24, 39:32, 47:40, 55:48, 63:56, 71:64, 79:72, 87:80, 95:88, 103:96, 111:104, 119:112, 127:120 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 KEYx R15UH0002EU0103 Rev.1.03 Apr.21.
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 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.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 19.2.1 Packet Format Packet format in standard 1Mbps Bluetooth LE mode is shown as Table 16: Table 16. Packet Format in Standard 1Mbps Bluetooth LE Mode LSB Preamble (1 octet) Access Address (4 octets) PDU (2–257 octets) CRC (3 octets) MSB CRC (3 octets) MSB Packet length 80bit–2120bit (80–2120µs at 1Mbps). Packet format in standard 2Mbps Bluetooth Low Energy mode is shown as Table 17: Table 17.
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. Functional operation of the BLW8252 at absolute maximum ratings is not implied. Exposure to absolute maximum rating conditions can affect device reliability. Table 21.
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 IRx RX current Whole chip 5.3 mA ITx TX current Whole chip at 0dBm with DCDC 4.8 mA IDeep1 Deep sleep with 8kB SRAM retention 1 3.1 uA Deep sleep with 16kB SRAM retention 1.2 3.3 uA Deep sleep with 32kB SRAM retention 1.4 3.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Table 25.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 TX Performance Output Power, Maximum Setting 10 Output Power, Minimum Setting -45 Programmable Output Power Range 12 dBm dBm 55 dB Modulation 20dB Bandwidth 2.5 MHz [b] For actual sensitivity level of Bluetooth LE 2Mbps mode, see Bluetooth 5 specification. Table 27.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Table 28.
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 Rx 250kbps performance[e] Typical Maximum Units (±500kHz Deviation) Sensitivity -99.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 ADC DNL Differential Nonlinearity 10-bit resolution mode 1 LSB INL Integral Nonlinearity 10-bit resolution mode 2 LSB SINAD Signal-to-Noise and Distortion Ratio Fin = 1kHz, fS = 16kHz ENOB Effective Number of Bits 10.5 bits FS Sampling Frequency 200 ksps 70 dB 20.4 SPI Characteristics Table 30. SPI Characteristics (over process, voltage 1.9–3.
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.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 21. Integration Instructions 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.
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 3.3 mm 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. ground plane). Ensure the antenna connection trace is 50Ohms matched to achieve proper antenna performance.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Figure 38 RYZ012B1 Layout Guideline Keep-out area No copper or metallic objects here Antenna connector 50Ω trace Host PCB c b a RYZ012B1 d R15UH0002EU0103 Rev.1.03 Apr.21.21 e b Dimension [mm] a 0.65 b 0.75 c 0.25 d 0.8 e 1.
RYZ012 21.3.2.1 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Antenna Trace Design The antanna trace connecting the modules RF pad with the antenna connector must be designed to have 50 Ohms impedance. The impedance of the trace depends on different parameters such as the dielectric constant, trace width and height and distances to ground planes. The integrator should use a calculator such as AWR TXLine to compute the exact geometry of the antenna trace.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 Important Notice: If the antenna is not fixed to the device, the antenna connector must be unique (non-standard). One type of antenna connector that fulfils this requirement is the Reverse SMA connector. 21.4.2.2 RED (Europe) Any design should undergo radiated RF measurements, regardless of the antenna being used (including the original antenna noted in section 21.4.2).
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 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.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 22. Regulatory Information 22.1 FCC Statement This device complies with part 15 of the FCC rules. Operation is subject to the following two conditions: 1. This device may not cause harmful interference. 2. This device must accept any interference received, including interference that may cause undesired operation.
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. Max D 11.85 12.00 12.15 E 11.85 12.00 12.15 b 0.7 0.8 0.9 0.9 1.00 b2 L 0.96 1.1 e 1.4 c 0.75 c1 2.5 c2 4.6 c3 1.1 H 2.16 2.31 2.46 t 0.71 0.81 0.91 R15UH0002EU0103 Rev.1.03 Apr.21.
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.
RYZ012 Multi-Standard Wireless Communication Module for Bluetooth 5 Low Energy and 802.15.4 25. Ordering Information Orderable Part Number Package MSL Rating Shipping Packaging Ambient Temperature RYZ012A100FZ00#HD0 Bluetooth Low Energy Module with internal antenna 3 Tape&Reel -40°C to +85°C RYZ012B100FZ00#HD0 Bluetooth Low Energy Module needing external antenna 3 Tape&Reel -40°C to +85°C RYZ012A100FZ00#BD0 Module with internal antenna 3 Tray -40°C to +85°C 26.