AVR编程接口福彩三d说明

Thank you for purchasing the Synthrotek AVR编程接口 kit! It is very important to get all the components properly soldered 进入 the PCB in the correct placement. If you feel like you can handle it, please proceed! If not, get some help from a friend with experience or purchase a fully completed unit.

请按照 物料清单 , 而不是这些说明或图片。自编写这些组件以来,某些组件可能已更改,否则我们可能无法在图片中获得适当的组件。

水晶

此构建中的水晶是可选的,并且可能由您的项目确定。微控制器的不同应用需要不同的工作频率。如果您打算改变自己的工作量,建议您使用此功能。晶体是非极性的,所以它没有’t matter which way you insert it 进入 the PCB, just stick it through the holes, and then flip your project over and solder it in place, clipping any excess leads.

陶瓷电容器

Next up are the two 18pF ceramic capacitors. These are also not polarized, so insert them through the PCB. Then carefully flip over your project and solder them 进入 place, clipping the excess leads. A trick to getting them sitting nice and straight is to only solder one leg of them in place, and then re-flow the solder, and adjust the capacitor. Then you can solder the remaining leg and clip the leads.

编程标题

Next up are the two programming headers. This is how you will interface your programmer with your microcontroller. You can hook your programmer 进入 the ten pin header and then hook the six pin header to your projects ISP header, or just plop a chip right in the ZIF socket.

When inserting the 10 pin shrouded header 进入 the PCB, make sure to align the notch in the header with the notch indicator that is printed on the PCB. This will ensure that your programmer gets hooked up properly. Once you have both headers in, carefully flip over your project and solder everything in place.

ZIF插座

零插入力(ZIF)插座是接下来要安装的组件。这些家伙的腿可以稍微移动一点,因此我们建议确保所有腿都很好,笔直,并推开‘into’ the socket as much as possible. Start with the levers on the sockets in the up position, and when you insert it 进入 the PCB, hold the socket to the PCB with one hand, and move the lever to the down position. This will push the legs on the bottom against the solder holes, and hold the socket in place easier. You can either solder them in one at a time, or you can solder them all at once, whichever you find to be easier. Once you have your sockets in the PCB, carefully flip your project over and solder everything in place.

腿部

在此项目中,支腿是完全可选的。根据您要使用AVR界面的方式以及工作台的设置,您可能需要将其魔术贴向下,或使用双面胶带,甚至可以使用提供的木螺钉和垫片将其直接安装到办公桌上。附带的六角支架使移动变得更容易,更重要的是,它们使插座和插头的金属引脚以及桌子上的任何东西(如电阻夹)都远离桌子。

首先将2.5mm螺钉插入孔中,然后将六角形支架旋转到该孔上。用手拧紧后,您可以用螺丝刀再将其拧紧一点。注意不要过度拧紧螺丝或剥去六角支架。

完成单位

恭喜你!您’您已经完成了自己的AVR编程接口!请继续阅读以获取有关如何使用它的快速入门指南。


快速入门教程

在本快速入门教程中,我们将指导您如何使用AVR编程接口对微控制器进行编程。

本指南适用于对AVR有点熟悉的人 编程,或者只需要将一些代码重新刷新到芯片/模块上。请通读《 AVR编程接口手册》,以获取有关AVR编程的更深入的指南。

就本教程而言,我们将使用USBasp编程器(带有avrdude),并使用ADSR代码对ATmega88芯片进行编程。如果您想继续,请在开始之前确保已拥有所需的一切:

在开始之前,请确保您的计算机上已安装avrdude。您可以按照我们的指南在此处进行安装。

首先,通过USB将USBasp插入计算机,然后通过带盖的接头将10针连接器连接到AVR编程接口。

Next, Insert your ATmega88 进入 the third socket from the left, (with the lever in the up position), and then lock it in by pushing the lever down.

接下来,我们将使用avrdude对保险丝位进行编程并加载.hex文件。

Windows说明 | Linux指令 | Mac指令

Windows说明

在此处插入带有屏幕截图的说明。

Linux指令

First up, open a terminal window (CTRL+ALT+T in ubuntu), and navigate 进入 the directory where you downloaded your hex file.

接下来,我们需要将三个保险丝位编程为适当的值:

lfuse:0xff

浪费:0xf9

hfuse:0xdc

To program these fuse bits, type the following 进入 your terminal window, and keep an eye on the output for any errors that may pop up.

如果它显示有关sck周期的警告,那很好。它仍然可以工作, 但您的usbasp可能需要固件更新。

avrdude -c usbasp -p m88 -B 10 -u -U lfuse:w:0xff:m -u -U efuse:w:0xf9:m -u -U hfuse:w:0xdc:m

Next up, we are going to program the actual .hex file. To do so, type the following 进入 your terminal, and hit enter:

 

Thats it! You should be able to pop the microcontroller 进入 your 反冲 module and turn it on.


您还可以按照上述部​​分,将任何intel十六进制格式的文件(以.hex结尾)编程到我们的AVR编程接口支持的任何芯片上。您所需要做的就是为您的项目找到正确的保险丝,然后将上面的值替换为您的值。