david_dewit
May 01, 2008, 02:20 AM
My IR rx project does not work, maybe it has something to do with oscillator calibration? If someone can make sense of the following comment could you please help. Using Tiny45 avr.
TIA
Dave
.ORG $0030
RESET:
in Dummy1, OscCal ; Change the OscCal value to make int-osc
inc Dummy1 ; run at 1Mhz. This will be removed once
inc Dummy1 ; the new self callibrating RX routine is
Out OscCal, Dummy1 ; done. For now you have to measure OSC
; at 3.6 volts and work out a value for it
; manually
ldi Dummy1, Low(RAMEND) ; Set up the Stack Pointer
out SPL, Dummy1
ldi Dummy1, High(RAMEND)
out SPH, Dummy1
rcall MAIN_INIT ; call main initilaise routine to set up
; all input/output pins timers, interrupts
; ect.
TIA
Dave
.ORG $0030
RESET:
in Dummy1, OscCal ; Change the OscCal value to make int-osc
inc Dummy1 ; run at 1Mhz. This will be removed once
inc Dummy1 ; the new self callibrating RX routine is
Out OscCal, Dummy1 ; done. For now you have to measure OSC
; at 3.6 volts and work out a value for it
; manually
ldi Dummy1, Low(RAMEND) ; Set up the Stack Pointer
out SPL, Dummy1
ldi Dummy1, High(RAMEND)
out SPH, Dummy1
rcall MAIN_INIT ; call main initilaise routine to set up
; all input/output pins timers, interrupts
; ect.