Re: [Mspgcc-users] Using XIN pin as port or timer output

2016-11-30 Thread Marko Cebokli
- From: David W. Schultz [mailto:david.schu...@earthlink.net] Sent: 30 November, 2016 10:37 PM To: mspgcc-users@lists.sourceforge.net Subject: Re: [Mspgcc-users] Using XIN pin as port or timer output On 11/28/2016 02:54 AM, Marko Cebokli wrote: > Any idea what I am doing wrong here? I sus

Re: [Mspgcc-users] Using XIN pin as port or timer output

2016-11-30 Thread David W. Schultz
On 11/28/2016 02:54 AM, Marko Cebokli wrote: > Any idea what I am doing wrong here? I suspect that you haven't configured the pin correctly. This simple program causes P2.6 to toggle along with the LED: #include int main() { WDTCTL = WDTPW + WDTHOLD;// stop watchdog timer P1DIR =

Re: [Mspgcc-users] Using XIN pin as port or timer output

2016-11-29 Thread Eric Decker
Table 21 on pg 53 is confusing. There are two columns, P2SEL.6/P2SEL.7 and P2SEL2.6/P2SEL2.7. I have no idea what the P2SEL2.6/P2SEL2.7 column is referring to (and it has the opposite value of P2SEL.6/P2SEL.7. Same table says that for Capative Sensing P2SEL2.6 is a 1. Not sure where that gets

[Mspgcc-users] Using XIN pin as port or timer output

2016-11-28 Thread Marko Cebokli
Hello, I am trying to use the XIN pin (pin 19 on MSP430G2553, MSP-EXP430G2 launchpad) as the timer TA0.1 output, but can't get it to work. Also tried to do port output there, also no success. I have set the ACLK to VLO in BCSCTL3, port 2.6 direction to output, and P2SEL, P2SEL2 to 0,0 for port,