This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: TI C/C++ Compiler
Hi,
I am using CC430f5137 to control my device.
I want to use the timer A1 to count pulses generated by a moving sensor. I want to use pin P3.0 to as input for pulses.
What kind of mapping is required for the port 3?
I have done following actions:
P3MAP0 = PM_TA1CLK; <-- wrong to do mapping if using INCLK?
P3DIR &= ~BIT0; // BIT0 = 0 -> input
P3SEL |= BIT0; // BIT0 = 0 -> periheral
Timer settings:
There is something I do not understand how to make P3.0 to work as a pulse counter.
BR
JanneN
Hi,
You can go to the section 6.10.4 Port Mapping Controller of the device datasheet for port mapping. See how to configure the Timer_A on the User's Guide and Peripherals Example could be found for Timer_A, which were named by cc430x513x_ta3_xx.c