For all models of N32G003 microcontroller series, the existence and number of a peripheral, please refer to the data sheet of the corresponding model. Nations Technologies Inc. 18 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
ADC AHB2APB bridge, which connects APB modules The system bus architecture is shown as in Figure 2-1: Nations Technologies Inc. 19 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
The address mapping includes all AHB peripherals, APB peripherals, Flash, SRAM, System Memory, etc. The specific mapping is as follows: Nations Technologies Inc. 20 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
FLASH specification Flash consists of the main memory area and the information area, which are described separately below: Nations Technologies Inc. 22 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
There is two ways to protect flash memory from illegal access (read, write and erase): Permissions protect Readout protection (RDP) Nations Technologies Inc. 23 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 24
Select the page to be erased with the FLASH_ADD register; Set the FLASH_CTRL.START bit to '1'; Wait for the FLASH_STS.BUSY bit to change to '0'; Nations Technologies Inc. 24 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 25
Unlock the FLASH_CTRL.OPTWE bit; Set the FLASH_CTRL.OPTER bit to '1'; Set the FLASH_CTRL.START bit to '1'; Nations Technologies Inc. 25 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
0xFF (the erased state), the above verification steps are skipped and no verification is required. Nations Technologies Inc. 26 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
USER3[4]: LVR enable, which can be queried through FLASH_USER[12] USER3[5]: LVR filter enable, which can be queried through FLASH_USER[13] Nations Technologies Inc. 27 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
0xFF, equivalent to a still in a state of L1 level of protection) Write the correct sequence of keys to the OPTKEY unlock option byte area; Nations Technologies Inc. 28 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
The main features are as follows: The maximum total capacity is 3KB Support byte/half word/word reading and writing Nations Technologies Inc. 30 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Reset Value FLASH_ECC 024h Reserved Reset Value FLASH access control register (FLASH_AC) Address offset: 0x00 Reset value: 0x0000 0030 Nations Technologies Inc. 31 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 32
FKEY Used to unlock the FLASH_CTRL.LOCK bit. FLASH OPTKEY register (FLASH_OPTKEY) Address offset: 0x08 Reset value: 0xXXXX XXXX Nations Technologies Inc. 32 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 33
When trying to program to an address whose content is not '0xFFFF_FFFF', the hardware sets this to '1'. Writing '1' clears this state. Nations Technologies Inc. 33 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 34
Hardware clears this bit to '0' after detecting a correct unlock sequence. After an unsuccessful unlock operation, this bit cannot be changed until the next system reset. START Start Nations Technologies Inc. 34 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 35
Note: When the FLASH_STS.BUSY bit is '1', this register cannot be written. FLASH option byte register (FLASH_OB) Address offset: 0x1C Reset value: 0x03FF FFDC Nations Technologies Inc. 35 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 36
Note: This bit is read-only. RDPRT1 Read protection level L1 0: L1 level of read protection is disabled. Nations Technologies Inc. 36 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 37
LVR level select. Value = 0x0F - LVRLS Value Voltage 0000 1.8v 0001 2.0v 0010 2.2v 0011 2.4v Nations Technologies Inc. 37 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 38
If the first address of the interrupt vector table needs to be remapped to the 0x08000C00, the VTOR_VALUE is configured to 0x08000C00. Nations Technologies Inc. 38 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
PWR_CTRL.PDRS[1:0] must be configured as '10' (V PDR trigger voltage 1.0V). Power-down mode Voltage regulator off, mainly used in PD mode. Nations Technologies Inc. 39 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
For more information about the reset threshold of the switching power supply, please refer to the electrical characteristics section of the relevant data sheet. Nations Technologies Inc. 40 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
The threshold of LVR is controlled by PWR_CTRL2.LVRLS [3:0]. LVR can be enabled/disabled by PWR_CTRL2.LVREN bit. Nations Technologies Inc. 41 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
If the access to the APB area is in progress, entering PD mode will be delayed until the APB access is complete. Nations Technologies Inc. 44 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
0: PVD filter disabled. 1: PVD filter enabled. 24:17 PVDCNT PVD filter control counter value. 0x00: Not filtered Nations Technologies Inc. 46 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 47
The software writes a '1' to this bit to clear the DBGPDF status bit. Always read as 0: Invalid. 1: Clear the DBGPDF status bit. Nations Technologies Inc. 47 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
It is valid only if PWR_CTRL.PVDEN = 1. 0: V is higher than the PVD threshold selected with PWR_CTRL.PLS [3:0]. Nations Technologies Inc. 48 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
After exit STOP, user can delay starting the LSI to stabilize the LSI. The delay is determined by the LSISTPCNT configuration. Nations Technologies Inc. 50 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
1: After the software set this bit to '1', the Flash enter deep standby mode. FLHWKUP Enable Flash fast wake-up. Nations Technologies Inc. 51 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Address offset:0x28 Reset value:0x0000 0000 Bit field Name Description 31:4 Reserved Reserved, the reset value must be maintained. Nations Technologies Inc. 52 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
0: The counter of IWDG still works normally. 1: The counter of IWDG stops working. Reserved Reserved, the reset value must be maintained. Nations Technologies Inc. 53 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 54
1: (FCLK on, HCLK on) system enters DBGSTOP mode, FCLK clock is provided by the internal RC oscillator. Reserved Reserved, the reset value must be maintained. Nations Technologies Inc. 54 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
A software reset can be generated by setting the SYSRESETREQ bit in Cortex -M0 Application Interrupt and Reset Nations Technologies Inc. 55 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
48MHz or 40MHz RC oscillator, which can be used directly as a system clock or input after dividing. The HSI RC Nations Technologies Inc. 58 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
The clock is supplied to the IWDG after the LSI oscillator is stable. Nations Technologies Inc. 59 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
40M ready flag Set by hardware to indicate that internal 40 MHz RC oscillator is stable. Nations Technologies Inc. 61 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Set and cleared by software. 00: no clock 01: LSI clock 10: LSE clock Others: Not allowed to set Nations Technologies Inc. 62 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Set and cleared by software. 0: Disable ADC clock 1: Enable ADC clock 11:7 Reserved Reserved, the reset value must be maintained. Nations Technologies Inc. 65 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Address offset: 0x1c Reset value: 0x0000 0018 Bit field Name Description 31:12 Reserved Reserved, the reset value must be maintained Nations Technologies Inc. 68 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 69
Reserved, the reset value must be maintained RMRSTF Remove reset flag Set and clear by software 0: No effect 1: Clear these reset flags Nations Technologies Inc. 69 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
0001: HSI divided by 2 as ADC work clock 0010: HSI divided by 3 as ADC work clock Nations Technologies Inc. 70 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Reserved, the reset value must be maintained. EMCDETEN EMC clamp detect enable Set and cleared by software. 0: Disable detect 1: Enable detect Nations Technologies Inc. 71 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Each I/O port bit can be programmed arbitrarily, but the I/O port register must be accessed as a 32-bit word (16-bit half-word or 8-bit byte are not allowed).The following figure shows the basic structure of an I/O port. Nations Technologies Inc. 72 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
When I/O port is configured in input mode: Output buffer is disabled The schmidt trigger input is activated Nations Technologies Inc. 74 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Read access to input data register to get I/O status. Read access to the output data register to get the last written value. Nations Technologies Inc. 75 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Read access to input data register to get I/O status. Read access to the output data register to get the last written value. Nations Technologies Inc. 76 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
PLOCKK, that is, GPIOx_PLOCK [16], becomes 1 only after the correct sequence w1-> w0-> w1-> r0 (r0 here is also a must). After that, it becomes 0 only if the system reset is performed. GPIOx_PLOCK.PLOCK[15:0] Nations Technologies Inc. 84 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
POD bits can be independently set/cleared by GPIOx_PBSC (x = A,B) register. Note: x = A, y = 0...15. x = B, y =0, 1. Nations Technologies Inc. 91 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Reset value (Port B) : 0x0000 0000 Bit Field Name Description 31:16 Reserved The reset value must be maintained. Nations Technologies Inc. 92 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
1: Lock the configuration of the port Note: x = A, y = 0...15. x = B, y =0, 1. Nations Technologies Inc. 93 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
3 trigger events are supported: rising edge, falling edge, and double edge Can wake up to exit low power mode Nations Technologies Inc. 99 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
In addition, interrupt/event requests can also be generated by software by writing a '1' in the software interrupt/event register. Nations Technologies Inc. 100 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
EXTI line 14 is connected to PA14 EXTI line 15 is connected to PA15 EXTI line 16 is connected to PB0 Nations Technologies Inc. 101 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Address offset : 0x00 Reset value : 0x00000000 Bit field name describe 31:20 Reserved Reserved,the reset value must be maintained. Nations Technologies Inc. 102 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Note: This bit can be cleared to '0' by writing '1' to clear the corresponding bit of EXTI_PEND. Interrupt request pending register(EXTI_PEND) Address offset : 0x14 Reset value : 0x00000000 Nations Technologies Inc. 104 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 105
This bit is set to '1' when a selected edge trigger event occurs on the external interrupt line. It can be cleared by writing '1' to the bit. Nations Technologies Inc. 105 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
The initial value of CRC calculation can be configured by writing the CRC_CRC16D register. By default, the initial value is the result of the last calculation. Nations Technologies Inc. 106 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
CRC_CRC16DAT is "XOR" with the value of the CRC_LCR register. The result will be stored in CRC_LCR. Software read the result. It should be cleared before next use. Nations Technologies Inc. 109 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Timer can be controlled by external signal Timers are linked internally for timer synchronization or chaining TIM1_CC5 for COMP blanking Nations Technologies Inc. 110 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
UEV. An update event is generated when the counter reaches the overflow/underflow condition and it can be generated by software when Nations Technologies Inc. 111 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
TIMx_STS.UDITF is set: The repetition counter reloads the contents of the TIMx_REPCNT Nations Technologies Inc. 112 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
The update events can be generated each time the counter overflows and each time the counter underflows. Alternatively, an update event can also be generated by setting the TIMx_EVTGEN. UDGN bit (either by software Nations Technologies Inc. 115 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
This means that data is transferred from the preload registers to the shadow registers every N+1 counter overflow or underflow, where N is the value in the TIMx_REPCNT. Nations Technologies Inc. 117 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
The delay between the rising edge of TI2 and the actual clock of the counter depends on the resynchronization circuit at the input of TI2. Nations Technologies Inc. 121 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Select the polarity on ETR pin by setting TIMx_SMCTRL.EXTP equal to ‘0’, The rising edge of ETR is valid Nations Technologies Inc. 122 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
ICx is sent to the capture register after frequency division. The following figure shows a block diagram of a capture/compare channel. Nations Technologies Inc. 123 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
The output part generates an intermediate waveform OCxRef (active high) as reference. The polarity acts at the end of the chain. Nations Technologies Inc. 124 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
The TIMx_STS. CCxITF bit is set by hardware when a capture event occurs and is cleared by software or by reading the TIMx_CCDATx register. Nations Technologies Inc. 126 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
When the capture/compare register and the counter have the same value, the output compare function’s operations are as follow: Nations Technologies Inc. 128 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 129
Otherwise the TIMx_CCDATx shadow register will be updated at the next update event. Here is an example. Nations Technologies Inc. 129 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
User should not modified TIMx_CTRL1.DIR by software, it is updated by hardware. Nations Technologies Inc. 130 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
To be on the safe side, user is suggested setting TIMx_EVTGEN.UDGN to generate an update by software before starting the counter, and not writing the counter while it is running. Nations Technologies Inc. 131 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
(n+1)th PWM cycle is 0. At the moment when the counter is 0 in the (n+1)th PWM cycle, although the value of the Nations Technologies Inc. 132 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Here is an example for the case that when ETRF input becomes high, the behavior of OCxREF signal for different value of OCxCEN. Timer is set to be in PWM mode in this case. Nations Technologies Inc. 134 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
The relationships between the output signals of the dead-time generator and the reference signal OCxREF are as follow. Assume that TIMx_CCEN.CCxP=0, TIMx_CCEN.CCxNP=0, TIMx_BKDT.MOEN=1, TIMx_CCEN.CCxEN=1, Nations Technologies Inc. 135 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
TIMx_CCEN.CCxNEN=1, OCx will become active when OCxREF is high. On the contrary, OCxN will become active when OCxREF is low. Nations Technologies Inc. 136 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Timer will release the output control if TIMx_BKDT.OSSI=0. Otherwise, if the enable output was high, it Nations Technologies Inc. 137 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
(CCxEN=1,CCxNEN=0,CCxP=0,CCxNP=0,OIx=OIxN) Debug mode When the microcontroller is in debug mode (the Cortex-M0 core halted), depending on the DBG_CTRL.TIMx_STOP Nations Technologies Inc. 138 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
In trigger mode, the trigger event (rising edge/falling edge) of the input port can trigger the counter to start counting. Nations Technologies Inc. 139 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
The delay between the rising edge on TI1 and the actual stop of the counter is due to the resynchronization circuit on TI1 input. Nations Technologies Inc. 140 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
When TI1 detects a rising edge, the counter starts counting on the rising edge of ETR, and the trigger flag is set (TIMx_STS.TITF=1); Nations Technologies Inc. 141 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
The following figure shows the output timing diagram of OCx and OCxN when a COM commutation event occurs in three different configurations: Nations Technologies Inc. 142 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
0: Shadow register disable for TIMx_AR register 1: Shadow register enable for TIMx_AR register CAMSEL[1:0] Center-aligned mode selection Nations Technologies Inc. 145 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 146
Note: external clock, gating mode can only work after TIMx_CTRL1.CNTEN bit is set in the software. Trigger mode can automatically set TIMx_CTRL1.CNTEN bit by hardware. Nations Technologies Inc. 146 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
When the counter enable signal is controlled by the trigger input, there is a delay on TRGO except if the master/slave mode is selected (see the description of the TIMx_SMCTRL.MSMD bit). Nations Technologies Inc. 147 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
ETRF signal in this mode. 0: External clock mode 2 disable. 1: External clock mode 2 enable. Nations Technologies Inc. 148 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 149
(via TRGO) and its slaves. This is useful when several timers are required to be synchronized to a single external event. Nations Technologies Inc. 149 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 152
See TIMx_STS.CC1ITF description. CC1ITF Capture/Compare 1 interrupt flag When the corresponding channel of CC1 is in output mode: Nations Technologies Inc. 152 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
This bit is automatically cleared by hardware. 0: No action 1: Generated a break event Nations Technologies Inc. 153 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
0: No action 1: Generated an update event Capture/compare mode register 1 (TIMx_CCMOD1) Offset address: 0x18 Nations Technologies Inc. 154 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 155
1 is high, otherwise it is low. In down-counting mode, if TIMx_CNT > TIMx_CCDAT1, OC1REF signal of channel 1 is low, otherwise it is high. Nations Technologies Inc. 155 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 156
Input capture mode: Bit field Name Description 15:12 IC2F[3:0] Input Capture 2 Filter 11:10 IC2PSC[1:0] Input Capture 2 Prescaler Nations Technologies Inc. 156 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 157
TIMx_SMCTRL.TSEL. Note: CC1SEL is writable only when the channel is off (TIMx_CCEN.CC1EN = 0). Nations Technologies Inc. 157 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
TIMx_SMCTRL.TSEL. Note: CC3SEL is writable only when the channel is off (TIMx_CCEN.CC3EN = 0). Input capture mode: Nations Technologies Inc. 158 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Capture/Compare 5 output enable See TIMx_CCEN.CC1EN description. 15:14 Reserved Reserved, the reset value must be maintained CC4P Capture/Compare 4 output polarity Nations Technologies Inc. 159 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 160
1: inverted: Capture action occurs when IC1 generates a falling edge. When used as external trigger, IC1 is inverted. Note: If TIMx_BKDT.LCKCFG = 3 or 2, these bits cannot be modified. Nations Technologies Inc. 160 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Each time an update event occurs, the PSC value is loaded into the active prescaler register. Auto-reload register (TIMx_AR) Offset address: 0x2C Reset values: 0xFFFF Nations Technologies Inc. 162 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
CC1 channel is configured as output: CCDAT1 contains the value to be compared to the counter TIMx_CNT, signaling on the OC1 output. Nations Technologies Inc. 163 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
AOEN, BKP, BKEN, OSSI, OSSR, and DTGN [7:0] bits can all be write protected depending on the LOCK Nations Technologies Inc. 165 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 166
These bits offer a write protection against software errors. – No write protected. – LOCK Level 1 TIMx_BKDT.DTGN, TIMx_BKDT.BKEN, TIMx_BKDT.BKP, TIMx_BKDT.AOEN, Nations Technologies Inc. 166 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Otherwise, this preloaded value is transferred to the active register only when an update event occurs. TIM1_CC5 and TIM8_CC5 is used for comparator blanking. Nations Technologies Inc. 168 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
1 and 65536. It can be changed on the fly as it is buffered. The prescaler value is only taken into account at the next update event. Nations Technologies Inc. 170 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
When an update event occurs, the counter will still be cleared and the prescaler counter will also be set to 0 (but the prescaler value will remain unchanged). Nations Technologies Inc. 171 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Center-aligned mode is valid when the TIMx_CTRL1. CAMSEL bit is not equal to "00". The update events can be generated each time the counter overflows and each time the counter underflows. Nations Technologies Inc. 174 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
The delay between the rising edge of TI2 and the actual clock of the counter depends on the resynchronization circuit at the input of TI2. Nations Technologies Inc. 178 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Select the polarity on ETR pin by setting TIMx_SMCTRL.EXTP equal to ‘0’, The rising edge of ETR is valid External clock mode 2 is selected by setting TIMx_SMCTRL .EXCEN equal to ‘1’ Nations Technologies Inc. 179 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
ICx is sent to the capture register after frequency division. The following figure shows a block diagram of a capture/compare channel. Nations Technologies Inc. 180 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
The output part generates an intermediate waveform OCxRef (active high) as reference. The polarity acts at the end of the chain. Nations Technologies Inc. 181 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Define the sampling frequency of the TI1 input and the length of the digital filter by configuring the Nations Technologies Inc. 183 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
When the capture/compare register and the counter have the same value, the output compare function’s operations are as follow: TIMx_CCMODx.OCxMD is for output compare mode, and TIMx_CCEN.CCxP is for output polarity. When Nations Technologies Inc. 185 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Examples of center-aligned PWM waveforms is as follow, and the setting of the waveform are: TIMx_AR=8, PWM mode 1, the compare flag is set when the counter counts down corresponding to TIMx_CTRL1. CAMSEL=01. Nations Technologies Inc. 187 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
PWM edge-aligned mode There are two kinds of configuration in edge-aligned mode, up-counting and down-counting. Up-counting Nations Technologies Inc. 188 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
In the one-pulse mode (ONEPM), a trigger signal is received, and a pulse t with a controllable pulse width is PULSE Nations Technologies Inc. 189 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
In one-pulse mode, an edge is detected through the TIx input, and triggers the start of the counter to count to the Nations Technologies Inc. 190 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
User need to do the following steps for this configuration. Setting TIM1_CTRL2.MMSEL=’ 010’ to use the update event of TIM1 as trigger output. Nations Technologies Inc. 192 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Note: The TIM3 clock is not synchronized with the TIM1 clock, this mode only affects the TIM3 counter enable signal. Figure 9-23 TIM3 gated by OC1REF of TIM1 TIM1 CK_INT OC1REF TIM3 TITF Clear TIF = 0 Nations Technologies Inc. 193 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
TITF flags are set simultaneously. The following figure shows a delay between CNTEN and CK_PSC of TIM1 in master/slave mode. Nations Technologies Inc. 195 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
0: Select the external OCxREF clear from ETR 1: Select the internal OCxREF clear from comparator 14:12 Reserved Reserved, the reset value must be maintained Nations Technologies Inc. 197 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 198
Update generation from the slave mode controller 1: If update interrupt is enabled, only counter overflow/underflow will generate update interrupt Nations Technologies Inc. 198 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Note 3: Setting the TIMx_SMCTRL.EXCEN bit has the same effect as selecting external clock mode 1 and connecting TRGI to ETRF (TIMx_SMCTRL.SMSEL = 111 and TIMx_SMCTRL.TSEL = 111). Nations Technologies Inc. 200 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 201
Note: These bits must be changed only when not in use (e. g. TIMx_SMCTRL.SMSEL=000) to avoid false edge detection at the transition. Reserved Reserved, the reset value must be maintained Nations Technologies Inc. 201 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
See TIMx_STS.CC1ITF description. CC1ITF Capture/Compare 1 interrupt flag When the corresponding channel of CC1 is in output mode: Nations Technologies Inc. 203 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
0: No action 1: Generated a trigger event Reserved Reserved, the reset value must be maintained Nations Technologies Inc. 204 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 206
Note 1: Only when TIMx_CTRL1.ONEPM = 1(In one-pulse mode), PWM mode can be used without verifying the preload register, otherwise no other behavior can be predicted. Nations Technologies Inc. 206 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 207
SAMPLING CK_INT 0010: f , N = 4 SAMPLING CK_INT 0011: f , N = 8 SAMPLING CK_INT Nations Technologies Inc. 207 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
CC1 channel is configured as output: CCDAT1 contains the value to be compared to the counter TIMx_CNT, signaling on the OC1 output. Nations Technologies Inc. 210 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
16-bit programmable prescaler. (The frequency division factor can be configured with any value between 1 and 65536) Nations Technologies Inc. 211 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
1 and 65536. It can be changed on the fly as it is buffered. The prescaler value is only taken into account at the next update event. Nations Technologies Inc. 212 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
When an update event occurs, the counter will still be cleared and the prescaler counter will also be set to 0 (but the prescaler value will remain unchanged). Nations Technologies Inc. 213 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
For abbreviations used in registers, see section 1.1 These peripheral registers can be operated as half word (16-bits) or word (32-bits). Nations Technologies Inc. 216 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Bit field Name Description 15:8 Reserved Reserved, the reset value must be maintained ARPEN ARPEN: Auto-reload preload enable Nations Technologies Inc. 217 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
These bits define the value that will be loaded into the actual auto-reload register. See 10.3.1 for more details. When the TIMx_AR.AR [15:0] value is null, the counter does not work. Nations Technologies Inc. 220 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Can choose to stop counting or work normally in debug mode Support low power consumption mode: you can choose to work or freeze in stop mode Nations Technologies Inc. 221 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
IWDG_STS.PVU bit and/or IWDG_STS.CRVU bit. The reload operation (IWDG_KEY.KEYV[15:0] configured with value of 0xAAAA) will also cause the registers to Nations Technologies Inc. 222 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Pre-scale register and reload register controls the time that generates reset, as shown in Table 13 1. Nations Technologies Inc. 223 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
IWDG_STS.PVU bit must be 0 otherwise PD [2:0] value cannot be changed. Divide number is as follow: 000: Prescaler divider =4 001: Prescaler divider =8 Nations Technologies Inc. 225 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
The current value of IWDG_FREEZE.FREEZE can be determined by reading the freeze register firstly, and then the switch freeze operation can be performed. Nations Technologies Inc. 227 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
ADC function description Below is a block diagram of an ADC module. Table 12-1 shows the description of ADC pins. Nations Technologies Inc. 228 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Input, analog power supply ground Equivalent to V analog power supply ground ADCx_IN[8:0] Analog input signal 9 analog external input channels Nations Technologies Inc. 229 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Internal channel The V is connected with channel ADC_IN9. REFINT Internal channels can be converted by regular channels. Nations Technologies Inc. 230 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
ADC_CTRL2.ON to 1 again through software. To start the conversion and after 24 cycles, the end of conversion flag bit will be set to 1 after the conversion is completed. Nations Technologies Inc. 231 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
By configuring ADC_CTRL1.SCAMD to 1, the scan mode can be turned on, and by configuring the registers ADC_DATx.SEQx[3:0], the conversion sequence can be selected, and the ADC will scan and convert all the selected Nations Technologies Inc. 232 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Table 12-5 ADC is used for external triggering of regular channels EXTRSEL[3:0] Trigger source Type 0000 TIM1_CC1 event Internal signal from the on-chip timer Nations Technologies Inc. 233 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
This bit is set by hardware at the end of channel group conversion and cleared by software 0: the conversion is not complete. 1: The conversion is complete. Nations Technologies Inc. 235 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Analog watchdog channel select bits These bits are set and cleared by software. They select the input channel to be guarded by Nations Technologies Inc. 236 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
It starts a conversion of a group of channels if SWSTRRCH is selected as trigger event by the ADC_CTRL2.EXTRSEL[3:0] bits. 0: Reset state 1: Starts conversion of channels Nations Technologies Inc. 237 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
These bits are read-only and contain the conversion results of the regular channel.The data is left- aligned or right-aligned. Nations Technologies Inc. 241 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Filter window size can be configured Filter threshold size can be configured The sampling frequency for filtering can be configured Nations Technologies Inc. 242 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
For interconnection of comparator output ports, please refer to the AFIO remapping chapter,Remap IO multiplexing function in GPIOx_AFL/AFH. COMP_OUT can be mapped to PA8, The comparator INP pins have the following configuration: Nations Technologies Inc. 243 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Since devices of different processors may be connected to the I2C bus, the levels of logic '0' and logic '1' are not fixed Nations Technologies Inc. 249 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
The functional block diagram of I C interface is shown in the figure below. Nations Technologies Inc. 250 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
SDA and SCL are drain open circuit structures, and the signal "wire-and" logic is realized through an external Nations Technologies Inc. 251 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
The I2C module supports 7-bit and 10-bit addresses, and the user can configure the address of the I2C slave through Nations Technologies Inc. 252 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 253
I2C_STS1.ACKFAIL bit (acknowledge fail) of the I2C slave will be set to notify the software Nations Technologies Inc. 253 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
I2C_DAT register, and then the I2C_STS1.RXDATNE bit is cleared to 0. Note that if the Nations Technologies Inc. 254 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
I2C timing. When these two steps are completed, I2C runs in the slave mode by default, waiting for receiving the start bit and address. Nations Technologies Inc. 255 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 256
I2C_STS1.BSF bit (byte transmission end), and the I2C interface will keep SCL low before clearing the I2C_STS1.BSF bit. After reading I2C_STS1, writing to the I2C_DAT register will clear the I2C_STS1.BSF Nations Technologies Inc. 256 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
START/STOP conditions, of course, you can also use the ordinary master receive mode. In master mode, software receiving data from I2C bus should follow the following steps: Nations Technologies Inc. 257 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 258
In this mode, the I2C interface receives data bytes from the SDA line and sends them to the DAT register through the internal shift register. Once the first byte is received, the hardware will set the Nations Technologies Inc. 258 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
4. EV7: I2C_STS1.RXDATNE=1, read the DAT register to clear this event. 5. EV7_1: I2C_STS1.RXDATNE =1, read the DAT register to clear this event. Set I2C_CTRL1.ACKEN=0 and Nations Technologies Inc. 259 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
In this situation, the last received Nations Technologies Inc. 260 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
0: I2C_CTRL1.ACKEN bit determines whether to send an ACK to the byte currently being received; I2C_CTRL1.PEC bit indicates that the byte in the current shift register is PEC. Nations Technologies Inc. 263 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
1: PEC error: receiver will returns NACK (It doesn't matter if I2C_CTRL1.ACKEN is enabled or not) OVERRUN Overrun/Underrun Nations Technologies Inc. 267 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 268
This bit is cleared by software reading and writing to the data register, or cleared by hardware when I2C_CTRL1.EN=0. 0: Data register is empty; 1: Data register is not empty. Nations Technologies Inc. 268 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 269
0: Address mismatch or no address received(slave mode) or Address sending did not end(master mode); 1: Received addresses matched(slave mode) or Address sending ends(master mode) Nations Technologies Inc. 269 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
(I2C_STS1.ARLOST=1), or when I2C_CTRL1.EN=0, the hardware clears it. 0: Data receiving mode 1: Data transmission mode; Nations Technologies Inc. 270 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Note: If you need to reconfigure BYTENUM after receiving all bytes, you need to wait for I2C_STS2.BUSY is 0 and re-enabled I2C_CTRL1.ACKEN Nations Technologies Inc. 273 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
TX pin is pulled high. When the transmitter is inactive, the TX pin reverts to the I/O Nations Technologies Inc. 275 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
9-bit data, the break frame consists of 11 bits of low level, followed by a stop bit. Nations Technologies Inc. 277 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
An interrupt is generated if UART_CTRL1.TXCIEN is '1'.UART_STS.TXC bit is cleared by a software sequence (read UART_STS register first, then write UART_DAT register). Nations Technologies Inc. 278 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
If UART_CTRL1.RXEN is reset during data transmission, the data being received will be lost; Nations Technologies Inc. 280 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Received bits Data validity Effective be invalid be invalid be invalid be invalid be invalid be invalid Effective Nations Technologies Inc. 281 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Set baud rate serial number Kbps reality Error% The value in the register 1250 312.5 19.2 19.2 156.25 Nations Technologies Inc. 282 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
| Start bit | 9-bit data | Stop bit | | start bit | 8-bit data | Parity bit | Stop bit | Even parity Nations Technologies Inc. 283 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
As shown in the Figure 15-7 below, when an idle frame is detected, UART is woken up, and then UART_CTRL1.RCVWU is cleared by hardware. At this time, UART_STS.IDLEF is not set. Nations Technologies Inc. 284 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
UART_CTRL1.RCVWU is cleared. The UART_STS.RXDNE bit will be set when this matching address is received. Data can then be transmitted normally. Nations Technologies Inc. 285 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Reset Value UART_CTRL3 014h Reserved Reserved Reset Value UART status register (UART_STS) Address offset: 0x00 Reset value: 0x0000 00C0 Nations Technologies Inc. 287 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 288
The software can clear this bit by reading UART_STS first and then reading UART_DAT. 0: No overrun error was detected. 1: Overflow error detected. Nations Technologies Inc. 288 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
DATV[8:0] Data value Contains the data sent or received; Software can change the transmitted data by writing Nations Technologies Inc. 289 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Software can set or clear this bit. 0:UART is disabled. 1:UART is enabled. Word length. Nations Technologies Inc. 290 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 291
Software can set this bit to 1 to make UART enter mute mode, and clear this bit to 0 to wake up UART. Nations Technologies Inc. 291 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
If the lower four bits of the received data frame are equal to the ADDR[3:0] value, UART will be awakened. UART control register 3(UART_CTRL3) Address offset: 0x14 Nations Technologies Inc. 292 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 293
0: Half-duplex mode is disabled. 1: Half-duplex mode is enabled. Reserved Reserved, the reset value must be maintained. Nations Technologies Inc. 293 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
SPI works in the master mode. Conversely, SPI works in the slave mode. Users can use a standard I/O pin of the master device to control the NSS pin of the slave device. Nations Technologies Inc. 295 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Figure 16-2 Slave selects management of hardware/software The following figure is an example of the interconnection of single master and single slave devices Nations Technologies Inc. 296 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Regardless of the timing mode used, the master and slave configuration must be the same. Nations Technologies Inc. 297 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
The difference is that this mode will not read the received data, so the Nations Technologies Inc. 299 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
In slave mode, serial data is continuously received when the SPI master device pulls low the NSS signal Nations Technologies Inc. 300 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
The software operation flow of the master one-wire bidirectional receive mode is the same as that of the receive-only mode. Slave full duplex mode Slave full duplex mode (SPI_CTRL1.MSEL = 0(slave), SPI_CTRL1.BIDIRMODE = 0(two-wire one-way) and Nations Technologies Inc. 301 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
SPI_CTRL1.RONLY = 0(sending mode and receiving mode)). Figure 16-9 Schematic diagram of TE/BUSY change during continuous transmission in slave unidirectional transmit-only Nations Technologies Inc. 302 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 303
Select SPI_CTRL1.CLKPOL bit and SPI_CTRL1.CLKPHA bit to define the phase relationship between data transmission and serial clock. Nations Technologies Inc. 303 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 304
SPI_STS.BUSY flag will be low for at least one SPI clock cycle between each data item (see Figure 16-9). Nations Technologies Inc. 304 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
In slave mode, the SPI_STS.BUSY flag will be low for 1 SPI clock cycle between each data item transfer. So do not use the SPI_STS.BUSY flag to handle the sending and receiving of each data item. Nations Technologies Inc. 305 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Normally, the SPI_STS.MODERR bit of the slave cannot be set to 1. However, in a multi-master configuration, the Nations Technologies Inc. 306 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
When an error (SPI_STS.OVER, SPI_STS.MODERR) is generated, this bit controls whether an interrupt is generated 0: Disable error interrupt. 1: Enable error interrupt. Nations Technologies Inc. 309 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Receive buffer is not empty 0: The receive buffer is empty. 1: The receive buffer is not empty. Nations Technologies Inc. 310 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
For 16-bit data frame format: the buffer is 16-bit, and the entire data register is used when sending and receiving, that is, SPI_DAT[15:0]. Nations Technologies Inc. 311 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Bit Field Name Description 31:8 Reserved Reserved, the reset value must be maintained. BEEPER_FREQ_SEL[5:0] Beeper output frequency selection: Nations Technologies Inc. 312 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
Page 313
0: Beeper disable(Note: After BEEPER_EN=0, the Beeper output can be turned off immediately by disabling the RCC_APBPCLKEN.BEEPEREN) 1: Beeper enable Nations Technologies Inc. 313 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
ARM Cortex®-M0 core hardware debugging module can provide the following debugging functions: SW-DP: Serial wire debugging port AHB-AP: AHB access port BPU: Break point unit Nations Technologies Inc. 314 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
The pin assignment of SWD debug interface is shown in the following table: Table 25-1 Debug port pin Debug port Pin assignment SWDIO SWCLK Nations Technologies Inc. 315 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
UCID is 128 bits and complies with the definition of the Nations Technologies chip serial number. It contains information about chip production and version.
Page 317
SRAM capacity 4bit 1KB as unit, SRAM siz e = N * 1KB Reserved 4bit Keep it all 1. Nations Technologies Inc. 317 / 319 Tel:+86-755-86309900 Email:info@nationstech.com Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North. Nanshan District, Shenzhen, 518057, P.R.China...
It is the responsibility of the user of this document to properly design, program, and test the functionality and safety of any application made of this information and any resulting product. In no event shall NATIONS be liable for any direct, indirect, incidental, special, exemplary, or consequential damages arising in any way out of the use of this document or the Product.
Need help?
Do you have a question about the N32G003 Series and is the answer not in the manual?
Questions and answers