Jump to content
43oh

geralt1114

Members
  • Content Count

    3
  • Joined

  • Last visited

Everything posted by geralt1114

  1. Thank you for your help currently working on a new code hope it works
  2. Hello,thank you for the reply #define DR P1OUT = P1OUT | BIT4 // define RS high #define CWR P1OUT = P1OUT & (~BIT4) // define RS low #define READ P1OUT = P1OUT | BIT5 // define Read signal R/W = 1 for reading #define WRITE P1OUT = P1OUT & (~BIT5) // define Write signal R/W = 0 for writing #define ENABLE_HIGH P1OUT = P1OUT | BIT6 // define Enable high signal #define ENABLE_LOW P1OUT = P1OUT & (~BIT6) // define Enable Low signal unsigned int i; unsigned int j; volatile unsigned int CounterValue = 0; volatile unsigned int StoredCount = 0;
  3. Hello guys,i have a question for my project im using the msp430g2231 microcontroller and i want to measure frequencies up to 10Mhz.Im new to microcontrollers(not programming),and im not sure how to make the overflow work void main(void) { WDTCTL = WDTPW + WDTHOLD; // stop watchdog timer BCSCTL1 = CALBC1_1MHZ; // Set range DCOCTL = CALDCO_1MHZ; // Set DCO step + modulation delay(100); // delay 100mS until next screen refresh /*** Timer_A Set-Up ***/ TA0CCR0 = SampleTuneTime; TA0CCTL0 |= CCIE; // Interrupt enable
×
×
  • Create New...