⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 basic-pwm-project.html

📁 at91sam7x的最新版Ucos-II内核源码.
💻 HTML
字号:
<!DOCTYPE PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <title>Atmel Corporation - Basic PWM Project 1.4</title>
        <link rel="stylesheet" type="text/css" href="css/style.css" />
    </head>
    
    <body>
        <h1>Basic PWM Project 1.4</h1>

        <div id="breadcrumb">
            <a href="../index.html">Main</a> >
            <a href="examples.html">Examples</a> >
            PWM
        </div>

        <h2>Purpose</h2>
        <p>
            This example demonstrates a simple configuration of two PWM channels to generate variable duty cycle signals.
            This will cause one or more LEDs the evaluation kit to glow repeatedly.
        </p>
        <div class="requirements">
            <h2>Hardware Requirements</h2>
            <p>
                The following Atmel evaluation kits can be used to run this example:
                <ul>
                    <li>AT91SAM7A3-EK</li>
                    <li>AT91SAM7S-EK</li>
                    <li>AT91SAM7SE-EK</li>
                    <li>AT91SAM7X-EK</li>
                    <li>AT91SAM7XC-EK</li>
                    <li>AT91SAM7L-EK</li>
                    <li>AT91SAM7L-STK</li>
                    <li>AT91SAM9RL-EK</li>
                    <li>AT91SAM9263-EK</li>
                </ul>
            </p>
        </div>

        <h2>Description</h2>
        <p>
            Two PWM channels (channel #1 and channel #2) are configured to generate a 100kHz PWM signal. On channel #1, the
            signal is configured as left-aligned. On channel #2, the signal is center-aligned and the polarity is inverted.
        </p>
        <p>
            On most Atmel evaluation kits, PWM signals for channels #1 and #2 are connected to two LEDs on the board. Since
            the duty cycle of the PWM signals varies continuously, the two LEDs will alternate between their minimum and
            maximum intensity. Note that on some boards, only one LED will be connected.
        </p>
       
        <h2>Usage</h2>
        <ol>
            <li>
                Build the program and download it inside the evaluation board.  Please refer
                to the <a href="http://www.atmel.com/dyn/resources/prod_documents/doc6132.pdf">SAM-BA User Guide</a>,
                the <a href="http://www.atmel.com/dyn/resources/prod_documents/doc6310.pdf">GNU-Based Software Development</a>
                application note or to the <a href="http://www.iar.se/website1/1.0.1.0/78/1/index.php?">IAR EWARM User Guide</a>,
                depending on your chosen solution.
            </li>
            <li>
                Optionally, on the computer, open the DBGU port with a terminal application
                (e.g. HyperTerminal on Microsoft Windows), to see debug traces output by the example.
            </li>
            <ul>
                <li>Settings: 115200 bauds, 8 bits, 1 stop bit, no parity, no flow control.</li>
            </ul>
            <li>
                Start the application.
            </li>
            <li>
                Depending on the board being used, either one or two LEDs will start glowing. If two LEDs are glowing,
                their states will be inverted (since channel #2 uses a reversed polarity).
            </li>
        </ol>

        <h6>Atmel Corporation ©2008</h6>
    </body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -