Two things I'm wondering.... 1. Are you sure that your clock settings have SMCLK = 1 MHz? I don't see you setting up the DCO, and I don't know what the default is for that part. 2. Does enabling the interrupts cause the TX Buffer Empty (TXIFG) interrupt to immediately occur? Or do you have to prime it with the first byte manually? Then, there are things plainly wrong, like: 3. Since there is no while(1){;} after you enable the interrupts, your program is going to immediately exit after the first ISR execution and you won't get any additional characters. You should have: while(1) { LPM0; // could also be LPM1 } after the line with the GIE.
↧