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.
Having difficulty understanding how to change pins in msp432P401 example code ta1_16.c.
I am able to change frequency and duty cycle. Unable to figure out how to change output pins.
Believe it is done via these three lines
P7->Dir |= BIT6 | BIT7;
P7->SEL0 |= BIT6 | BIT7;
P7->SEL1 &|= ( BIT6 | BIT7);
which sets output to p7.6~7 set Ta1.1~2
trying to use pin 2.7
but fails to generate signal after these changes
P2->Dir |= BIT6 | BIT7;
P2->SEL0 |= BIT6 | BIT7;
P2->SEL1 &|= ( BIT6 | BIT7);
Thanks for all the help
Regards Paul
Hi Paul,
I believe your issue is because TA1 cannot output to P2.7. Looking at section 6.12 of MSP432P401R, MSP432P401M Mixed-Signal Microcontrollers you can see that P2.6 and P2.7 can be setup to output TA0.3 and TA0.4 respectively:
Whereas, P7.6 and P7.7 can output TA1.2 and TA1.1 respectively:
So it looks like you're trying to output to a pin that the TA1 can't output to. Section 6.9.3 of the above linked document shows which pins are conneted to which timerA outputs.
Best regards,
Caleb Overbay
**Attention** This is a public forum