@mckenney Your post cleared a lot of my confusion regarding the Timer A module. I can now see some things come together and understand the lines of code in the program I posted. Though I doubt I could write one on my own, yet, though.
On page 25 of the guide is a memory map, and from 0FFE0h to 0FFFFh is the Vector Table. This just means, that all pragma vectors must point to within these addresses?
@MrChips That clears things up a whole lot, regarding capture/compare
I'm still struggling with the pragma vector thing part. I can't seem to find the "__interrupt" anywhere in the msp430g2553.h file, or the User Guide, or even the data sheet. Where does it come from? I can guess that it is something the code tells the compiler about the function, that it's an interrupt function, and the double underscore is just to hinder name confusion.This is the (CCR0) timer ISR. Nobody cares what the function name is. __interrupt assures the proper entry/exit sequence. The _VECTOR name is what puts it into the proper spot in the interrupt vectors up at the top of memory.
On page 25 of the guide is a memory map, and from 0FFE0h to 0FFFFh is the Vector Table. This just means, that all pragma vectors must point to within these addresses?
@MrChips That clears things up a whole lot, regarding capture/compare