This is some code for an oscillator I posted in an earlier thread that would not run. I followed some corrections suggested here and I now have a working oscillator.
.include "tiny2313def.inc"
start: ldi r16, 0b11111111
out ddrb, r16
out portb, r16
ldi r17, 0b00000000
out portb, r17
rjump start
I have been reading some of the tutorials on this site and it suggests the use of the wavrasm assembler. It looked to be a good thing since the editor and assembler were in one software package. I downloaded it and gave it a try. The code shown above works fine with avrasm2 but it produces an error
when I assemble with wavrasm. The error message is tn2313def.inc file access error. I have a copy of the tn2313def.inc file the same folder that wavrasm is installed in so I don't understand why it would produce this error.
Thanks for any help,
Roger