Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (5)
SysTick_ARM
no vote
This example shows how to configure the SysTick to generate a time base equal to 1 ms. The system clock is set to 168 MHz, the SysTick is clocked by the AHB clockHCLK. A "Delay" function is implemented based on the SysTick end-of-count event. Four LEDs are toggled with a timing defined by the Delay function.
jrtrance
2016-08-23
0
1
ADC3_DMA_Keil
no vote
This example describes how to use the ADC3 and DMA to transfer continuously converted data from ADC3 to memory. The ADC3 is configured to convert continuously channel7. Each time an end of conversion occurs the DMA transfers, in circular mode, the converted data from ADC3 DR register to the ADC3ConvertedValue variable. In this example, the system clock is 144MHz, APB2 = 72MHz and ADC clock = APB2/2. Since ADC3 clock is 36 MHz and sampling time is set to 3 cycles, the conversion time to 12bit data is 12 cycles so the total conversion time is (12+3)/36= 0.41us(2.4Msps).
jrtrance
2016-08-23
1
1
FLASH_Program
4.0
This example provides a description of how to program the STM32F4xx FLASH. After Reset, the Flash memory Program/Erase Controller is locked. To unlock it, the FLASH_Unlock function is used. Before programming the desired addresses, an erase operation is performed using the flash erase sector feature. The erase procedure starts with the calculation of the number of sector to be used. Then all these sectors will be erased one by one by calling FLASH_EraseSector function. Once this operation is finished, the programming operation will be performed by using the FLASH_ProgramWord function. The written data is then checked and the result of the programming operation is stored into the MemoryProgramStatus variable.
jrtrance
2016-08-23
0
1
RCC1_ARM_KEIL
no vote
This example shows how to use, for debug purpose, the RCC_GetClocksFreq function to retrieve the current status and frequencies of different on chip clocks. You can see the RCC_ClockFreq structure content, which hold the frequencies of different on chip clocks, using your toolchain debugger. This example handles also the High Speed External clock (HSE) failure detection: when the HSE clock disappears (broken or disconnected external Quartz) HSE, PLL are disabled (but no change on PLL config), HSI selected as system clock source and an interrupt (NMI) is generated. In the NMI ISR, the HSE, HSE ready interrupt are enabled and once HSE clock recover, the HSERDY interrupt is generated and in the RCC ISR routine the system clock is reconfigured to its previous state (before HSE clock failure). You can monitor the system clock on MCO2 pin(PC9). Four LEDs are toggled with a timing defined by the Delay function.
jrtrance
2016-08-23
0
1
MEMS_ARM_KEIL
no vote
This example shows how to configure the MEMS accelerometre to detect acceleration X/Y axis and to detect the click/double click on Z axis. After startup the program checks the MEMS accelerometre status registers and behaves as follows: 1. If the board is moved the acceleration is detected on x/Y axis and LEDs toggles according to the motion direction and speed. 2. If a click is detected on Z axis LED3 and LED6 toggles during 3s. 3. If a double click is detected on Z axis all LEDs toggles during 3s.
jrtrance
2016-08-23
0
1
No more~