Cables STK200


STK200 Cables



These cables/adapters are STK200/300 or Kanda compatible cables.  They are not supported by AVR Studio, you will need something like PonyProg or UISP.
Option 1 (Simple) 
Option 2 (More Complicated) 

Option 1 Simple! 

(from http://www.linuxfocus.org/English/March2002/article231.shtml)
The wiring for the programmer cable must be as follows:

pin on AVR Pin on parallel port
Reset (1) Init (16)
MOSI (17) D0 (2)
MISO (18) Busy (11)
SCK (19) Strobe (1)
GND GND (18)

The cable should not be longer than 70cm.  The resistors on the connector for the programmer are actually not needed in our case. You need them only if you plan to use the port-B input/output lines for other purposes.



Here is another diagram of a similar cable 

Option 2

AVR In-System Programming (ISP)

(from http://www.mysunrise.ch/users/pfleury/avr-starterkit.html)
The AVR device can be programmed directly in the target circuit. This is called In-System Programming (ISP). A adapter cable connects the PC parallel port with the ISP pins of the AVR chip. A special Programmer Software is used to download the program into the AVR flash memory.
There is no standard for such a cable, but the cable shown in the circuit below is compatible with the Atmel AVRISP Programmer, Pony Programmer and UISP. All are available for download, see Development Tools for AVR.
isp-adapter-circuit.gif (21899 bytes)
The 74HC125 tristate-buffers are used here to buffer the signals received from /send to the PC and to disconnect the AVR from the PC after programming. A standard cable with DB25 connectors is used between PC and the ISP-adapter. Another cable, which should not be longer than 30 cm, connects the ISP-adapter with the target circuit. I placed the 74HC125 and the two passive components inside a standard DB25 connector shell.
Circuit of AVR Starter Kit with LED's and switches
The following circuits are based on the AVR chip AT90S8515, but can be easily adapted to other AVR devices.
Since the AVR has built-in SRAM, EEPROM and Flash memory, the minimum external components are a crystal, two capacitors and a reset-circuit.
This first example circuit explains how LED's and switches can be connected to an AVR. 
 
starterkit-circuit1.gif (10663 bytes)
 
Parts List
 Atmel AVR Microcontroller  AT90S85158PC Datasheet (PDF)
 Microcontroller Crystal  4.00 MHz  
 Ceramic Capacitor 27pF  
 Film Capacitor 0.1uF / 10V  
 Resistors 1K, 10K, 100K / 0,25 Watt  
  LED 3mm LED  
 Voltage Detector (4.5 Volt) Seiko S-80845ANY,
Texas Instruments TL7757 or similar   Integrated Voltage Regulator 78L05   
 The eight active-low LED's are connected to port B and up to eight active-low input switches to port D as on STK200. The ISP connector is used to connect the ISP adapter. The reset-button can be used to manually reset the AVR. The voltage detector resets the AVR when the power supply voltage is to low, see below for a detailed description of these Brown-Out Detectors.
A fixed-voltage regulator (78L05) is used to generate the 5V supply voltage; therefore a standard 9V DC power-adapter can be used as power supply.
 For easy testing of my AVR starter kit, I have created a test program which repeatedly turns on/off all LED's and reads the switches. This program is already pre-compiled/linked for direct downloading with the programmer software. (test_starterkit.zip)
 Brown-Out Protection
When the power supply voltage is insufficient, the AVR CPU may start to execute some instructions incorrectly. To avoid these problems, the CPU should be prevented from executing code during periods of insufficient supply voltage. This is best ensured by the use of an external Power Supply Low Voltage Detector, also known as Brown-Out Detector. Below a fixed threshold voltage, the detector forces the RESET pin low (active) and therefore stops the CPU.
 These voltage detectors are available as integrated circuits from various semiconductor suppliers. I selected here a cheap 3-pin fixed voltage detector, TL7757 from Texas Instruments. Seiko Instruments also offers a range of cheap voltage detectors with very low current consumption (S80845ANY). Any other voltage detector with an active-low open-collector output can be used. The open-collector or open-drain output is required by the ISP-circuit.

0 Response to " Cables STK200 "

Welcome In Kode Blogger

Contoh Sliding Login Dengan JQuery

Disamping ini adalah contoh Sliding Login menggunakan JQuery. Login Form Disamping hanya Contoh dan tidak dapat digunakan layaknya Login Form FB, Karena Blog ini terbuka untuk umum tanpa perlu mendaftar menjadi Member

Tutorial Blog

Untuk membuatnya Silahkan : Klik Disini

Member Login

Lost your password?

Not a member yet? Sign Up!