It looks like you are trying to capture the input from CCI0B. Is this what you intend? If you are, then the pin must be left floating so it must be configured as an input. Which controller model are you using as this will determine which pin is used as CCI0B. You will also need to set the PSEL register to select the alternate pin function.
gm:
It looks like you are trying to capture the input from CCI0B. Is this what you intend? If you are, then the pin must be left floating so it must be configured as an input. Which controller model are you using as this will determine which pin is used as CCI0B. You will also need to set the PSEL register to select the alternate pin function.
Regards,
Greg
Trying to capture from DCO, looks like I have the clocks setup wrong. is MSP430F2131, I’m trying to run this without a crystal using the internal clocks.
Per the document:
Timer_A is setup in capture mode. SMCLK is set to the DCO and set as the input clock to Timer_A. ACLK
is set to the VLO, which is the trigger for the capture. Timer_A counts the number of DCO clock pulses
before the next VLO low-to-high transition occurs. The number of DCO clock pulses is saved by the timer
in a Capture/Compare Register (CCR). The LSB from the CCR is saved by left shifting it into a CPU
register (R12). This process is repeated until 16 LSBs have been saved, forming a 16-bit result that is