Jump to content
43oh

iDave

Members
  • Content Count

    11
  • Joined

  • Last visited

Reputation Activity

  1. Like
    iDave got a reaction from nuetron in Please help new dude on use of clocks with G2231   
    Cool...I thought that might be the mixup(ccs<>iar). I've got it working for sure now! So appreciate the patience. I'm a regular over on the parallax forums and I'll brag over there about this one. There is chatter everyone now and then about the MSP430...
     
    Dave
  2. Like
    iDave reacted to Mac in Please help new dude on use of clocks with G2231   
    iDave,
     
    You might also consider sampling some of the 20-pin devices. The '2252, '2452, and the '2553 devices I've received all have factory calibration in flash for 1, 8, 12, and 16 MHz, whereas the '2231 only has the 1 MHz factory calibration.
     
    Cheerful regards, Mike
  3. Like
    iDave reacted to nuetron in Please help new dude on use of clocks with G2231   
    Oh, sorry. That was written for IAR. In the first post of the thread, it says this about CCS:
     
     
    After you have that done, you should be able use
     
    BCSCTL1 = CALBC1_16MHZ;
    DCOCTL = CALDCO_16MHZ;
     
    in your project code, or replace 16MHZ with 12MHZ, 8MHZ, or 1MHZ. Does that help?
  4. Like
    iDave reacted to jsolarski in MSP430F149 Timer A capture   
    #pragma vector=TIMERA1_VECTOR __interrupt void CCR1_interrupt(void){ //needed for capture ** TAR = 0; //clears TAR to 0-- reset counter** TACCTL0 &= ~CCIFG; //clear Interrupt flag in capture 0 register** unsigned int tEdge = TACCR1; //captured count goes into tEdge varible ** midiRXBitState = PIN_MIDI_DATA & P1IN; //check pin for state--- TAIV = 0; //clear main interrupt flag - addBits(tEdge, !midiRXBitState); ///looks like it just ads bits together but i have no idea..... }
     
    natureTM correct me if i am wrong pn the comments
×
×
  • Create New...