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.
1. Update LCD drive waveform. 2. Add Note for setting the pins which are not pin-out. 2018/10/05 1. Add Boot pin description. 2. Fix maximum F to 16MHz in Electrical Characteristics. ADCLK Version 2.0 SONiX TECHNOLOGY CO., LTD Page 2...
Page 5
GPIO Port n Interrupt Event register (GPIOn_IEV) (n=0,1,2,3) ..........76 5.3.7 GPIO Port n Interrupt Enable register (GPIOn_IE) (n=0,1,2,3) ..........76 5.3.8 GPIO Port n Raw Interrupt Status register (GPIOn_RIS) (n=0,1,2,3) ........77 Version 2.0 SONiX TECHNOLOGY CO., LTD Page 5...
Page 6
ADC Interrupt Enable register (ADC_IE)................96 7.6.5 ADC Raw Interrupt Status register (ADC_RIS) ............... 96 16-BIT TIMER WITH CAPTURE FUNCTION ................97 OVERVIEW ............................. 97 FEATURES ............................97 PIN DESCRIPTION ......................... 97 BLOCK DIAGRAM ......................... 98 Version 2.0 SONiX TECHNOLOGY CO., LTD Page 6...
Page 9
I2C n Status register (I2Cn_STAT) (n=0,1) ................149 13.8.3 I2C n TX Data register (I2Cn_TXDATA) (n=0,1) ..............150 13.8.4 I2C n RX Data register (I2Cn_RXDATA) (n=0,1) ..............150 13.8.5 I2C n Slave Address 0 register (I2Cn_SLVADDR0) (n=0,1) ..........150 Version 2.0 SONiX TECHNOLOGY CO., LTD Page 9...
Page 10
USART n Line Status register (USARTn_LS) (n=0,1) ............167 14.11.8 USART n FIFO Control register (USARTn_FIFOCTRL) (n=0,1)........168 14.11.9 USART n Line Control register (USARTn_LC) (n=0,1) ............ 168 14.11.10 USART n Modem Control register (USARTn_MC) (n=0,1) ..........169 Version 2.0 SONiX TECHNOLOGY CO., LTD Page 10...
Page 19
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 2.0 SONiX TECHNOLOGY CO., LTD Page 19...
Page 20
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 2.0 SONiX TECHNOLOGY CO., LTD Page 20...
Page 21
10 11 12 13 14 15 16 17 18 19 20 21 22 23 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 2.0 SONiX TECHNOLOGY CO., LTD Page 21...
Page 22
9 10 11 12 13 14 15 16 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 2.0 SONiX TECHNOLOGY CO., LTD Page 22...
Page 26
VDD, user should manually force to set the I/O port P1.6 and P1.7 as input pull-down state in case of internal power collision. 4. VDD3/VLCD3 is the I/O and LCD driver power input pin for P0.0~P0.7. If VDD3 voltage is lower Version 2.0 SONiX TECHNOLOGY CO., LTD Page 26...
Page 27
VDD, user should manually force to set the I/O port P1.6 and P1.7 as input pull-down state in case of internal power collision. 5. VDD1/VLCD1, VDD2/VLCD2, VDD3/VLCD3, and VDD12/VLCD12 power input shall not be floating. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 27...
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 2.0 SONiX TECHNOLOGY CO., LTD Page 28...
Page 29
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 2.0 SONiX TECHNOLOGY CO., LTD Page 29...
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 2.0 SONiX TECHNOLOGY CO., LTD Page 31...
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 SYSTICK_VAL when the counter is enabled and 23:0 RELOAD 0x5F7F9B when it reaches 0. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 32...
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 2.0 SONiX TECHNOLOGY CO., LTD Page 33...
Each priority field holds a priority value, 0-192. The lower the value, the 23:16 PRI_(4*n+2) greater the priority of the corresponding interrupt. The processor implements only bits[23:22] of each field, bits [21:16] read as zero and ignore writes. This Version 2.0 SONiX TECHNOLOGY CO., LTD Page 36...
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. Reserved Version 2.0 SONiX TECHNOLOGY CO., LTD Page 37...
These registers are mutually exclusive bit fields in the 32-bit PSR. PRIMASK The PRIMASK register prevents activation of all exceptions with configurable priority. The CONTROL register controls the stack used when the processor is in Thread mode. CONTROL Version 2.0 SONiX TECHNOLOGY CO., LTD Page 39...
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 2.0 SONiX TECHNOLOGY CO., LTD Page 40...
Let system under dead-band includes some conditions. DC application: The power source of DC application is usually using battery. When low battery condition and MCU drive any loading, Version 2.0 SONiX TECHNOLOGY CO., LTD Page 41...
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 2.0 SONiX TECHNOLOGY CO., LTD Page 42...
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 Version 2.0 SONiX TECHNOLOGY CO., LTD Page 44...
The operating voltage is not accurate as Zener diode reset circuit. Use R1, R2 bias voltage to be the active level. When VDD voltage level is above or equal to “0.7V x (R1 + R2) / R1”, the C terminal of the PNP transistor outputs high Version 2.0 SONiX TECHNOLOGY CO., LTD Page 45...
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 2.0 SONiX TECHNOLOGY CO., LTD Page 46...
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 32 KHz. Note: The ILRC can ONLY be switched on and off by HW. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 47...
3.2.2 SONiX 32-bit MCU uses the PLL to create the clocks for the core and peripherals. The input frequency range is 10MHz to 25MHz. The input clock is divided down and fed to the Phase-Frequency Detector (PFD). This block compares the phase and frequency of its inputs, and generates a control signal when phase and/ or frequency do not match.
External clock source the input clock signal. (Bypass) EHS X’tal can have a frequency of up to 25 MHz. Select this mode by setting EHSEN bit Analog Block Control register (SYS0_ANBCTRL). Version 2.0 SONiX TECHNOLOGY CO., LTD Page 50...
One of 6 clock signals can be selected as clock output: 1. HCLK 2. IHRC 3. ILRC 4. PLL clock output 5. ELS X’TAL 6. EHS X’TAL The selection is controlled by the CLKOUTSEL bits in SYS1_AHBCLKEN register. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 51...
01: EHS X’TAL 10 MHz ~ 25 MHz Other: Reserved 11:9 Reserved FSEL Front divider value. The division value F is the programmed 2 FSEL 0: F = 1 1: F = 2 Version 2.0 SONiX TECHNOLOGY CO., LTD Page 52...
0: No effect 1: Reset USART1 USART0 reset USART0RST 0: No effect 1: Reset USART0 LCD reset LCDRST 0: No effect 1: Reset LCD Reserved SSP1 reset SSP1RST 0: No effect 1: Reset SSP1 Version 2.0 SONiX TECHNOLOGY CO., LTD Page 61...
Page 62
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 2.0 SONiX TECHNOLOGY CO., LTD Page 62...
Note: Quotient is 0xFFFFFFFF when Divisor is 0x0, instead of occurring Hard Fault, since FW shall be able to handle this case. Name Description Attribute Reset 31:0 Quotient[31:0] Unsigned integer Quotient 3.4.9 Divider Remainder register (SYS1_REMAINDER) Address Offset: 0x2C Name Description Attribute Reset 31:0 Remainder[31:0] Unsigned integer Remainder Version 2.0 SONiX TECHNOLOGY CO., LTD Page 63...
Name Description Attribute Reset 31:1 Reserved Divider start control bit. DIVS 0: Divider stops/finishes operation. 1: Start to execute Dividing. DIVS is cleared by HW automatically when the operation of dividing finishes. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 64...
Peripheral functions, if selected to be clocked in SYS1_AHBCLKEN register, continue operation during Sleep mode and may generate interrupts to cause the processor to resume execution. Sleep mode eliminates dynamic power used Version 2.0 SONiX TECHNOLOGY CO., LTD Page 65...
The processor state and registers, peripheral registers, and internal SRAM values are not retained. However, the chip can retain data in four BACKUP registers, and the status of all GPIO pins can also be latched. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 66...
5. Setup the same GPIO status of all GPIO pins as step 2 of 4.3.3.1. 6. Write 0x5A5A0001 to PMU_LATCHCTRL2 register to release the status of all GPIO pins. 7. Setup the PMU for the next Deep power-down cycle. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 67...
IHRC Example: F =12MHz, the wakeup time is as the following. IHRC The total Wakeup time = 2T*ILRC + 1/F * 32 = 62.5us + 2.67 us = 12MHz) IHRC IHRC Version 2.0 SONiX TECHNOLOGY CO., LTD Page 68...
001: WFI instruction will make MCU enter Deep-power down mode. 010: WFI instruction will make MCU enter Deep-sleep mode. 100: WFI instruction will make MCU enter Sleep mode. Other: Disable 4.7.3 I/O Latch Control register 1 (PMU_LATCHCTRL1) Address Offset: 0x44 Version 2.0 SONiX TECHNOLOGY CO., LTD Page 71...
1: Disable GPIO latch function 4.7.5 I/O Latch Status register (PMU_LATCHST) Address Offset: 0x4C Name Description Attribute Reset 31:1 Reserved Latch status bit LATCH 0: Not Latch yet 1: GPIO status is Latched. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 72...
LOW. This causes the pin to retain its last known state if it is configured as an input and is not driven externally. The state retention is not applicable to the Deep power-down mode. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 73...
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 2.0 SONiX TECHNOLOGY CO., LTD Page 76...
Name Description Attribute Reset 31:16 Reserved Open-drain control bit (x = 0 to 15) 15:0 OC[15:0] 0: Disable. 1: Enable open-drain function of Pn.x. HW also set Pn.x as output mode automatically. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 78...
Calibration AIN10 AIN11 ADENB ADT[4:0] AIN12 AIN13 AIN14 (Internal to TS) Note: 1. For 8-bit resolution the conversion time is 12 steps. For 12-bit resolution the conversion time is 16 steps Version 2.0 SONiX TECHNOLOGY CO., LTD Page 90...
If the ADC high reference voltage is from external voltage source, the external high reference is connected to AVREFH pin (P2.0). The external high reference source must be through a 47uF ”C” capacitor first, and then 0.1uF capacitor “B”. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 92...
1. The V(TS) voltage and temperature curve of each chip might different. Calibration in room temperature is necessary when temperature sensor is used. ℃ 2. 3.53mV/ is only the typical temperature parameter, every single chip is different to each other. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 93...
P2.x configuration control bits. (x=0 to 15) 15:0 P2CON[15:0] 0: P2.x can be an analog input (ADC input) or digital I/O pins. 1: P2.x is pure analog input, can’t be a digital I/O pin. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 95...
0: ReadNo interrupt on AINx WriteWrite “0” to the corresponding bit will clear the bit and reset the Interrupt if the corresponding IE bit is set. 1: Interrupt requirements met on AINx ADC conversion. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 96...
– 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 2.0 SONiX TECHNOLOGY CO., LTD Page 97...
6. In the next clock 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 2.0 SONiX TECHNOLOGY CO., LTD Page 99...
Besides, TC is blocked while the value of CT16Bn_MR3 is zero. The following figure shows a timer in Center-aligned counting mode. The CT16Bn_PRE register is set to 0, and the CT16Bn_MR3 register is set to 5. PCLK CT16Bn_TC Version 2.0 SONiX TECHNOLOGY CO., LTD Page 100...
0, the CT16Bn_MR3 register is set to 8, the CT16Bn_MR2 register is set to 7, the CT16Bn_MR1 register is set to 4, and the CT16Bn_MR0 register is set to 0. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 101...
If a match value larger than the PWM cycle length is written to the CT16Bn_MR0~3 registers, and the PWM signal is LOW already, then the PWM signal will go HIGH on the next start of the next PWM cycle. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 102...
Page 103
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 2.0 SONiX TECHNOLOGY CO., LTD Page 103...
In Edge-aligned down-counting mode (CM[2:0]=001b) , the TC[15:0] should be reset to the value of CT16Bn_MR3 after resetting counter (SW set CRST to 1). Name Description Attribute Reset 31:16 Reserved 15:0 TC[15:0] Timer Counter Version 2.0 SONiX TECHNOLOGY CO., LTD Page 104...
In counter mode (when CTM[1:0] are not 00), these bits select which CAP0 pin is sampled for clocking. 00: CT16Bn_CAP0 Other: Reserved. Counter/Timer Mode. CTM[1:0] This field selects which rising PCLK edges can increment Timer’s Version 2.0 SONiX TECHNOLOGY CO., LTD Page 105...
Enable reset TC when MR0 matches TC. MR0RST 0: Disable 1: Enable Enable generating an interrupt based on CM[2:0] when MR0 matches the MR0IE value in the TC. 0: Disable 1: Enable Version 2.0 SONiX TECHNOLOGY CO., LTD Page 106...
1: CT16Bn_PWM1 pin act as match output, and output signal depends on PWM1EN bit. CT16Bn_PWM0/GPIO selection bit PWM0IOEN 0: CT16Bn_PWM0 pin act as GPIO 1: CT16Bn_PWM0 pin act as match output, and output signal depends on PWM0EN bit. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 108...
0: No interrupt on match channel 1 1: Interrupt requirements met on match channel 1. Interrupt flag for match channel 0. MR0IF 0: No interrupt on match channel 0 1: Interrupt requirements met on match channel 0. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 109...
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 2.0 SONiX TECHNOLOGY CO., LTD Page 110...
– Toggle on match. – Do nothing on match. 9.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 2.0 SONiX TECHNOLOGY CO., LTD Page 111...
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 2.0 SONiX TECHNOLOGY CO., LTD Page 113...
Besides, TC is blocked while the value of CT32Bn_MR3 is zero. The following figure shows a timer in Center-aligned counting mode. The CT32Bn_PRE register is set to 0, and the CT32Bn_MR3 register is set to 5. PCLK CT16Bn_TC Version 2.0 SONiX TECHNOLOGY CO., LTD Page 114...
0, the CT32Bn_MR3 register is set to 8, the CT32Bn_MR2 register is set to 7, the CT32Bn_MR1 register is set to 4, and the CT32Bn_MR0 register is set to 0. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 115...
If a match value larger than the PWM cycle length is written to the CT32Bn_MR0~3 registers, and the PWM signal is LOW already, then the PWM signal will go HIGH on the next start of the next PWM cycle. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 116...
Page 117
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 2.0 SONiX TECHNOLOGY CO., LTD Page 117...
In Edge-aligned down-counting mode (CM[2:0]=001b) , the TC[31:0] should be reset to the value of CT32Bn_MR3 after resetting counter (SW set CRST to 1). Name Description Attribute Reset 31:0 TC[31:0] Timer Counter Version 2.0 SONiX TECHNOLOGY CO., LTD Page 118...
This field selects which rising PCLK edges can clear PC and increment Timer Counter (TC). 00: Timer Mode: every rising PCLK edge 01: Counter Mode: TC is incremented on rising edges on the CAP input Version 2.0 SONiX TECHNOLOGY CO., LTD Page 119...
The Match register values are continuously compared to the Timer Counter (TC) value. When the two values are equal, actions can be triggered automatically. The action possibilities are to generate an interrupt, reset the Timer Counter, or stop the timer. Actions are controlled by the settings in the CT32Bn_MCTRL register. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 120...
If the match outputs are configured as PWM output, the function of the external match registers is determined by the rules. Name Description Attribute Reset 31:12 Reserved Determines the functionality of CT32Bn_PWM3. 11:10 EMC3[1:0] Version 2.0 SONiX TECHNOLOGY CO., LTD Page 121...
1: CT32Bn_PWM1 pin act as match output, and output signal depends on PWM1EN bit. CT32Bn_PWM0/GPIO selection bit PWM0IOEN 0: CT32Bn_PWM0 pin act as GPIO 1: CT32Bn_PWM0 pin act as match output, and output signal depends on PWM0EN bit. 19:12 Reserved Version 2.0 SONiX TECHNOLOGY CO., LTD Page 122...
0: No interrupt on match channel 1 1: Interrupt requirements met on match channel 1. Interrupt flag for match channel 0. MR0IF 0: No interrupt on match channel 0 1: Interrupt requirements met on match channel 0. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 123...
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 2.0 SONiX TECHNOLOGY CO., LTD Page 124...
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 2.0 SONiX TECHNOLOGY CO., LTD Page 125...
WDT_PCLK WDT_PCLK 128 x 256. Watchdog overflow time = (0.02us x 1) x 128 x 1 ~ (0.0625ms x 32) x 128 x 256 = 2.56us ~ 65536ms Name Description Attribute Reset Version 2.0 SONiX TECHNOLOGY CO., LTD Page 127...
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 2.0 SONiX TECHNOLOGY CO., LTD Page 128...
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 2.0 SONiX TECHNOLOGY CO., LTD Page 129...
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 0xFFFFFFFF 0xFFFFFFFD 0xFFFFFFFE Cleared by SW RTC_OVFIF Version 2.0 SONiX TECHNOLOGY CO., LTD Page 130...
The RTC core has one 32-bit programmable counter, and this register keeps the current counting value of this counter. Name Description Attribute Reset RTC second counter 31:0 SECCNT[31:0] The current value of the RTC counter. 11.5.8 RTC Alarm Counter Reload Value register (RTC_ALMCNTV) Address offset: 0x1C Reset value: 0xFFFFFFFF Version 2.0 SONiX TECHNOLOGY CO., LTD Page 133...
The zero value is not recommended, and will be replaced with default value (0xFFFFFFFF) by HW. 11.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 2.0 SONiX TECHNOLOGY CO., LTD Page 134...
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 2.0 SONiX TECHNOLOGY CO., LTD Page 135...
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 2.0 SONiX TECHNOLOGY CO., LTD Page 136...
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. 12.4.3 COMMUNICATION FLOW 12.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 2.0 SONiX TECHNOLOGY CO., LTD Page 137...
The Auto-SEL function is disabled (SELDIS = 1) by default, HW does NOT control SELn pin at all, and SELn pin is GPIO. If Auto-SEL function is enabled (SELDIS = 0), SPI HW controls the SELn activity, and SELn is assigned by PFPA_SSP register. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 138...
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 SSP enable bit SSPEN Version 2.0 SONiX TECHNOLOGY CO., LTD Page 139...
RX FIFO empty flag RX_EMPTY 0: RX FIFO is NOT empty. 1: RX FIFO is empty. TX FIFO full flag. TX_FULL 0: TX FIFO is NOT full. 1: TX FIFO is full. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 140...
RXOVF occurs when the RX FIFO is full and another frame is completely received. The ARM spec implies that the preceding frame data is overwritten by the new frame data when this occurs. 0: RXOVF doesn’t occur. 1: RXOVF occurs. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 141...
0s. 12.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 2.0 SONiX TECHNOLOGY CO., LTD Page 142...
Programmable clock allows adjustment of I2C transfer rates. Data transfer is bidirectional between masters and slaves. Serial clock synchronization allows devices with different bit rates to communicate via one serial bus. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 143...
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 13.4 WAVE CHARACTERISTICS Data Data START STOP Change Change Signal Signal Allowed Allowed Version 2.0 SONiX TECHNOLOGY CO., LTD Page 144...
“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 2.0 SONiX TECHNOLOGY CO., LTD Page 145...
1: An ACK will be returned during the acknowledge clock pulse on SCLn when The address in the Slave Address register has been received. The General Call address has been received while the General Version 2.0 SONiX TECHNOLOGY CO., LTD Page 148...
1: MASTER mode a START bit was issued. SLAVE modea START bit was received. Stop done status STOP_DN 0: No STOP bit. 1: MASTER modea STOP condition was issued. SLAVE modea STOP condition was received. NACK done status NACK_STAT Version 2.0 SONiX TECHNOLOGY CO., LTD Page 149...
ACK) onto the I2C data bus. Depending on the state of the SCLOEN bit, the SCL output may be also forced high to prevent the module from having control over the I2C clock line. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 151...
Page 152
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 interrupt. Monitor mode enable bit. MMEN 0: Disable 1: Enable. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 152...
UART is ready to exchange data. The RTS output signal can URTSn be set to an active low by programming bit 1 (RTS) of USARTn_MC register. Loop mode operation holds this signal in its inactive state. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 153...
Set ADCEN bit in USARTn_RS485CTRL register to enable this feature. The ADCEN bit takes precedence over all other mechanisms controlling the direction control pin with the exception of loopback mode. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 155...
The value of MULVAL and DIVADDVAL should comply with the following conditions: 1. 1 ≤ MULVAL ≤ 15 2. 0 ≤ DIVADDVAL ≤ 14 3. DIVADDVAL< MULVAL 4. Oversampling is 8 or 16 Version 2.0 SONiX TECHNOLOGY CO., LTD Page 156...
Page 157
USARTn_PCLK UART BAUDRATE Oversampling x (256 x DLM + DLL) x (1 + DIVADDVAL / MULVAL) 12000000 115200 = 16 x (256 x DLM + DLL) x (1 + DIVADDVAL / MULVAL) Version 2.0 SONiX TECHNOLOGY CO., LTD Page 157...
The URTS output will be reasserted as soon as the receive FIFO hits the previous trigger level: 4 bytes. … URXD Start Byte N Stop Start Bit 0~7 Stop Stop Start Bit 0~7 URTS Read USARTn RX FIFO … USARTn RX FIFO Level … … Version 2.0 SONiX TECHNOLOGY CO., LTD Page 158...
The auto-baud function can generate two interrupts. The ABTOINT interrupt in USARTn_II register will get set if the interrupt is enabled (ABTOIE bit in USARTn_IE register is set and the auto-baud rate measurement counter overflows). Version 2.0 SONiX TECHNOLOGY CO., LTD Page 159...
If no NACK is sent, the next byte may be transmitted immediately after the last guard bit. If the NACK is sent, the transmitter will retry sending the byte until successfully received or until the SCICTRL retry limit has been met. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 161...
These bits should not be changed while the transmitter or the receiver is enabled (TXEN=1 and RXEN=1). The Synchronous mode supports master mode only, it can NOT receive or send data related to an input clock (SCLK is always an output). Version 2.0 SONiX TECHNOLOGY CO., LTD Page 162...
Page 163
SN32F760 Series 32-Bit Cortex-M0 Micro-Controller SCLK CPOL CPHA Idle Diagrams Status bit1 High bit1 bit1 Next data High bit1 Next data Version 2.0 SONiX TECHNOLOGY CO., LTD Page 163...
Reserved The USART Divisor Latch LSB Register, along with the DLM register, DLL[7:0] determines the baud rate of the USART. 14.11.4 USART n Divisor Latch MSB register (USARTn_DLM) (n=0,1) Address Offset: 0x04 Version 2.0 SONiX TECHNOLOGY CO., LTD Page 164...
The interrupts are frozen during a USARTn_II register access. If an interrupt occurs during a USARTn_II register access, the interrupt is recorded for the next USARTn_II register access. Name Description Attribute Reset Version 2.0 SONiX TECHNOLOGY CO., LTD Page 165...
Page 166
(if source of interrupt) or THRE 0010 THRE Write THR register 0000 Lowest CTS, DSR, RI, or DCD. MSR Read Read USARTn_II register (if source of interrupt) or TEMT 1110 TEMT Write THR register Version 2.0 SONiX TECHNOLOGY CO., LTD Page 166...
A USARTn_LS register read clears PE bit. Time of parity error detection is dependent on FIFOEN bit in USARTn_FIFOCTRL register. 0: Parity error status is inactive. 1: Parity error status is active. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 167...
Reserved Delta CTS. DCTS Set upon state change of input CTS. Cleared after reading this register. 0: No change detected on modem input CTS. 1: State change detected on modem input CTS. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 169...
OVER8 bit allows software to control the ratio between the input clock and bit clock. This is required for smart card mode, and provides an alternative to fractional division for other modes. Note: If the fractional divider is active (DIVADDVAL>0) and USARTn_DLM=0, the value of the USARTn_DLL Version 2.0 SONiX TECHNOLOGY CO., LTD Page 170...
011: Smart Card mode. HW will switch GPIO to UTXDn, and enable UTXDn pin with open-drain. 100: Synchronous mode. HW will switch GPIO to UTXDn, URXDn , and USCLK pin. 101:RS-485 mode. HW will switch GPIO to UTXDn, URXDn pin. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 171...
Protocol selection as defined in the ISO7816-3 standard. PROTSEL 0: T = 0 1: T = 1 NACK response disable bit. Only applicable in T=0. NACKDIS 0: A NACK response is enabled. 1: A NACK response is inhibited. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 172...
This delay time is in periods of the baud clock. Any delay time from 0 to 255 bit times may be programmed. Name Description Attribute Reset 31:8 Reserved The direction control (RTS) delay value. This register works in conjunction DLY[7:0] with an 8-bit counter. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 173...
0: Sample on the rising edge of SCLK 1: Sample on the falling edge of SCLK Clock polarity selection bit CPOL 0: SCLK idles at Low level. 1: SCLK idles at High level. Reserved Version 2.0 SONiX TECHNOLOGY CO., LTD Page 174...
I2S Word Select (Slave) Depends on GPIOn_CFG I2SDIN I2S Received Serial data Depends on GPIOn_CFG I2SDOUT I2S Transmitted Serial data I2S Master clock output I2SMCLK I2S Master clock input from GPIO Depends on GPIOn_CFG Version 2.0 SONiX TECHNOLOGY CO., LTD Page 175...
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 2.0 SONiX TECHNOLOGY CO., LTD Page 177...
Page 178
SN32F760 Series 32-Bit Cortex-M0 Micro-Controller Channel Length = Data Length BCLK BCLK Left Justified BCLK Right Justified Version 2.0 SONiX TECHNOLOGY CO., LTD Page 178...
32 bit 15.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 2.0 SONiX TECHNOLOGY CO., LTD Page 179...
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 0: Disable 1: Enable I2S operation format. FORMAT[1:0] 00: Standard I2S format Version 2.0 SONiX TECHNOLOGY CO., LTD Page 180...
RX FIFO used level 20:17 RXFIFOLV[3:0] 0000: 0/8 RX FIFO is used (Empty) 0001: 1/8 RX FIFO is used 0010: 2/8 RX FIFO is used … … 1000: 8/8 RX FIFO is used (Full) Version 2.0 SONiX TECHNOLOGY CO., LTD Page 181...
VLCD1 LCD driver power input pin for COM0~3, SEG0~11 VLCD2 LCD driver power input pin for SEG12~23 VLCD3 LCD driver power pin for SEG24~31 2/3 VLCD bias voltage 1/3 VLCD bias voltage Version 2.0 SONiX TECHNOLOGY CO., LTD Page 184...
Segment 24~Segment 31 pins are shared with P0.0~P0.7. When these pins are used as LCD pins, the SEG2SEL bit shall be set as “1”, and VLCD3 shall also be connected to VDD with PCB layout. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 188...
SEG1SEL bit shall be set as “1”, and VLCD2 shall also be connected to VLCD1 with PCB layout. Segment 24~Segment 31 pins are shared with P0.0~P0.7. When these pins are used as LCD pins, the SEG2SEL bit Version 2.0 SONiX TECHNOLOGY CO., LTD Page 189...
The only value “01b” is allowed. 31:30 Reserved Used for internal testing and the only value “00b” is allowed. 29:28 IT1[1:0] Used for internal testing and the only value “0100b” is allowed. 27:24 IT2[3:0] Version 2.0 SONiX TECHNOLOGY CO., LTD Page 195...
16.9.5 LCD Frame Counter Control register (LCD_FCC) Address offset: 0x10 Reset value: 0x0000 0002 The frame counter (FC) will start to count up from 0x0 when FCENB = 1, and add 1 when a frame is updated. When Version 2.0 SONiX TECHNOLOGY CO., LTD Page 196...
SEG5 data for COM0~COM3 19:16 SEG4[3:0] SEG4 data for COM0~COM3 15:12 SEG3[3:0] SEG3 data for COM0~COM3 11:8 SEG2[3:0] SEG2 data for COM0~COM3 SEG1[3:0] SEG1 data for COM0~COM3 SEG0[3:0] SEG0 data for COM0~COM3 Version 2.0 SONiX TECHNOLOGY CO., LTD Page 197...
SEG17 data for COM0~COM3 SEG16[3:0] SEG16 data for COM0~COM3 16.9.10 LCD SEG Memory register 3 (LCD_SEGM3) Address Offset: 0x2C Reset value: 0x0000 0000 Name Description Attribute Reset 31:28 SEG31[3:0] SEG31 data for COM0~COM3 Version 2.0 SONiX TECHNOLOGY CO., LTD Page 198...
Page 199
SEG29 data for COM0~COM3 19:16 SEG28[3:0] SEG28 data for COM0~COM3 15:12 SEG27[3:0] SEG27 data for COM0~COM3 11:8 SEG26[3:0] SEG26 data for COM0~COM3 SEG25[3:0] SEG25 data for COM0~COM3 SEG24[3:0] SEG24 data for COM0~COM3 Version 2.0 SONiX TECHNOLOGY CO., LTD Page 199...
The FLASH memory may be programmed via the SONiX 32-bit MCU programming interface or by application code for maximum flexibility. SONiX 32-bit MCU provides security options at the disposal of the designer to prevent unauthorized access to information stored in FLASH memory.
17.7 EMBEDDED BOOT LOADER The embedded boot loader is used to reprogram the Flash memory using the USART0 serial interface. This program is located in the Boot ROM and is programmed by SONiX during production. Version 2.0 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 2.0 SONiX TECHNOLOGY CO., LTD Page 202...
HW before reprogramming the read protection option. 17.10 HW CHECKSUM HW checksum is the checksum of User ROM. If the read protection is enabled, the users can still readout the HW checksum through Writer or ISP AP. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 203...
Note: HCLK MUST be equal to 12MHz during Flash program and erase operations. Name Description Attribute Reset 31:7 Reserved Checksum calculation chosen This bit is set only by SW and reset when the BUSY bit resets. Start Erase operation STARTE Version 2.0 SONiX TECHNOLOGY CO., LTD Page 204...
Choose the Flash address to erase when Page Erase is selected, or to program when Page Program is selected. 17.11.6 Flash Checksum register (FLASH_CHKSUM) Address offset: 0x14 Name Description Attribute Reset 31:16 Reserved 15:0 CHKSUM[15:0] Checksum of User ROM. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 205...
FW any more. SONiX provide Boot loader to check the status of P2.2 (BOOT pin) during boot procedure. If P2.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 2.0 SONiX TECHNOLOGY CO., LTD Page 207...
SN32F760 Series 32-Bit Cortex-M0 Micro-Controller DEVELOPMENT TOOL SONiX provides an Embedded ICE emulator system to offer 32-bit series MCU firmware development. SONiX 32-bit series Embedded ICE Emulator System includes: SONiX 32-bit MCU Starter-Kit. SN-LINK-V3 USB cable to provide communications between the SN-LINK-V3 and PC.
32-Bit Cortex-M0 Micro-Controller 19.1 SN-LINK-V3 SN-LINK-V3 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-V3 also may be used as a programmer to load firmware from PC to MCU for engineering production, even mass production.
19.2 SN32F760 STARTER-KIT SONiX 32-bit MCU Starter-kit is an easy-development platform. It includes real chip and I/O connectors to input signal or drive extra device of user’s application. It is a simple platform to develop application as target board not ready. The starter-kit can be replaced by target board because of integrated SWD debugger circuitry.
Page 211
P1.0~P1.5 & P0.10~P0.15 are GPIO pins, and connect VDD2 with VDD. Short P0.0~P0.7 are LCD SEGx pins JP22 Short Open P0.0~P0.7 are GPIO pins, and connect VDD3 with VDD with VDD. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 211...
I/O Low-level output sink current = Vss + 0.5V Typical 20mA mode ADC Operating Voltage AIN0 ~ AIN13 input voltage Avrefh ADC reference Voltage Ready to start convert after set ADENB = “1” *ADC enable time Version 2.0 SONiX TECHNOLOGY CO., LTD Page 212...
Page 213
[8] VDD is the Vddio of P0.8~P0.9, P2.0~P2.15, and P3.10~P3.15; VDD1 is the Vddio of P1.6~P1.15, and P3.0~P3.9; VDD2 is the Vddio of P1.0~P1.5, and P0.10~P0.15; VDD3 is the Vddio of P0.0~P0.7. Version 2.0 SONiX TECHNOLOGY CO., LTD Page 213...
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 2.0 SONiX TECHNOLOGY CO., LTD Page 214...
Page 215
SN32F760 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 2.0 SONiX TECHNOLOGY CO., LTD Page 215...
Flash IC / JP3 Pin Assignment Connector Number Name Number Number Number Number Number P3.12 P3.12 P3.12 P3.12 P3.12 P0.8 P0.8 P0.8 P0.8 P0.8 P0.9 P0.9 P0.9 P0.9 P0.9 ALSB/PDB P3.11 P3.11 P3.11 P3.11 P3.11 Version 2.0 SONiX TECHNOLOGY CO., LTD Page 216...
SN32F760 Series 32-Bit Cortex-M0 Micro-Controller MARKING DEFINITION 23.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. 23.2 MARKING INDETIFICATION SYSTEM SN32 X Part No.
Need help?
Do you have a question about the SN32F769 and is the answer not in the manual?
Questions and answers