首页 > 器件类别 > 开发板/开发套件/开发工具

MIKROE-346

Development Software MIKROC PRO AVR

器件类别:开发板/开发套件/开发工具   

厂商名称:MikroElektronika

厂商官网:https://www.mikroe.com

下载文档
MIKROE-346 在线购买

供应商:

器件:MIKROE-346

价格:-

最低购买:-

库存:点击查看

点击购买

器件参数
参数名称
属性值
产品种类
Product Category
Development Software
制造商
Manufacturer
MikroElektronika
产品
Product
Software - Compilers
用于
For Use With
AVR
Core
AVR
文档预览
Copyright © mikroElektronika, 2012. All rights reserved.
TO OUR VALUED CUSTOMERS
I want to express my thanks to you for being interested in our products and for having
confidence in MikroElektronika.
The primary aim of our company is to design and produce high quality electronic products
and to constantly improve the performance thereof in order to better suit your needs.
Nebojsa Matic
General Manager
The AVR®, Atmega® names, logos and products names are trademarks of Atmel Inc. in the U.S.A and other countries.
Page 2
Table of Contents
1. Introduction to mikroC PRO for AVR® . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2. Hardware Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3. Creating a New Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Step 1 - Project Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Step 2 - Add files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Step 3 - Include Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Step 4 - Finishing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Blank new project created . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4. Code Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5. Building the Source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6. Changing Project Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7. What’s next . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
04
05
06
07
10
11
12
13
14
16
17
18
Page 3
1. Introduction to mikroC PRO for AVR
®
mikroC PRO for AVR®
organizes applica-
tions into projects consisting of a single
project file (file with the .mcpav
extension)
and one or more source files (files with the
.c extension). The mikroC PRO for AVR®
compiler allows you to manage several
projects at a time. Source files can be
compiled only if they are part of the project.
A project file contains:
• Project
name and optional description;
• Target
device in use;
• Device
clock;
• List of the project source files;
• Binary files (*.mcl); and
• Other files.
In this reference guide, we will create a
new project, write code, compile it and test
the results. The purpose of this project is
to make microcontroller PORTA LEDs blink,
which will be easy to test.
03
05
07
02
01
06
04
08
01
Main Toolbar
02
Code Explorer
03
Project Settings
Page 4
04
Messages
05
Code Editor
06
Image Preview
07
Project Manger
08
Library Manager
2. Hardware Connection
Let’s make a simple “Hello world” example for the
selected microcontroller. First thing embedded
programmers usually write is a simple
LED blinking
program. So, let’s do that in a few simple lines of C code.
LED blinking is just turning ON and OFF LEDs that are
connected to desired PORT pins. In order to see the
example in action, it is necessary to connect the target
microcontroller according to schematics shown on
Figure 2-1.
In the project we are about to write, we
will use only
PORTA,
so you should connect the LEDs
to PORTA only. Eight LEDs are more then enough for
demonstration.
PB0
PB1
PB2
PB3
PB4
PB5
PB6
PB7
RESET
VDD
GND
XTAL2
XTAL1
PD0
PD1
PD2
PD3
PD4
PD5
PD6
PA0
PA1
PA2
PA3
PA4
PA5
PA6
PA7
AREF
GND
AVDD
PC7
PC6
PC5
PC4
PC3
PC2
PC1
PC0
PD7
Figure 2-1:
Hardware connection schematics
VCC
LD4
PA0
PA1
PA2
PA3
PA4
PA5
PA6
PA7
PA4
LD5
PA5
LD6
PA6
LD7
PA7
LD0
PA0
LD1
PA1
LD2
PA2
LD3
PA3
R5
4K7
R6
4K7
R7
4K7
R8
4K7
R1
4K7
R2
4K7
R3
4K7
R4
4K7
C1
22pF
X1
8MHz
C2
22pF
Prior to creating a new project, it is necessary to do the following:
Step 1: Install the compiler
Install the mikroC PRO for AVR® compiler from the
Product DVD
or
download it from the MikroElektronika website:
http://www.mikroe.com/eng/products/view/228/mikroc-pro-for-avr/
Step 2: Start up the compiler
Double click on the compiler icon in the Start menu, or on your
desktop to Start up the mikroC PRO for AVR® compiler. The mikroC
PRO for AVR® IDE (Integrated Development Environment) will appear
on the screen. Now you are ready to start creating a new project.
Page 5
ATmega16
查看更多>
参数对比
与MIKROE-346相近的元器件有:MIKROE-732。描述及对比如下:
型号 MIKROE-346 MIKROE-732
描述 Development Software MIKROC PRO AVR DC Power Connectors 4P POWER PLUG SNAP AND LOCK
产品种类
Product Category
Development Software Development Software
制造商
Manufacturer
MikroElektronika MikroElektronika
产品
Product
Software - Compilers Software - Compilers
用于
For Use With
AVR AVR
Core AVR AVRyzrttftsxbxabcfcdryvtvuerqvutwrwyuvccs
从BLE到Mesh——蓝牙的物联网之路
摘要 蓝牙技术已经从一种连接PC外设的方式发展成为一种强大的工业和国内物联网连接解决方案。但是...
他们逼我做卧底 RF/无线
求助:如何大建短信平台,可以接受用户发送来的消息??
如何大建短信平台,可以接受用户发送来的消息??求各位大侠给点建议,具体做些什么样的准备工作,以及需要...
ykfall 嵌入式系统
自制STC89C5X下载线
这是哥们用了好几个小时做出来的STC89C5X下载线,可能有些粗糙,但是经验证,确实可用! 晚上添加...
西门 DIY/开源硬件专区
菜鸟请教一个关于测量电容两端电压的问题
刚才叙述不清,现在我重新解释一遍吧: 我们是做电容器的厂家,电容器制造时有个工艺就是对产品施加1...
天涯海角sr 电源技术
【任性DIY】D几个可调移动电源
暂时也没有什么好的diy点子,工作上要用到24v移动电源来测试,就顺便记录一下发上来了。 没啥技术...
okgogogogo DIY/开源硬件专区
白皮书分享!无刷直流电机及其驱动器的设计挑战与注意事项
刚挖到的干货资料!有需要的小伙伴赶紧码住收藏下载!! 《无刷直流电机及其驱动器的设计挑战与...
okhxyyo 电源技术
热门器件
热门资源推荐
器件捷径:
A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 AA AB AC AD AE AF AG AH AI AJ AK AL AM AN AO AP AQ AR AS AT AU AV AW AX AY AZ B0 B1 B2 B3 B4 B5 B6 B7 B8 B9 BA BB BC BD BE BF BG BH BI BJ BK BL BM BN BO BP BQ BR BS BT BU BV BW BX BY BZ C0 C1 C2 C3 C4 C5 C6 C7 C8 C9 CA CB CC CD CE CF CG CH CI CJ CK CL CM CN CO CP CQ CR CS CT CU CV CW CX CY CZ D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 DA DB DC DD DE DF DG DH DI DJ DK DL DM DN DO DP DQ DR DS DT DU DV DW DX DZ
需要登录后才可以下载。
登录取消