Mark (Imagine Design)
New Member
I am looking to flash an LED on RA1 by using the Timer1 interrupt.
As you can see in my program the main processor is running on the internal clock at 8Mhz.
I have connected a 32.768KHz crystal and used 33pf capacitors like in the data book across TIOSCI (Pin 13) and TIOSCO (Pin12).
The oscillator appears to run, albeit the signal is low and sinusioidal but the program dosen't seem to do anything else.
Any help would be very much appreciated.
I have attached my linker file too as I originally had the interrupt vector in the wrong place.
It seems that you have to pad out some bytes after the reset goto statement. Is there a way of changing the linker to force things into the correct positions without padding ?
Many thanks Mark.
As you can see in my program the main processor is running on the internal clock at 8Mhz.
I have connected a 32.768KHz crystal and used 33pf capacitors like in the data book across TIOSCI (Pin 13) and TIOSCO (Pin12).
The oscillator appears to run, albeit the signal is low and sinusioidal but the program dosen't seem to do anything else.
Any help would be very much appreciated.
I have attached my linker file too as I originally had the interrupt vector in the wrong place.
It seems that you have to pad out some bytes after the reset goto statement. Is there a way of changing the linker to force things into the correct positions without padding ?
Many thanks Mark.
Attachments
Last edited: