supamas 2 Posted December 24, 2013 Share Posted December 24, 2013 @@supamas The TX and RX ISR functions are both included in the main.c file. The grace file is just a configuration for the hardware. It directs the IV to iic_RX_isr() and iic_TX_isr(). Can you be more specific with the error you are getting? I must have been doing something wrong because it is working for me now. The TX and RX interrupts were what I was looking for. You commented: // interrupt pragma is defined in grace If grace only sets up hardware, what is the interrupt handling that is defined in grace? (line 329 of the mian.c file) I appreciate you answering! This is great! I'm so excited to wrap my head around this stuff!! Quote Link to post Share on other sites
gwdeveloper 275 Posted December 24, 2013 Author Share Posted December 24, 2013 @@supamas Grace is just a simple GUI for setting up selected msp430 devices. In the case of the ISR, it's just letting you type in a common function name for your interrupt function and then it adjusts the IV table. Essentially, it just does this: #pragma vector=USCIAB0TX_VECTOR __interrupt void USCI0TX_ISR_HOOK(void) { if (IFG2 & UCB0TXIFG) { /* USCI_B0 Transmit Interrupt Handler */ iic_TX_isr(); /* Enter active mode on exit */ __bic_SR_register_on_exit(LPM4_bits); } else { /* USCI_B0 Receive Interrupt Handler */ iic_RX_isr(); /* Enter active mode on exit */ __bic_SR_register_on_exit(LPM4_bits); } } supamas 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.