Hello. I just got an STK-500 with an AVR AT90S2313 and i've been trying to write a program to take in a lowercase letter from the UART and display what number letter it is in the alphabet on LEDs. I'm pretty sure my code is ok (see below), Im using a null modem cable to the STK-500 user serial port, and i've wired the RXD and TXD pins on the STK-500 to PD0 and PD1 on the 2313. I hook the other end of the null modem cable to my computer and connect from hyperterminal at 9600 bps 8-n-1. According to the 2313 specs, the BAUD setting (UBBR) for the speed i set the STK-500 to (1.84 Mhz) is 11. However, when i program the chip, nothing happens. I connect from hyperterminal and press letters, but they never affect the LEDs. What am I doing wrong??
Thanks, Daniel
Code: .include "2313def.inc"
.def Temp = R16 .def Input = R17
.org 0x0000 rjmp RESET
.org URXCaddr rjmp SerialInt
RESET: ldi Temp, 255 out DDRB, Temp
ldi Temp, 11 out UBRR, Temp
ldi Temp, (1