Writing /var/lib/dokuwiki/data/meta/teaching/ie0117/proyectos/2012/i/final/stm32f4-discovery/controlador.meta failed
teaching:ie0117:proyectos:2012:i:final:stm32f4-discovery:controlador
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
teaching:ie0117:proyectos:2012:i:final:stm32f4-discovery:controlador [2016/03/07 15:25] – ↷ Page moved from teaching:ie0117:proyectos:2012:proyectos_2012:final:stm32f4-discovery:controlador to teaching:ie0117:proyectos:2012:i:final:stm32f4-discovery:controlador amora | teaching:ie0117:proyectos:2012:i:final:stm32f4-discovery:controlador [2022/09/20 00:08] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 70: | Line 70: | ||
From the image you might observe that there is a counter (CNT), three compare registers, and six outputs CH1, CH1N, CH2, CH2N, CH3 and CH3N, the N comes from negated, meaning that that output will have the opposite sign than it's predecessor. This six channels will be the six signals we'll use to generate the sine wave. | From the image you might observe that there is a counter (CNT), three compare registers, and six outputs CH1, CH1N, CH2, CH2N, CH3 and CH3N, the N comes from negated, meaning that that output will have the opposite sign than it's predecessor. This six channels will be the six signals we'll use to generate the sine wave. | ||
- | There are some details that must be set before generating the PWM ([[teaching: | + | There are some details that must be set before generating the PWM ([[teaching: |
* We must start the clock | * We must start the clock | ||
Line 100: | Line 100: | ||
These are all the files needed to run it: | These are all the files needed to run it: | ||
- | - Setup file, this enables the GPIO, the acceptance of interruptions, | + | - Setup file, this enables the GPIO, the acceptance of interruptions, |
- | - Interrupt handler, this file manages the interruption of the user button, and also changes the PWM duty cycle when the counter reaches the compare value [[teaching: | + | - Interrupt handler, this file manages the interruption of the user button, and also changes the PWM duty cycle when the counter reaches the compare value [[teaching: |
- | - PWM file this file just calls the other functions, to set the GPIO, the CLK, the TIM, and the EXTI (external interrupt) [[teaching: | + | - PWM file this file just calls the other functions, to set the GPIO, the CLK, the TIM, and the EXTI (external interrupt) [[teaching: |
- | - Makefile, this is needed to compile the program [[teaching: | + | - Makefile, this is needed to compile the program [[teaching: |
Since we are going to be using mathematical functions like sine function we must add a flag in the // | Since we are going to be using mathematical functions like sine function we must add a flag in the // |
teaching/ie0117/proyectos/2012/i/final/stm32f4-discovery/controlador.1457364315.txt.gz · Last modified: 2022/09/20 00:08 (external edit)