AVR Tool Guide (2)

Source: Internet
Author: User
Document directory
  • 3.2.1. Use of syntax
  • 3.2.1. Start Design
  • 3.2.3. Compile

ATMEL's AVR single-chip microcomputer is an enhanced type of single-chip microcomputer used to carry flash in the memory. The flash memory on the chip is attached to the user's products. It can be programmed and programmed at any time, making the user's product design easy, easy to upgrade. The AVR Microcontroller adopts an enhanced Proteus structure to provide high-speed processing capabilities. It can execute complex commands within a clock cycle and implement the processing capability of 1 MIPS per MHz. The operating voltage of the AVR microcontroller is 2.7-6.0 V, which can optimize power consumption. AVR microcontroller is widely used in computer external equipment, industrial real-time control, instrumentation, communication equipment, household appliances, Aerospace Equipment and other fields.

Continue with the content of the AVR Tool Guide (1)

3. wincupl

Wincupl (Programmable Logic universal compiler) is a logical compiler that can create complex logic designs for spld and CPLD. This tool allows engineers to design their own logic circuits and create JEDEC (associated with the Electronic Equipment Engineering Committee standards) files. Therefore, you can use Rom writer to map data in the device.

Wincupl ()

The wincupl suite includes the following tools:

Wincupl is a powerful front-end and user interface designed for all wincupl tools, including compilers.

After compilation, the logic description written by cupl compiler can be allocated to the specified logical device (plds. Based on the compilation, the cupl compiler looks for its library files and creates files that can be downloaded to the device compiler. From then on, the PLD can be compiled.

SimulatorThey can use csim for simulation before being designed as a product. Csim compares the expected value with the actual value calculated in the cupl operation. Simulation input and results can be observed graphically and modified using winsim.

WinsimThe simulation input and result can be set and displayed through winsim.

3.1. How to install

1) to the http://www.atmel.com/dyn/products/tools_card.asp? Tool_id = 2759

2) Click "register and download" on the page ".

Figure 3 Example 1. Download wincupl from the Atmel website.

1) register and obtain the serial number before downloading. After completing the preparation, you can start downloading.

2) unzip awincupl.exeto run the downloaded file named awincupl.exe"

3) install the following installer wizard

4) After restarting, run Start> program> Atmel wincupl> wincupl

Figure 3 Overview 2. wincupl's main interface.

3.2. Use cupl language for Design

This section describes the cupl design operations and shows you an example of the design process.

3.2.1. Use of syntax

The basic logic and arithmetic operators, as well as the functions used in the design of binary equations are as follows.

1) logical operators

The following table shows the expressions and priorities of logical operators such as not, And, or, and XOR.

2) Arithmetic Operators and functions

The following table shows the expressions, samples, and priorities of six common operators.

The arithmetic functions defined by the $ repeat and $ macro commands can be used in arithmetic expressions. The following table shows the arithmetic function and its hexadecimal number.

3.2.1. Start Design

Now we will introduce how to design PLD through a simple example. Follow these steps to execute the PLD containing the wait function.

1) In wincupl, click File> New> project after execution.

2) You can write the content mentioned above in the design options, and then click OK. The input pin window appears.

Figure 3 UI 3. Input Pin

3) enter the input pin number and click OK. Then, input output pin, pinnodess, and other information in the same way. (* If the designer already knows the device he wants to use, pin distribution is required)

4) You have created a table in the design window and then compiled the program as needed.

Figure 3 Example 4. sample code.

5) on the Options> devices menu, select the device you want to use. After the device selection is complete, enter the "device mnemonic" Information on your programming page.
See the screen in the lower left corner.

Figure 3. device Selection.

3.2.3. Compile

1) After the programming process ends, select the project you want to compile by running the menu or corresponding icons.

Figure 3. device Association Compilation.

2) After the compilation process is complete, the compilation result page is displayed on your monitor, as shown in.

Figure 3 Example 7. Compilation result

3) You can confirm the newly created JEDEC file by compiling.

However, if you write device information under virtual conditions, you cannot generate a JEDEC file. Therefore, this process requires special attention.

Figure 3 Figure 8. Create a JEDEC File

4) You can use Rom writer to perform write operations in common JEDEC files on the device.

You can get more information from the http://www.atmel.com or wincupl user manual.

Thank you for your attention!

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.