I am basically trying to make an oscillator using an Attiny2313 just to give myself a basic start on something. I am using avrasm2 for the assembler and creating intel hex files.
start: ldi r16, 0b11111111
out ddra, r16
out portb, r16
ldi r17, 0b00000000
out portb, r17
I am using a crystal oscillator and I have a 1mhz square wave on the pd2 oscillator output pin. I am monitoring portb with an oscilliscope but it sits at a constant low.
I have almost zero coding experience with the Atmel stuff and I am probably missing something very basic.
Thanks for any help.