| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
AN4157 bảng dữ liệu(PDF) 16 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4157 bảng dữ liệu(HTML) 16 Page - STMicroelectronics |
|
16 / 24 page ![]() Peripheral firmware examples description AN4157 16/24 Doc ID 023629 Rev 1 The associated firmware performs the following operations: ● It configures the Tamper pin to be falling edge, and enables the Tamper interrupt. ● It writes the data to all RTC Backup data registers, then check whether the data were correctly written. If yes, LED3 turns on, otherwise LED4 turns on. ● It applies a low level on the TAMPER2 pin (PA00) by pressing TAMPER push button, the RTC backup data registers are reset and the Tamper interrupt is generated. The corresponding ISR then checks if the RTC Backup data registers are cleared. If so, LED5 is switched ON, otherwise LED6 is switched ON. 3.18 SysTick timer example 3.18.1 Purpose This example shows how to configure the SysTick timer and use it to generate a 1 ms time base. 3.18.2 Description In this example: ● The SysTick timer is initialized. ● The SysTick timer interrupt is enabled in the NVIC. ● The SysTick timer/counter starts in free running mode to generate periodical interrupts. ● The SysTick timer interrupt is triggered every 1 ms. ● A Delay function is implemented, based on the SysTick timer end-of-count event. The eight LEDs are toggled with a timing defined by the Delay function. 3.19 TIM asymmetric example 3.19.1 Purpose This example describes how to configure the timer 1 and 8 peripheral to generate an asymmetric signal. 3.19.2 Description TIM8 is configured to generate an asymmetric signal with a programmable phase-shifted signal on TIM8_CH2: ● TIM8 Channel 1 is configured in PWM2 mode ● TIM8 Channel 2 is configured in Asymmetric PWM2 mode ● The counter mode is center aligned mode ● The pulse length and the phase shift are programmed consecutively in TIM8_CCR2 and TIM8_CCR1. |
|
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |