Lincoln Timer to Generate a PWM
From Manuals
(Difference between revisions)
(Created page with '==Compatibility [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60], [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60E]== This example demonstrat…') |
(→Compatibility Lincoln 60, Lincoln 60E) |
||
| (4 intermediate revisions not shown) | |||
| Line 1: | Line 1: | ||
==Compatibility [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60], [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60E]== | ==Compatibility [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60], [http://www.micromint.com/index.php/SBC/lincoln60.html Lincoln 60E]== | ||
| - | This example demonstrates how to use timers to generate PWM signals with different duty cycles. The first UART, which is connected to the COM1 on the Lincoln microcontroller board, is configured for 115,200 bits per second, and 8-n-1 mode. When the program is started a message will be printed to the terminal. The below screen shot is of the timer_pwmsignal in action. | + | This example demonstrates how to use timers to generate PWM signals with different duty cycles. Run the example and observe the 4 signals using an oscilloscope. Below is a list of the signals and what duty cycle they should be at: |
| + | |||
| + | * P1.28 on J2 pin 19: duty cycle = 12.5% | ||
| + | * P1.22 on J2 pin 13: duty cycle = 25% | ||
| + | * P0.6 on J2 pin 5: duty cycle = 37.5% | ||
| + | * P0.10 on J2 pin 9: duty cycle = 50% | ||
| + | |||
| + | The first UART, which is connected to the COM1 on the Lincoln microcontroller board, is configured for 115,200 bits per second, and 8-n-1 mode. When the program is started a message will be printed to the terminal. The below screen shot is of the timer_pwmsignal in action. | ||
[[Image:Lincoln_timer_pwmsignal.png|center|]] | [[Image:Lincoln_timer_pwmsignal.png|center|]] | ||
| + | |||
| + | |||
| + | Below is a screen capture of the signals on P1.28 (J2 pin 19) and P1.22 (J2 pin 13). | ||
| + | |||
[[Image:Lincoln_timer_pwmsignal1.png|center|]] | [[Image:Lincoln_timer_pwmsignal1.png|center|]] | ||
| + | |||
| + | |||
| + | Below is a screen capture of the signals on P0.6 (J2 pin 5) and P0.10 (J2 pin 9). | ||
| + | |||
[[Image:Lincoln_timer_pwmsignal2.png|center|]] | [[Image:Lincoln_timer_pwmsignal2.png|center|]] | ||
Current revision as of 20:16, 12 April 2012
Compatibility Lincoln 60, Lincoln 60E
This example demonstrates how to use timers to generate PWM signals with different duty cycles. Run the example and observe the 4 signals using an oscilloscope. Below is a list of the signals and what duty cycle they should be at:
- P1.28 on J2 pin 19: duty cycle = 12.5%
- P1.22 on J2 pin 13: duty cycle = 25%
- P0.6 on J2 pin 5: duty cycle = 37.5%
- P0.10 on J2 pin 9: duty cycle = 50%
The first UART, which is connected to the COM1 on the Lincoln microcontroller board, is configured for 115,200 bits per second, and 8-n-1 mode. When the program is started a message will be printed to the terminal. The below screen shot is of the timer_pwmsignal in action.
Below is a screen capture of the signals on P1.28 (J2 pin 19) and P1.22 (J2 pin 13).
Below is a screen capture of the signals on P0.6 (J2 pin 5) and P0.10 (J2 pin 9).



