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.

Compiler/CC3200MOD: CC3200 - LIN Interface --> switching Pin between UART_TX and GPIO

Part Number: CC3200MOD
Other Parts Discussed in Thread: CC3200, SYSCONFIG

Tool/software: TI C/C++ Compiler

Hello!

i'm a CC3200 beginner. Maybe somebody could help me.

My tools:
CCS 9.2, TI-RTOS, SDK3.30.01.02, Kit: CC3220MODASF

My goal:
LIN interface

Problem:
the SYNC Break field causes me problems.
I dont know how i can realize this with the SDK

i want to switch the UART1_TX PIN07 between:

1) SYNC modus:  PIN07 is GPIO output
2) UART modus: PIN07 is UART_TX ..... OK is working


My solution:
PinModeSet(61, 0); // GPIO MODE
PinModeSet(61, 5); // UART MODE

working not well.

Somebody could help me?

thanks and best regards
Walter

  • Hi,

    I think way with changing pinmux is right one, but why you are using such pinmux setup? For module pin 7 (QFN device pin 7 as well) you should use pinmux settings like this:

    PinTypeUART(PIN_07, PIN_MODE_5);
    PinTypeGPIO(PIN_07, PIN_MODE_0, false);
    

    If you want to know how properly use pinmux peripheral, my recomadation is to use PinmuxTool.

    Jan

  • Hello Jan,

    thank you, wrong pin number and GPIO Pin!
    Now i have my break signal.

    It should also be possible to generate the signal like this:
    but i could not find a implementation in the SDK, you know?

     

    another question2:
    I'm working with "SysConfig", 

    with #include <pin.h>

    ....i become this warnings/errors, you know why? :

  • Hi,

    CC32xx SDK is not for a CC3200 devices. You need to use CC3200 SDK. CC32xx SDK is for CC3220 and CC3235 devices. But you have CC3200 which is a 1st generation device. As I know CC3200 devices are not supported by SysConfig.

    You have that error because you not have included all necessary thing, like a:

    #include "ti/devices/cc32xx/inc/hw_memmap.h"
    #include "ti/devices/cc32xx/inc/hw_types.h"
    #include "ti/devices/cc32xx/driverlib/pin.h"

    Yes, I know that UART at CC3200 can generate break signal. But I think this way is not useful for you, cause your frame is complex (e.g. DEL bit). But if you want to experimenting with break signal, you can use Driverlib API UARTBreakCtl().

    Jan

  • Hi Jan,
    again, thank you for your fast answer!!
    Now everything is OK!

    best regards
    Walter