SONIX reserves the right to make change without further notice to any products herein to improve reliability, function or design. SONIX does not
assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under its patent
rights nor the rights of others. SONIX products are not designed, intended, or authorized for us as components in systems intended, for surgical
implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the SONIX product
could create a situation where personal injury or death may occur. Should Buyer purchase or use SONIX products for any such unintended or
unauthorized application. Buyer shall indemnify and hold SONIX and its officers, employees, subsidiaries, affiliates and distributors harmless against
all claims, cost, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death
associated with such unintended or unauthorized use even if such claim alleges that SONIX was negligent regarding the design or manufacture of
Page 1
SONIX products are not designed, intended, or authorized for us as components in systems intended, for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the SONIX product could create a situation where personal injury or death may occur.
Page 5
GPIO Port n Bits Clear Operation register (GPIOn_BCLR) (n=0,1,2,3) ....... 71 5.3.12 GPIO Port n Open-Drain Control register (GPIOn_ODCTRL) (n=0,1,2,3) ......71 16-BIT TIMER WITH CAPTURE FUNCTION ................74 OVERVIEW ............................. 74 FEATURES ............................74 Version 1.9 SONiX TECHNOLOGY CO., LTD Page 5...
Page 6
CT32Bn External Match register (CT32Bn_EM) (n=0,1) ............90 7.7.11 CT32Bn PWM Control register (CT32Bn_PWMCTRL) (n=0,1) ..........90 7.7.12 CT32Bn Timer Raw Interrupt Status register (CT32Bn_RIS) (n=0,1) ........91 7.7.13 CT32Bn Timer Interrupt Clear register (CT32Bn_IC) (n=0,1) ..........91 Version 1.9 SONiX TECHNOLOGY CO., LTD Page 6...
Page 18
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 Note: The pins which are not pin-out shall be set correctly to decrease power consumption in low- power modes. Strongly recommended to set these pins as input pull-up. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 18...
Page 19
13 14 15 16 17 18 19 20 21 22 23 24 Note: The pins which are not pin-out shall be set correctly to decrease power consumption in low- power modes. Strongly recommended to set these pins as input pull-up. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 19...
P0.7 — General purpose digital input/output pin with high-current sink driver. P0.7/MOSI0 MOSI0 — Master Out Slave In for SSP0. P0.8 — General purpose digital input/output pin. P0.8/SCK1 SCK1 — Serial clock for SSP1. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 20...
Page 21
P1.7 — General purpose digital input/output pin. P1.7/MIC_P MIC_P — Sigma-delta ADC MIC difference input (+). P1.8 — General purpose digital input/output pin. P1.8/MIC_N MIC_N — Sigma-delta ADC MIC difference input (-). Version 1.9 SONiX TECHNOLOGY CO., LTD Page 21...
Page 22
P2.7/CM7 CM7 — Comparator channel 7. P2.8 — General purpose digital input/output pin. P2.8/CM8 CM8 — Comparator channel 8. P2.9 — General purpose digital input/output pin. P2.9/CM9 CM9 — Comparator channel 9. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 22...
Page 23
CT32B0_PWM1 — PWM output 1 for CT32B0. P3.7 — General purpose digital input/output pin. P3.7/CM23/ CM23 — Comparator channel 23. CT32B1_PWM1 CT32B1_PWM1 — PWM output 1 for CT32B1. P3.8 — General purpose digital input/output pin. P3.8/CMO Version 1.9 SONiX TECHNOLOGY CO., LTD Page 23...
Page 24
CT32B0_CAP0 — Capture input 0 for CT32B0. P3.15 — General purpose digital input/output pin with high-current sink driver. P3.15/SDA1/ SDA1 — I2C data input/output. CT32B1_CAP0 CT32B1_CAP0 — Capture input 0 for CT32B1. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 24...
GPIOn_CFG GPIOPn_MODE Output Bus Output Latch Specific Output Bus *. Specific Output Function Control Bit Specific Input Function Control Bit *. Some specific functions switch I/O direction directly, not through GPIOn_MODE register. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 25...
Page 26
I/O Input Bus GPIOn_CFG GPIOPn_MODE Output I/O Output Bus Latch Analog IP Output Terminal *. Specific Output Function Control Bit *. Some specific functions switch I/O direction directly, not through GPIOn_MODE register. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 26...
When the counter transitions to zero, the COUNTFLAG status bit is set to 1. The COUNTFLAG bit clears on reads. Note: When the processor is halted for debugging the counter does not decrease. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 28...
RELOAD = (system tick clock frequency × 10 ms) −1 = (50 MHz × 10 ms) −1 = 0x0007A11F. Name Description Attribute Reset 31:24 Reserved Value to load into the SYST_CVR when the counter is enabled and when 23:0 RELOAD 0x5F7F9B it reaches 0. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 29...
1: TENMS value is inexact, or not given. 29:24 Reserved Reload value for 10ms timing, subject to system clock skew errors. If the 23:0 TENMS 0xA71FF value reads as zero, the calibration value is not known. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 30...
The ICPR removes the pending state from interrupts, and shows the interrupts that are pending. Note: Writing 1 to an ICPR bit does not affect the active state of the corresponding interrupt. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 32...
1: Requests a system level reset. Reserved for debug use. This bit read as 0. When writing to the register VECTCLRACTIVE you must write 0 to this bit, otherwise behavior is Unpredictable. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 33...
Page 34
SN32F100 Series 32-Bit Cortex-M0 Micro-Controller Reserved Version 1.9 SONiX TECHNOLOGY CO., LTD Page 34...
These registers are mutually exclusive bit fields in the 32-bit PSR. The PRIMASK register prevents activation of all exceptions with configurable priority. PRIMASK CONTROL The CONTROL register controls the stack used when the processor is in Thread mode. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 36...
System initialization: All system registers is set as initial conditions and system is ready. Oscillator warm up: Oscillator operation is successfully and supply to system clock. Program executing: Power on sequence is finished and program executes from Boot loader. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 37...
The power source of DC application is usually using battery. When low battery condition and MCU drive any loading, the power drops and keeps in dead-band. Under the situation, the power won’t drop deeper and not touch the system reset voltage. That makes the system under dead-band. AC application: Version 1.9 SONiX TECHNOLOGY CO., LTD Page 38...
External reset circuit. (Zener diode reset circuit, Voltage bias reset circuit, External reset IC) Note: The “Zener diode reset circuit”, “Voltage bias reset circuit” and “External reset IC” can completely improve the brown out reset, DC low battery and AC slow power down conditions. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 39...
Delay Time The LVD (low voltage detector) is built-in SONiX 32-bit MCU to be brown out reset protection. When the VDD drops and is below LVD detect voltage, the LVD asserts an interrupt signal to the NVIC. This signal can be enabled for interrupt in the Interrupt Enable Register in the NVIC in order to cause a CPU interrupt;...
The reset circuit has a simply protection against unusual power. The diode offers a power positive path to conduct higher power to VDD. It is can make reset pin voltage level to synchronize with VDD voltage. The structure can improve slight brown out reset condition. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 41...
VDD voltage level is above or equal to “0.7V x (R1 + R2) / R1”, the C terminal of the PNP transistor outputs high voltage and MCU operates normally. When VDD is below “0.7V x (R1 + R2) / R1”, the C terminal of the PNP transistor Version 1.9 SONiX TECHNOLOGY CO., LTD Page 42...
The internal reset is deasserted and the MCU loads from memory the initial stack pointer, the initial program counter, and the first instruction designated by the program counter, and then begins execution. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 43...
RC type oscillator circuit. The frequency is affected by the voltage and temperature of the system. In common condition, the frequency of the RC oscillator is about 16 KHz. Note: The ILRC can ONLY be switched on and off by HW. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 44...
Crystal devices are driven by LXIN, LXOUT pins. The 32768 crystal and 10pF capacitor must be as near as possible to MCU. The ELS crystal is switched on and off using the ELSEN bit in Analog Block Control register (SYS0_ANBCTRL). Version 1.9 SONiX TECHNOLOGY CO., LTD Page 47...
The 1 to 25 MHz EHS X’TAL has the advantage of producing a very accurate rate External X’TAL on the main clock (EHS/ELS X’TAL) ELS X’TAL must have a frequency of 32.768 KHz. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 48...
One of 6 clock signals can be selected as clock output: HCLK IHRC ILRC PLL clock output ELS X’TAL EHS X’TAL AUEHS X’TAL The selection is controlled by the CLKOUTSEL bits in SYS1_AHBCLKEN register. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 49...
Note: PLLEN bit can NOT be cleared if the PLL is selected as system clock or is selected to become the system clock. Name Description Attribute Reset 31:16 Reserved PLL enable PLLEN 0: Disable 1: Enable Reserved Version 1.9 SONiX TECHNOLOGY CO., LTD Page 50...
The LVD control register selects four separate threshold values for generating a LVD interrupt to the NVIC or LVD reset. Name Description Attribute Reset 31:16 Reserved LVD enable LVDEN 0: Disable 1: Enable LVD Reset enable LVDRSTEN 0: Disable 1: Enable Version 1.9 SONiX TECHNOLOGY CO., LTD Page 53...
Page 54
11: The interrupt assertion threshold voltage is 3.00V Reserved LVD reset level LVDRSTLVL[1:0] 00: The reset assertion threshold voltage is 2.00V 01: The reset assertion threshold voltage is 2.40V 10: The reset assertion threshold voltage is 2.70V 11: Reserved Version 1.9 SONiX TECHNOLOGY CO., LTD Page 54...
0: No effect 1: Reset Codec DAC WDT reset WDTRST 0: No effect 1: Reset WDT RTC reset RTCRST 0: No effect 1: Reset RTC I2S reset I2SRST 0: No effect 1: Reset I2S Version 1.9 SONiX TECHNOLOGY CO., LTD Page 59...
Page 60
0: No effect 1: Reset GPIO port 2 GPIO port 1 reset GPIOP1RST 0: No effect 1: Reset GPIO port 1 GPIO port 0 reset GPIOP0RST 0: No effect 1: Reset GPIO port 0 Version 1.9 SONiX TECHNOLOGY CO., LTD Page 60...
Sleep mode eliminates dynamic power used by the processor itself, memory systems and related controllers, and internal buses. The power state of the analog blocks (IHRC, EHS X’TAL, ELS X’TAL, PLL, Flash, LVD, Codec, Comparator) is Version 1.9 SONiX TECHNOLOGY CO., LTD Page 61...
Wakes up the chip from Deep power-down mode by pulling the DPDWAKEUP pin LOW (Turn on the on-chip voltage regulator. When the core voltage reaches the power-on-reset (POR) trip point, a system reset will be triggered and the chip re-boots). The RESET pin has no functionality in Deep power-down mode. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 62...
Sleep mode, MCU waits for 2048 external high-speed oscillator clocks and 32 internal high-speed oscillator clocks as the wakeup time to stable the oscillator circuit. After the wakeup time, the system goes into the normal mode. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 63...
Deep sleep mode enable DSLEEPEN 0: Disable. 1: Enable. WFI instruction will make MCU enter Deep-sleep mode. Deep power-down mode enable DPDEN 0: Disable. 1: Enable. WFI instruction will make MCU enter Deep power-down mode. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 66...
Note: HW will switch P1.7 and P1.8 to Microphone differential input if SEL_MIC=1 in ADC_SET23 register. Setting SEL_MIC=0 before P1.7 and P1.8 as GPIO function. Note: P0.14 is the input pin only, please don’t set it to the output function in GPIO0_MODE register. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 67...
Name Description Attribute Reset 31:16 Reserved Selects interrupt on pin x to be enabled (x = 0 to 15). 15:0 IE[15:0] 0: Disable Interrupt on Pn.x 1: Enable Interrupt on Pn.x Version 1.9 SONiX TECHNOLOGY CO., LTD Page 70...
5.3.12 GPIO Port n Open-Drain Control register (GPIOn_ODCTRL) (n=0,1,2,3) Address offset: 0x2C Several I/Os have built-in open-drain function and must be set as output mode when enable open-drain function. Open-drain external circuit is as following. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 71...
Page 72
1: Enable. HW set P0.2 as output mode automatically. n=1~3 Reserved n = 0 Pn1OC P0.1 open-drain control bit. 0: Disable 1: Enable. HW set P0.1 as output mode automatically. n=1~3 Reserved Version 1.9 SONiX TECHNOLOGY CO., LTD Page 72...
Page 73
SN32F100 Series 32-Bit Cortex-M0 Micro-Controller n = 0 Pn0OC P0.0 open-drain control bit. 0: Disable 1: Enable. HW set P0.0 as output mode automatically. n=1~3 Reserved Version 1.9 SONiX TECHNOLOGY CO., LTD Page 73...
– Toggle on match. – Do nothing on match. PIN DESCRIPTION Pin Name Type Description GPIO Configuration CT16Bn_CAP0 Capture channel input 0 Depends on GPIOn_CFG CT16Bn_PWMx Output channel x of Match/PWM output. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 74...
6. After the timer reaches the match value, the CEN bit in CT16Bn_TMRCTRL register is cleared, and the interrupt indicating that a match occurred is generated. PCLK CT16Bn_PC CT16Bn_TC CEN bit Interrupt Version 1.9 SONiX TECHNOLOGY CO., LTD Page 76...
PWM cycle length. For this register, set the MRnR bit to one to enable the timer reset when the timer value matches the value of the corresponding match register. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 77...
Register, the Timer Counter is incremented, and the Prescale Counter is reset on the next PCLK. This causes the TC to increment on every PCLK when PR = 0, every 2 PCLKs when PR = 1, etc. Name Description Attribute Reset Version 1.9 SONiX TECHNOLOGY CO., LTD Page 78...
PWM output is set to HIGH. The timer is reset by the match register that is configured to set the PWM cycle length. When the timer is reset to zero, all currently HIGH match outputs configured as PWM outputs are cleared. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 81...
0: No effect MR3IC 1: Clear MR3IF bit 0: No effect MR2IC 1: Clear MR2IF bit 0: No effect MR1IC 1: Clear MR1IF bit 0: No effect MR0IC 1: Clear MR0IF bit Version 1.9 SONiX TECHNOLOGY CO., LTD Page 82...
– Toggle on match. – Do nothing on match. 7.3 PIN DESCRIPTION Pin Name Type Description GPIO Configuration CT32Bn_CAP0 Capture channel input 0 Depends on GPIOn_CFG CT32Bn_PWMx Output channel x of Match/PWM output. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 83...
6. In the next clock after the timer reaches the match value, the CEN bit in CT32Bn_TMRCTRL register is cleared, and the interrupt indicating that a match occurred is generated. PCLK CT32Bn_PC CT32Bn_TC CEN bit Interrupt Version 1.9 SONiX TECHNOLOGY CO., LTD Page 85...
PWM cycle length. For this register, set the MRnR bit to one to enable the timer reset when the timer value matches the value of the corresponding match register. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 86...
Register, the Timer Counter is incremented, and the Prescale Counter is reset on the next PCLK. This causes the TC to increment on every PCLK when PR = 0, every 2 PCLKs when PR = 1, etc. Name Description Attribute Reset 31:0 PC[31:0] Prescale Counter Version 1.9 SONiX TECHNOLOGY CO., LTD Page 87...
Stop MR2: TC and PC will stop and CEN bit will be cleared if MR2 MR2STOP matches TC. 0: Disable 1: Enable Enable reset TC when MR2 matches TC. MR2RST 0: Disable 1: Enable Version 1.9 SONiX TECHNOLOGY CO., LTD Page 88...
1: Enable a sequence of 1 then 0 on CT32Bn_CAP0 signal will cause CAP0 to be loaded with the contents of TC. 2: Enable a sequence of 1 then 0 on CT32Bn_CAP0 signal will reset the 3: Reserved. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 89...
PWM cycle length. When the timer is reset to zero, all currently HIGH match outputs configured as PWM outputs are cleared. Name Description Attribute Reset 31:22 Reserved CT32Bn_PWM1/GPIO selection bit PWM1IOEN Version 1.9 SONiX TECHNOLOGY CO., LTD Page 90...
0: No effect MR3IC 1: Clear MR3IF bit 0: No effect MR2IC 1: Clear MR2IF bit 0: No effect MR1IC 1: Clear MR1IF bit 0: No effect MR0IC 1: Clear MR0IF bit Version 1.9 SONiX TECHNOLOGY CO., LTD Page 91...
The clock to the watchdog register block can be disabled in AHB Clock Enable register (SYS1_AHBCLKEN) register for power savings. Watchdog reset or interrupt will occur any time the watchdog is running and has an operating clock source. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 92...
Name Description Attribute Reset Watchdog register key. 31:16 WDKEY Read as 0. When writing to the register you must write 0x5AFA to WDKEY, otherwise behavior of writing to the register is ignored. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 94...
WDKEY, otherwise behavior of writing to the register is ignored. Feed value (Read as 0x0) 15:0 FV[15:0] 0x55AA: The watchdog is fed, and the WDT_TC value is reloaded in the watchdog counter. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 95...
The RTC Overflow interrupt flag (OVFIF) is asserted on the last RTC Core clock cycle before the counter reaches 0x0. The RTC Alarm interrupt flag (ALMIF) are asserted on the last RTC Core clock cycle before the counter reaches the RTC Alarm counter reload value stored in the Alarm register. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 96...
The following figure shows the RTC waveform when it is configured with RTC_SECCNTV=3, RTC_ALMCNTV=0x1000. …… RTC_PCLK …… RTC_SECCNT Cleared by SW …… RTC_SECIF …… RTC_ALMCNT 0x9FF 0x1000 0x1001 …… RTC_ALMIF RTC_PCLK RTC_SECCNT RTC_ALMCNT 0xFFFFFFFD 0xFFFFFFFE 0xFFFFFFFF Cleared by SW RTC_OVFIF Version 1.9 SONiX TECHNOLOGY CO., LTD Page 97...
OVFIF This bit is set by HW when ALM_CNT overflows (ALM_CNT counts from 0xFFFFFFFF to 0x0). An interrupt is generated if OVFIE=1. 0: Overflow not detected 1: 32-bit programmable counter overflow occurred. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 99...
Attribute Reset 31:0 ALMCNTV[31:0] 0xFFFFFFFF RTC alarm counter reload value. Update this register will reset ALMCNT. The zero value is not recommended, and will be replaced with default value (0xFFFFFFFF) by HW. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 100...
SN32F100 Series 32-Bit Cortex-M0 Micro-Controller 9.5.9 RTC Alarm Count register (RTC_ALMCNT) Address offset: 0x20 Name Description Attribute Reset RTC alarm counter 31:0 ALMCNT[31:0] The current value of the RTC alarm counter. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 101...
Maximum SPI speed of 25 Mbps (master) or 6 Mbps (slave) in SSP mode. Data transfer format is from MSB or LSB controlled by register. The start phase of data sampling location selection is 1 -phase or 2 -phase controlled register. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 102...
SSP Slave Select (Slave) Depends on GPIOn_CFG MISOn Master In Slave Out (Master) Depends on GPIOn_CFG Master In Slave Out (Slave) Master Out Slave In (Master) MOSIn Master Out Slave In (Slave) Depends on GPIOn_CFG Version 1.9 SONiX TECHNOLOGY CO., LTD Page 103...
The SPI data transfer timing as following figure: MLSB CPOL CPHA Idle Diagrams Status bit1 High bit1 bit1 Next data High bit1 Next data bit1 High bit1 bit1 Next data High bit1 Next data Version 1.9 SONiX TECHNOLOGY CO., LTD Page 104...
SCK. The received data is transferred from the serial shifter to the receive FIFO on the first rising edge of SCK after the LSB has been latched. 10.4.3 COMMUNICATION FLOW 10.4.3.1 SINGLE-FRAME CPOL=0 CPHA=1 CPOL=1 CPHA=0 CPOL=1 CPHA=1 CPOL=0 CPHA=0 DATA DATA DATA Version 1.9 SONiX TECHNOLOGY CO., LTD Page 105...
Auto-SEL function is enabled, hardware controls the SEL output, and the actual value of SEL will be copied in the SELCTRL Control bit of the SPI. As long as Auto-SEL is enabled, the value of the SELCTRL Control bit is read-only for software. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 106...
Slave data output disable bit (ONLY used in slave mode) SDODIS 0: Enable slave data output. 1: Disable slave data output. (MISO=0) Loop back mode enable LOOPBACK 0: Disable 1: Data input from data output Version 1.9 SONiX TECHNOLOGY CO., LTD Page 107...
0: TX FIFO is NOT full. 1: TX FIFO is full. TX FIFO empty flag TX_EMPTY 0: TX FIFO is NOT empty. In Master mode, the transmitter will begin to transmit automatically. 1: TX FIFO is empty. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 108...
10.6.9 SSP n Data Fetch register (SSPn_DF) (n=0, 1) Address Offset: 0x20 Name Description Attribute Reset 31:1 Reserved SSP data fetch control bit 0: Disable 1: Enable when SCKn frequency > 6MHz Version 1.9 SONiX TECHNOLOGY CO., LTD Page 110...
Serial clock synchronization allows devices with different bit rates to communicate via one serial bus. Serial clock synchronization is used as a handshake mechanism to suspend and resume serial transfer. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 111...
I2C Serial clock Output with Open-drain Input depends on GPIOn_CFG SDAn I2C Serial data Output with Open-drain Input depends on GPIOn_CFG 11.4 WAVE CHARACTERISTICS Data Data START STOP Change Change Signal Signal Allowed Allowed Version 1.9 SONiX TECHNOLOGY CO., LTD Page 112...
“not acknowledge” to the bus. Arbitration is lost when another device on the bus pulls this signal low. Since this can occur only at the end of a serial byte, the I2C block generates no further clock pulses. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 113...
The address in the Slave Address register has been received. The General Call address has been received while the General Call bit (GC) in the ADR register is set. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 116...
1: MASTER modea STOP condition was issued. SLAVE modea STOP condition was received. NACK done status NACK_STAT 0 : Not received a NACK 1 : Received a NACK ACK done status ACK_STAT 0 : Not received an ACK Version 1.9 SONiX TECHNOLOGY CO., LTD Page 117...
ADD[9:0] is valid when ADD_MODE = 1 ADD[7:1] is valid when ADD_MODE = 0 11.8.7 I2C n SCL High Time register (I2Cn_SCLHT) (n=0,1) Address Offset: 0x20 Note: I2C Bit Frequency = I2Cn_PCLK / (I2Cn_SCLHT+I2Cn_SCLLT) Version 1.9 SONiX TECHNOLOGY CO., LTD Page 118...
0: SCL output will be forced high. 1: I2C module may act as a slave peripheral just like in normal operation, the I2C holds the clock line low until it has had time to respond to an I2C Version 1.9 SONiX TECHNOLOGY CO., LTD Page 119...
● OVER8=0: Oversampling by 16 to increase the tolerance of the receiver to clock deviations. In this case, the maximum speed is limited to maximum UARTn_PCLK/16 Sampled values 12 13 15 16 Sampling Clock 6 / 16 7 / 16 7 / 16 1-BIT TIME Version 1.9 SONiX TECHNOLOGY CO., LTD Page 123...
(ABTOIE bit in UARTn_IE register is set and the auto-baud has completed successfully). The auto-baud interrupts have to be cleared by setting the corresponding ABTOINTCLR and ABEOIE bits in Version 1.9 SONiX TECHNOLOGY CO., LTD Page 124...
12.7.4 UART n Divisor Latch MSB register (UARTn_DLM) (n=0,1) Address Offset: 0x04 Name Description Attribute Reset 31:8 Reserved The UART Divisor Latch MSB Register, along with the DLL register, DLM[7:0] determines the baud rate of the UART. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 127...
1: Auto-baud has finished successfully and interrupt is enabled. FIFOEN Equivalent to FIFOEN bit in UARTn_FIFOCTRL register. Reserved INTID[2:0] Interrupt identification which identifies an interrupt corresponding to the UARTn RX FIFO. 0x3: 1 - Receive Line Status (RLS). Version 1.9 SONiX TECHNOLOGY CO., LTD Page 128...
Page 129
3.5 to 4.5 character times. Read UARTn_II register THRE 0010 THRE (if source of interrupt) or Write THR register Read UARTn_II register (if source of interrupt) or TEMT 1110 TEMT Write THR register Version 1.9 SONiX TECHNOLOGY CO., LTD Page 129...
Word Length Select bits WLS[1:0] 00: 5-bit character length. 01: 6-bit character length. 10: 7-bit character length. 11: 8-bit character length. 12.7.9 UART n Line Status register (UARTn_LS) (n=0,1) Address Offset: 0x14 Version 1.9 SONiX TECHNOLOGY CO., LTD Page 130...
Page 131
FIFO will not be overwritten and the character in the UARTn_RS register will be lost. 0: Overrun error status is inactive. 1: Overrun error status is active. Receiver Data Ready flag RDR=1 when the UARTn_RB FIFO holds an unread character and is Version 1.9 SONiX TECHNOLOGY CO., LTD Page 131...
Note: If the fractional divider is active (DIVADDVAL>0) and UARTn_DLM=0, the value of the UARTn_DLL register must ≥ 3. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 132...
The behavior of the UART is unpredictable when data is presented for reception while data is being transmitted. For this reason, the value of the HDEN register should not be modified while sending or receiving data, or data may be lost or corrupted. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 133...
Page 134
SN32F100 Series 32-Bit Cortex-M0 Micro-Controller Name Description Attribute Reset 31:1 Reserved Half-duplex mode enable bit HDEN 0: Disable 1: Enable Version 1.9 SONiX TECHNOLOGY CO., LTD Page 134...
◇ THD+N: -75dB (+0dBr). Differential microphone interface. ◇ Programmable gain amplifier (PGA) -12dB~+33dB. ◇ MIC boost gain 0,+12,+20,+30dB. ◇ Auto Gain Control (AGC). Common mode output interface. ◇ Mute on/off. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 135...
Channel Length > Data Length: BCLK Channel length Channel length Left Right Data length BCLK Channel length Channel length Left Left Right Justified Data length BCLK Channel length Channel length Right Left Right Justified Data length Version 1.9 SONiX TECHNOLOGY CO., LTD Page 140...
Page 141
SN32F100 Series 32-Bit Cortex-M0 Micro-Controller Channel Length = Data Length BCLK BCLK Left Justified BCLK Right Justified Version 1.9 SONiX TECHNOLOGY CO., LTD Page 141...
32 bit 13.5.2.2 STEREO 8bit RIGHT +1 LEFT +1 RIGHT LEFT RIGHT +3 LEFT +3 RIGHT +2 LEFT +2 16bit RIGHT LEFT RIGHT +1 LEFT+1 24 bit LEFT RIGHT 32 bit LEFT RIGHT Version 1.9 SONiX TECHNOLOGY CO., LTD Page 142...
1: Reset TX FIFO (TXFIFOLV bit becomes 0, TXFIFOEMPTY bit becomes 1, Data in TX FIFO will be cleared). This bit returns “0” automatically Receiver enable bit RXEN 0: Disable 1: Enable Transmit enable bit TXEN Version 1.9 SONiX TECHNOLOGY CO., LTD Page 143...
Base Address: 0x4006 4000 Note: Codec ADC Registers are available only when codec mode is selected by I2SMOD=1. 13.7.1 ADC Setting 1 register (ADC_SET1) Address Offset: 0x540 Name Description Attribute Reset Version 1.9 SONiX TECHNOLOGY CO., LTD Page 146...
13.7.12 ADC Setting 12 register (ADC_SET12) Address Offset: 0x5F0 Name Description Attribute Reset 31:4 Reserved AGC Control. SAT_TH 0x03 Threshold for ADC saturation condition. The saturation condition is for sigma-delta ADC, if there are more than Version 1.9 SONiX TECHNOLOGY CO., LTD Page 148...
Boost setting value at mute mode when AGC is enabled. 00: +0dB 01: +12dB 10: +20dB 11: +30dB AGC Control. PGA_MUTE_VAL 0x10 PGA setting value at mute mode when AGC is enabled. 00000: Mute Version 1.9 SONiX TECHNOLOGY CO., LTD Page 150...
Comparator Positive Signal (Vp) Comparator Negative Signal (Vn) Comparator Output Signal (CMPOUT) Comparator Output Signal After De-bounce Trigger to De-bounce De-bounce End De-bounce End Trigger to De-bounce De-bounce Time De-bounce Time Version 1.9 SONiX TECHNOLOGY CO., LTD Page 156...
This register controls whether the interrupt condition in the Comparator controller is enabled. Name Description Attribute Reset 31:1 Reserved Comparator edge trigger interrupt enable. (Comparator interrupt trigger CMPGIE direction refer to CMPG) 0: Disable 1: Enable Version 1.9 SONiX TECHNOLOGY CO., LTD Page 158...
The SN32F100 series MCU integrated device feature in-system programmable (ISP) FLASH memory for convenient, upgradeable code storage. The FLASH memory may be programmed via the SONiX 32-bit MCU programming interface or by application code for maximum flexibility. The SN32F100 series MCU provides security options at the disposal of the designer to prevent unauthorized access to information stored in FLASH memory.
15.7 EMBEDDED BOOT LOADER The embedded boot loader is used to reprogram the Flash memory using the UART0 serial interface. This program is located in the Boot ROM and is programmed by SONiX during production. Version 1.9 SONiX TECHNOLOGY CO., LTD...
1. Mass erase the User ROM first. User shall NOT execute this operation in debug mode, since the SWD communication may fail during the mass erase procedure. 2. Update security level. includes: - New option byte programming includes: - Option byte erase - Mass Erase Version 1.9 SONiX TECHNOLOGY CO., LTD Page 162...
The read protection is activated by setting the Code Security bytes in Code option. When the Flash memory read protection is changed from protected to unprotected, a Mass Erase of the User ROM is performed by HW before reprogramming the read protection option. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 163...
15.10.3 Flash Data register (FLASH_DATA) Address offset: 0x0C For Page Program operations, this should be updated by SW to indicate the data to be programmed. Name Description Attribute Reset 31:0 DATA[31:0] Data to be programmed. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 164...
Note: Write access to this register is blocked when the BUSY bit in the FLASH_STATUS register is set. Name Description Attribute Reset Flash Address 31:0 FAR[31:0] Choose the Flash address to erase when Page Erase is selected, or to program when Page Program is selected. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 165...
FW any more. SONiX provide Boot loader to check the status of P0.2 (BOOT pin) during boot procedure. If P0.2 is Low during Boot procedure, MCU will execute code in Boot loader instead of User code, so SWD function is not disabled.
To avoid any uncontrolled IO levels, the device embeds internal pull-up and pull-down resistor on the SWD input pins: NJTRST: Internal pull-up SWDIO/JTMS: Internal pull-up SWCLK/JTCK: Internal pull-down Once a SWD function is disabled by SW, the GPIO controller takes control again. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 167...
SN32F100 Series 32-Bit Cortex-M0 Micro-Controller DEVELOPMENT TOOL SONIX provides an Embedded ICE emulator system to offer SN32F100 series MCU firmware development. SN32F100 Embedded ICE Emulator System includes: SN32F100 Starter-Kit. SN-LINK-V2 USB cable to provide communications between the SN-LINK-V2 and PC.
32-Bit Cortex-M0 Micro-Controller 17.1 SN-LINK-V2 SN-LINK-V2 is a high speed emulator for SONiX 32-bit MCU. It debugs and programs based on SWD protocol. In addition to debugger functions, the SN-LINK-V2 also may be used as a programmer to load firmware from PC to MCU for engineering production, even mass production.
It is a simple platform to develop application as target board not ready. The starter-kit can be replaced by target board because of SN32F100 series MCU integrates SWD debugger circuitry. 17.2.1 SN32F100 Start Kit V1.0 Version 1.9 SONiX TECHNOLOGY CO., LTD Page 170...
U4: SN32F109F real chip. D9: Power LED. RESET button: External reset trigger source. WAKEUP button: Trigger source to wake up from deep power-down mode. Y1: External high-speed X’tal Version 1.9 SONiX TECHNOLOGY CO., LTD Page 172...
Supply voltage (Vdd)…………………………………………………………………………………………………………………….……………… - 0.3V ~ 3.6V Input in voltage (Vin)…………………………………………………………………………………………………………………….… Vss – 0.2V ~ Vdd + 0.2V Operating ambient temperature (Topr) SN32F107, SN32F108, SN32F109 …………...……………………………..……...…………. ………………… -40C ~ + 85C Storage ambient temperature (Tstor) ………………………………………………………………….………………………………………… –40C ~ + 125C 18.2 ELECTRICAL CHARACTERISTIC Standard Operating Conditions (Typical temperature Ta = 25℃)
Page 175
[5] IHRC is disabled, external high X’tal is enabled, and PLL is enabled. [6] ILRC is enabled, IHRC and external X’tal are disabled, and PLL is disabled. [7] All oscillators and analog blocks are turned off. [8] DPDWAKEUP pin is pulled HIGH internally. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 175...
The Graphs in this section are for design guidance, not tested or guaranteed. In some graphs, the data presented are outside specified operating range. This is for information only and devices are guaranteed to operate properly only within the specified range. Version 1.9 SONiX TECHNOLOGY CO., LTD Page 176...
Page 177
SN32F100 Series 32-Bit Cortex-M0 Micro-Controller Supply Current V.S. Operating Temperature (Operating Conditions : All pins configured as GPIO outputs driven Low and pull-up resistors disabled and VDD = 3.3V) Version 1.9 SONiX TECHNOLOGY CO., LTD Page 177...
Flash IC / JP3 Pin Assignment Connector Number Name Number Number Number Number Number PGDCLK P0.4 P0.4 P0.4 (CLK) OTPCLK P0.6 P0.6 P0.6 (PGM) PGDIN P0.5 P0.5 P0.5 (OE) VR_DOUT P0.7 P0.7 P0.7 (ALSB/PDB) Version 1.9 SONiX TECHNOLOGY CO., LTD Page 178...
SN32F100 Series 32-Bit Cortex-M0 Micro-Controller MARKING DEFINITION 21.1 INTRODUCTION There are many different types in SONiX 32-bit MCU production line. This note lists the marking definitions of all 32-bit MCU for order or obtaining information. 21.2 MARKING INDETIFICATION SYSTEM SN32 X Part No.
Need help?
Do you have a question about the SN32F107 and is the answer not in the manual?
Questions and answers