四轴飞行器控制电路详解_图文_第1页
四轴飞行器控制电路详解_图文_第2页
四轴飞行器控制电路详解_图文_第3页
四轴飞行器控制电路详解_图文_第4页
四轴飞行器控制电路详解_图文_第5页
已阅读5页,还剩5页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、 . It will ask you if you want to begin a new project, or open an existing project.Choose Cancel and click on the connect icon. It will open a new window with a connection dialogue asking you to select your programmer andconnection port. With a programmer like the AVRISP mkII it is easy because when

2、 you select thatprogrammer it brings back only one choice of port. USB. The AVR-ISP500 from Olimex isrecognised as a STK500 and has the option to auto choose the port. If it fails to recognise the port,you may need to manually set the port for the programmer in your Windows device settings toCOM1 up

3、 to COM4 for AVR Studio to recognise it. When you have chosen your programmer and port, click connect and you will be taken to the AVR programming dialogue.In the AVR programming window go to the "Main" tab and make sure that the chip you areprogramming (e.g. Atmega168 is selected in the &

4、quot;Device and Signature Bytes" drop down menu.Also make sure that the" Programming mode and target settings are set to ISP. Make sure that thesettings for the ISP mode have the ISP frequency set low enough to talk to the chip. I set my AVR-ISP500 programmer's frequency to 115.2 kHz.

5、This is quite an important setting to get right. If youclick on "Read Signature" and you get the response "Signature matches selected device" you havesuccessfully managed to connect to your IC. Also make sure that the target board or PCB is powered (You can check this by clicking

6、 on the HWSettings tab and checking if the programmer can see any voltage. Now it is time to set the fuses so click on the "Fuses" tab. AVR Studio is very good in this respect asit will work out the fuse settings for your particular IC depending upon the check box options youchoose. Set th

7、e check boxes according to the following. SELFPRGEN: uncheckedRSTDISBL: uncheckedDWEN: uncheckedSPIEN: checked WDTON: uncheckedEESA VE: uncheckedBODLEVEL: Brown-out detection at VCC=1.8 VCKDIV8 : uncheckedCKOUT: uncheckedSUT_CKSEL: Int. RC Osc. 8 MHz; Start-up time PWRDWN/RESET: 6 CK/14 CK + 65 msTh

8、e fuse setting output will be displayed at the bottom of the window. Check the "Auto read" "Smart warnings" and "Verify after programming" options at the bottom ofthe window and then click program. If all goes to plan, you should get OK response messages in the output s

9、ection at the bottom of yourwindow for Entering Programming mode, writing fuse address, reading fuse address, Fuse bitsverification and leaving programming mode. If you get error messages, then recheck your chip version and all the connections from yourprogrammer to the board and that the power is o

10、n. Also make sure that your fuse settings are asdescribed above.Flash the FirmwareClick on the "Program" tab and have a look at the "Flash" section which is the 2nd section down.Check the "Input HEX file" check box. Then browse the unzipped firmware folder and click ony

11、our firmware HEX file suitable for the chip you are programming for an Atmega168. Then click"Program" in the Flash section of the window and you should get an OK response in the outputsection at the bottom of the window. Then click "Verify" to make sure that the program has beensuccessfully u

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论