My STK500 board has no AT90S8515 chip only ATMega8-16 installed. Please help How can I start to use STK500.
AVR Studio 4 downloaded and it sees STK500 through RS232.
How can I test STK500
If you possess two COM ports on your PC, the STK500 is very easy to use.
I suggest that you buy a mega328P or a mega1284 chip. Then you can use the STK500 with all its ports, LEDs, switches,clocks, ...
And you can even do hardware debugging with a JTAG/debugWIRE debugger like ATMEL-ICE, Dragon, JTAGICE-3, JTAGICE-mkII, ...
The STK500 can be used with AS6 and/or any IDE or Compiler.
But since you only have a mega8 at the moment, just try some example mega8 programs.
David.
Do you have a copy of the STK500's manual? There are several jumpers that need to be set correctly.
If you don't have the manual it is available on-line, through Studio. (Help, Tools, etc. ?, I don't recall at the moment)
JC
Or just turn the pcb upside down. It shows the default jumpers.
I would start with a blinky (from the STK500 manual).
Then alter the programmable clock, voltage etc.
Then try UART programs.
ADC programs.
...
David.
Or just turn the pcb upside down
Oh man! I've had one for how many years and never noticed that!
Live and learn.
JC
Searching the tutorial forum for stk500 in the post titles finds these.
https://www.avrfreaks.net/index.php?name=PNphpBB2&file=search&mode=results
Searching in post content will find more, and searching the web will find even more.
You all are great, thank you very much.
Yes, I have STK500 manual from AVR Freaks.
David would you please send a code for Mega8 to speed up my testing.
Thanks a lot
;***** STK500 LEDS and SWITCH demonstration .include "m8def.inc" .def Temp =r16 ; Temporary register .def Delay =r17 ; Delay variable 1 .def Delay2 =r18 ; Delay variable 2 ;***** Initialization RESET: ser Temp out DDRB,Temp ; Set PORTB to output ;**** Test input/output LOOP: out PORTB,temp ; Update LEDS sbis PIND,0x00 ; If (Port D, pin0 == 0) inc Temp ; then count LEDS one down sbis PIND,0x01 ; If (Port D, pin1 == 0) dec Temp ; then count LEDS one up sbis PIND,0x02 ; If (Port D, pin2 == 0) ror Temp ; then rotate LEDS one right sbis PIND,0x03 ; If (Port D, pin3 == 0) rol Temp ; then rotate LEDS one left sbis PIND,0x04 ; If (Port D, pin4 == 0) com Temp ; then invert all LEDS sbis PIND,0x05 ; If (Port D, pin5 == 0) neg Temp ; then invert all LEDS and add 1 sbis PIND,0x06 ; If (Port D, pin6 == 0) swap Temp ; then swap nibbles of LEDS ;**** Now wait a while to make LED changes visible. DLY: dec Delay brne DLY dec Delay2 rjmp LOOP ; Repeat loop forever brne DLY
Connect ribbon from PORTB to LEDs
Connect ribbon from PORTD to SWITCHES
Note that the mega8 does not have access to all the bits in PORTB. So not all LEDs will light up.
Also note that if you copy-paste this to an AS6 ASM project, you can omit the .include line. AS6 will pre-include the relevant header file depending on the DEVICE selected in your Project Properties.
David.