5.1.3.2.2. Functional Requirements for the Timer Module

Requirement: label REQ_INT3_1732899866 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Functional
priority: Low

The function must enable the timer clock.

Requirement: label REQ_INT3_1732899876 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Functional
priority: Low

The function must configure the GPIO pin to its alternate function mode.

Requirement: label REQ_INT3_1732899895 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Functional
priority: Low

The function must set the GPIO pin as an output to allow PWM generation.

Requirement: label REQ_INT3_1732899916 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Functional
priority: Low

The function must clear the TIM_CCMR register bits.

Requirement: label REQ_INT3_1732899927 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Functional
priority: Low

The function must enable the output compare mode.

Requirement: label REQ_INT3_1732899936 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Functional
priority: Low

The function must enable preload mode.

Requirement: label REQ_INT3_1732899952 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Functional
priority: Low

The function must calculate the timer period.

Requirement: label REQ_INT3_1732899972 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Functional
priority: Low

The function must determine the prescaler value.

Requirement: label REQ_INT3_1732899963 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Functional
priority: Low

The function must set the prescaler in the TIM_PSC register.

Requirement: label REQ_INT3_1732900014 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Functional
priority: Low

The function must calculate the ARR value.

Requirement: label REQ_INT3_1732900022 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Functional
priority: Low

The function must set the ARR value in the TIM_ARR register.

Requirement: label REQ_INT3_1732900041 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Functional
priority: Low

The function must calculate the CCR value.

Requirement: label REQ_INT3_1732900036 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Functional
priority: Low

The function must write the CCR value to the TIM_CCR register.

Requirement: label REQ_INT3_1732900030 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Functional
priority: Low

The function must start the timer by setting the CEN bit in the TIM_CR1 register.

Requirement: label REQ_INT3_1732900062 ../../../../../_images/arrow-right-circle.svg
status: Draft
style: red_bar
category: Functional
priority: Low

The function must enable the output channel.