Hey,
I'm feeling guilty asking so many questions... but I am new to this and have been working on it for the majority of the last few days.
I've read most of the datasheet for the 12F629 and also section 8 of the mid-range MCU family, dealing specifically with interrupts.
The processor goes to sleep. When the edge interrupt is triggered, the processor needs to wake up, change some GPIO pins and then go back to sleep again, and wait for another interrupt to occur. Simple enough...
Looking at example programs, I see 'org ISR_ADDR'. My first question is if this is a macro? Where do I learn more about these type of commands? I presume 'org ISR_ADDR' tells the processor where to go after any interrupt is triggered. I get the following errors when using it:
Error[113] C:\PIC\GENERIC BOARD.ASM 93 : Symbol not previously defined (ISR_ADDR)
Error[118] C:\PIC\GENERIC BOARD.ASM 98 : Overwriting previous address contents (0000)
I was also wondering what kind of ram is in the 12F629(Common RAM/ without common RAM/General Purpose RAM only in bank0... so that I can follow the datasheet on how to push and pop found here.
https://www.electro-tech-online.com/custompdfs/2004/08/31008a.pdf
Thanks
I'm feeling guilty asking so many questions... but I am new to this and have been working on it for the majority of the last few days.
I've read most of the datasheet for the 12F629 and also section 8 of the mid-range MCU family, dealing specifically with interrupts.
The processor goes to sleep. When the edge interrupt is triggered, the processor needs to wake up, change some GPIO pins and then go back to sleep again, and wait for another interrupt to occur. Simple enough...
Looking at example programs, I see 'org ISR_ADDR'. My first question is if this is a macro? Where do I learn more about these type of commands? I presume 'org ISR_ADDR' tells the processor where to go after any interrupt is triggered. I get the following errors when using it:
Error[113] C:\PIC\GENERIC BOARD.ASM 93 : Symbol not previously defined (ISR_ADDR)
Error[118] C:\PIC\GENERIC BOARD.ASM 98 : Overwriting previous address contents (0000)
I was also wondering what kind of ram is in the 12F629(Common RAM/ without common RAM/General Purpose RAM only in bank0... so that I can follow the datasheet on how to push and pop found here.
https://www.electro-tech-online.com/custompdfs/2004/08/31008a.pdf
Thanks