Part Number:MSP430FR2522
Tool/software: Code Composer Studio
Hi Sir,
MSP430FR2522IPW16 (TSSOP 16 pin) and MSP430FR2522IRHL (VQFN 20 pin) all be generates the same source code (CAPT_BSP.c, BSP_configureMCU()) by CapTIvate Design Center:
...
// P2.0: UCA0 UART TXD if (DEFAULT_OSC_SELECTION == CS_REFOCLK_SELECT), else XOUT
// P2.1: UCA0 UART RXD if (DEFAULT_OSC_SELECTION == CS_REFOCLK_SELECT), else XIN
// P2.2: SYNC (SET OUTPUT LOW UNLESS USED)
// P2.3: OUTPUT LOW
// P2.4: IRQ (OPEN DRAIN), set high to start
// P2.5: UCB0 I2C SDA
// P2.6: UCB0 I2C SCL
#if (DEFAULT_OSC_SELECTION == CS_XT1CLK_SELECT)
P2OUT = (GPIO_PIN4);
P2DIR = (GPIO_PIN2 | GPIO_PIN3 | GPIO_PIN4);
P2SEL0 = (0);
P2SEL1 = (GPIO_PIN0 | GPIO_PIN1 | GPIO_PIN5 | GPIO_PIN6);
#else
P2OUT = (0);
P2DIR = (GPIO_PIN2 | GPIO_PIN3 | GPIO_PIN4);
P2SEL0 = (GPIO_PIN0 | GPIO_PIN1);
P2SEL1 = (GPIO_PIN5 | GPIO_PIN6);
#endif
...
But MSP430FR2522IPW16 have not P2.5 and P2.6, and I2C pin is located in P1.2 and P1.3 pin.
I have compared two files which one generated by selection FR2522IPW16 (16 pin TSSOP) , and another code was generated by selection FR2522IRHL(20 pin package) all are the same.
So I think it should be modify by manual, it's right? Or have any risk if our customer are using MSP430FR2522IPW16 (TSSOP 16 pin) and generate code by the CapTIvate Design Center GUI ?
Would you please kindly provide advise for this situation?
Thanks.
BR
Sam