Line No. | Rev | Author | Line |
---|---|---|---|
1 | 6 | kaklik | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
2 | <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> |
||
3 | <title>Procyon AVRlib: Timer PWM Commands</title> |
||
4 | <link href="dox.css" rel="stylesheet" type="text/css"> |
||
5 | </head><body> |
||
6 | <!-- Generated by Doxygen 1.4.2 --> |
||
7 | <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a></div> |
||
8 | <h1>Timer PWM Commands<br> |
||
9 | <small> |
||
10 | [<a class="el" href="group__timer.html">Timer Function Library (timer.c)</a>, <a class="el" href="group__timerx8.html">Timer Function Library for ATmegaXX8 (timerx8.c)</a>]</small> |
||
11 | </h1><hr><a name="_details"></a><h2>Detailed Description</h2> |
||
12 | These commands control PWM functionality on timer1 |
||
13 | <p> |
||
14 | <table border="0" cellpadding="0" cellspacing="0"> |
||
15 | <tr><td></td></tr> |
||
16 | <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
||
17 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerpwm.html#ga0">timer1PWMInit</a> (u08 bitRes)</td></tr> |
||
18 | |||
19 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerpwm.html#ga1">timer1PWMInitICR</a> (u16 topcount)</td></tr> |
||
20 | |||
21 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga2" doxytag="timerpwm::timer1PWMOff"></a> |
||
22 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerpwm.html#ga2">timer1PWMOff</a> (void)</td></tr> |
||
23 | |||
24 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Turn off all timer1 PWM output and set timer mode to normal. <br></td></tr> |
||
25 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga3" doxytag="timerpwm::timer1PWMAOn"></a> |
||
26 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerpwm.html#ga3">timer1PWMAOn</a> (void)</td></tr> |
||
27 | |||
28 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Turn on/off Timer1 PWM outputs. Turn on timer1 Channel A (OC1A) PWM output. <br></td></tr> |
||
29 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga4" doxytag="timerpwm::timer1PWMBOn"></a> |
||
30 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerpwm.html#ga4">timer1PWMBOn</a> (void)</td></tr> |
||
31 | |||
32 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Turn on timer1 Channel B (OC1B) PWM output. <br></td></tr> |
||
33 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga5" doxytag="timerpwm::timer1PWMAOff"></a> |
||
34 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerpwm.html#ga5">timer1PWMAOff</a> (void)</td></tr> |
||
35 | |||
36 | <tr><td class="mdescLeft"> </td><td class="mdescRight">turn off timer1 Channel A (OC1A) PWM output <br></td></tr> |
||
37 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga6" doxytag="timerpwm::timer1PWMBOff"></a> |
||
38 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerpwm.html#ga6">timer1PWMBOff</a> (void)</td></tr> |
||
39 | |||
40 | <tr><td class="mdescLeft"> </td><td class="mdescRight">turn off timer1 Channel B (OC1B) PWM output <br></td></tr> |
||
41 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga7" doxytag="timerpwm::timer1PWMASet"></a> |
||
42 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerpwm.html#ga7">timer1PWMASet</a> (u16 pwmDuty)</td></tr> |
||
43 | |||
44 | <tr><td class="mdescLeft"> </td><td class="mdescRight">set duty of timer1 Channel A (OC1A) PWM output <br></td></tr> |
||
45 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga8" doxytag="timerpwm::timer1PWMBSet"></a> |
||
46 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerpwm.html#ga8">timer1PWMBSet</a> (u16 pwmDuty)</td></tr> |
||
47 | |||
48 | <tr><td class="mdescLeft"> </td><td class="mdescRight">set duty of timer1 Channel B (OC1B) PWM output <br></td></tr> |
||
49 | </table> |
||
50 | <hr><h2>Function Documentation</h2> |
||
51 | <a class="anchor" name="ga0" doxytag="timer.h::timer1PWMInit"></a><p> |
||
52 | <table class="mdTable" cellpadding="2" cellspacing="0"> |
||
53 | <tr> |
||
54 | <td class="mdRow"> |
||
55 | <table cellpadding="0" cellspacing="0" border="0"> |
||
56 | <tr> |
||
57 | <td class="md" nowrap valign="top">void timer1PWMInit </td> |
||
58 | <td class="md" valign="top">( </td> |
||
59 | <td class="md" nowrap valign="top">u08 </td> |
||
60 | <td class="mdname1" valign="top" nowrap> <em>bitRes</em> </td> |
||
61 | <td class="md" valign="top"> ) </td> |
||
62 | <td class="md" nowrap></td> |
||
63 | </tr> |
||
64 | </table> |
||
65 | </td> |
||
66 | </tr> |
||
67 | </table> |
||
68 | <table cellspacing="5" cellpadding="0" border="0"> |
||
69 | <tr> |
||
70 | <td> |
||
71 | |
||
72 | </td> |
||
73 | <td> |
||
74 | |||
75 | <p> |
||
76 | Enter standard PWM Mode on timer1. <dl compact><dt><b>Parameters:</b></dt><dd> |
||
77 | <table border="0" cellspacing="2" cellpadding="0"> |
||
78 | <tr><td valign="top"></td><td valign="top"><em>bitRes</em> </td><td>indicates the period/resolution to use for PWM output in timer bits. Must be either 8, 9, or 10 bits corresponding to PWM periods of 256, 512, or 1024 timer tics. </td></tr> |
||
79 | </table> |
||
80 | </dl> |
||
81 | |||
82 | <p> |
||
83 | Definition at line <a class="el" href="timer_8c-source.html#l00277">277</a> of file <a class="el" href="timer_8c-source.html">timer.c</a>. </td> |
||
84 | </tr> |
||
85 | </table> |
||
86 | <a class="anchor" name="ga1" doxytag="timer.h::timer1PWMInitICR"></a><p> |
||
87 | <table class="mdTable" cellpadding="2" cellspacing="0"> |
||
88 | <tr> |
||
89 | <td class="mdRow"> |
||
90 | <table cellpadding="0" cellspacing="0" border="0"> |
||
91 | <tr> |
||
92 | <td class="md" nowrap valign="top">void timer1PWMInitICR </td> |
||
93 | <td class="md" valign="top">( </td> |
||
94 | <td class="md" nowrap valign="top">u16 </td> |
||
95 | <td class="mdname1" valign="top" nowrap> <em>topcount</em> </td> |
||
96 | <td class="md" valign="top"> ) </td> |
||
97 | <td class="md" nowrap></td> |
||
98 | </tr> |
||
99 | </table> |
||
100 | </td> |
||
101 | </tr> |
||
102 | </table> |
||
103 | <table cellspacing="5" cellpadding="0" border="0"> |
||
104 | <tr> |
||
105 | <td> |
||
106 | |
||
107 | </td> |
||
108 | <td> |
||
109 | |||
110 | <p> |
||
111 | Enter PWM Mode on timer1 with a specific top-count value. <dl compact><dt><b>Parameters:</b></dt><dd> |
||
112 | <table border="0" cellspacing="2" cellpadding="0"> |
||
113 | <tr><td valign="top"></td><td valign="top"><em>topcount</em> </td><td>indicates the desired PWM period in timer tics. Can be a number between 1 and 65535 (16-bit). </td></tr> |
||
114 | </table> |
||
115 | </dl> |
||
116 | |||
117 | <p> |
||
118 | Definition at line <a class="el" href="timer128_8c-source.html#l00297">297</a> of file <a class="el" href="timer128_8c-source.html">timer128.c</a>. </td> |
||
119 | </tr> |
||
120 | </table> |
||
121 | <hr size="1"><address style="align: right;"><small>Generated on Sun Oct 29 03:41:09 2006 for Procyon AVRlib by |
||
122 | <a href="http://www.doxygen.org/index.html"> |
||
123 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address> |
||
124 | </body> |
||
125 | </html> |
Powered by WebSVN v2.8.3