DIY编程器网

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 3078|回复: 0
打印 上一主题 下一主题

Parallel Port Programmer for ATMEGA 16/32

[复制链接]
跳转到指定楼层
楼主
发表于 2012-1-13 22:58:39 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
In-system programmer means we can design a programmer circuit using simple parallel port interfacing such that our controller can be directly burned with the program while in the designed system or circuit board.  

Following pins of Atmega16 are used in programmer circuit-
         


  • SCK – Port B, Pin 7
SCK: Master Clock output, Slave Clock input pin for SPI channel. When the SPI is enabled as a Slave, this pin is configured as an input regardless of the setting of DDB7.When the SPI is enabled as a Master; the data direction of this pin is controlled by DDB7. When the pin is forced by the SPI to be an input, the pull-up can still be controlled by the PORTB7 bit.

  • MISO – Port B, Pin 6
MISO: Master Data input, Slave Data output pin for SPI channel. When the SPI is enabled as a Master, this pin is configured as an input regardless of the setting of DDB6. When the SPI is enabled as a Slave, the data direction of this pin is controlled by DDB6. When the pin is forced by the SPI to be an input, the pull-up can still be controlled by the PORTB6 bit.
         



  • MOSI – Port B, Pin 5
MOSI: SPI Master Data output, Slave Data input for SPI channel. When the SPI is enabled as a Slave, this pin is configured as an input regardless of the setting of DDB5. When the SPI is enabled as a Master, the data direction of this pin is controlled by DDB5. When the pin is forced by the SPI to be an input, the pull-up can still be controlled by the PORTB5 bit.

  • RESET-Pin 9
Reset Input. A low level on this pin for longer than the minimum pulse length will generate a reset, even if the clock is not running.

  • VCC -Pin 10
Digital supply voltage(+5V).

  • GND-Pin-11
Ground.

Parallel Port-

Parallel Port interfacing is the simplest method of interfacing. Parallel Port’s are standardized under the IEEE 1284 standard first released in 1994. It has data transfer speed up to 1Mbytes/sec. Parallel port is basically the 25 pin Female connector (DB-25) in the back side of the computer (Printer Port). It has 17 input lines for input port and 12 pins for output port. Out of the 25 pins most pins are Ground and there is data register (8 bit), control register (4 bit) and status register (5 bit).

Figure-Pin diagram of Parallel Port

Following Pins are used in parallel port-


Interfacing -

In programmer circuit pins of parallel port which are above described has to interface with pins of ATmega16 microcontroller which are responsible for in-system programming. The parallel port can be interfaced directly with microcontroller. To avoid reverse current we can use Schottkey diodes as safety precaution for pc motherboard.
Following pins of Parallel Port and ATmega16 are to be interfaced-


Figure-Circuit Diagram of ATmega16 Programmer

SOFTWARES USED:
  • WinAVR– WinAVR is open source package in which we use two sub-programs.
    • Programmers Notepad
    • Mfile.
  • Version-         2.0.8.718-basic
  • Creator-         Simon Steele
  • Purpose-
    • To write code.
    • To compile coding.
    • To generate Hex Code.
    • To burn Hex code.
The next tutorial will make you aware with how to install and use WinAVR for compiling and burning the program.

Regards:
Aditya Sharma

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
收藏收藏 分享分享 支持支持 反对反对
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|文字版|手机版|DIY编程器网 ( 桂ICP备14005565号-1 )

GMT+8, 2024-11-23 09:55 , 耗时 0.085641 秒, 21 个查询请求 , Gzip 开启.

各位嘉宾言论仅代表个人观点,非属DIY编程器网立场。

桂公网安备 45031202000115号

DIY编程器群(超员):41210778 DIY编程器

DIY编程器群1(满员):3044634 DIY编程器1

diy编程器群2:551025008 diy编程器群2

QQ:28000622;Email:libyoufer@sina.com

本站由桂林市临桂区技兴电子商务经营部独家赞助。旨在技术交流,请自觉遵守国家法律法规,一旦发现将做封号删号处理。

快速回复 返回顶部 返回列表