TI中文支持网
TI专业的中文技术问题搜集分享网站

TDA4VM: How to use Uart3 MCU in Mcu domain

Part Number:TDA4VM

Hello,I want to use Uart3 in main domain(baudRate is 460800,use interrupt mode). Is it possible to use it in the following way?

1、Set Pinmux V28 UART3_RXD,V29 UART3_TXD

2、use UART_socSetInitCfg()function set  operMode is UART13x_OPER_MODE,set enableInterrupt is TRUE ,baseAddr is (uint32_t)CSL_UART0_BASE + (0x10000U * 3),intNum is CSLR_R5FSS0_INTROUTER0_IN_UART3_USART_IRQ_0。

Sample Code :

UART_init();
UART_socGetInitCfg(3, &uart_cfg);
uart_cfg.edmaHandle = NULL;
uart_cfg.dmaMode = FALSE;
uart_cfg.operMode = UART13x_OPER_MODE;
uart_cfg.loopback = FALSE;
uart_cfg.enableInterrupt = TRUE;
uart_cfg.frequency = UART_INPUT_CLK_48M;
uart_cfg.baseAddr = (uint32_t)CSL_UART0_BASE + (0x10000U * 3);
uart_cfg.intNum = CSLR_R5FSS0_INTROUTER0_IN_UART3_USART_IRQ_0; 
UART_socSetInitCfg(uartTestInstance, &uart_cfg);

3、set Params:set baudRate 460800, set writeMode and readMode is  UART_MODE_CALLBACK, set  writeCallback and readCallback function

Sample Code:

UART_Params_init(&uartParams);
uartParams.baudRate = 460800;
uartParams.writeMode = UART_MODE_CALLBACK;
uartParams.writeCallback = UART_Write_Callback_test;
uartParams.readMode = UART_MODE_CALLBACK;
uartParams.readCallback = UART_Read_Callback_test;

4、use UART_open(3, &uartParams);,then if fifo reach tx/rx Level, write/read callback function is be trigered.

5、Please help answer one more question, Has the Fifo level interrupt been enabled according to the above configuration process. If not, please help provide the activation method. Thank you

zt

TRANSLATE with x
English

Arabic Hebrew Polish
Bulgarian Hindi Portuguese
Catalan Hmong Daw Romanian
Chinese Simplified Hungarian Russian
Chinese Traditional Indonesian Slovak
Czech Italian Slovenian
Danish Japanese Spanish
Dutch Klingon Swedish
English Korean Thai
Estonian Latvian Turkish
Finnish Lithuanian Ukrainian
French Malay Urdu
German Maltese Vietnamese
Greek Norwegian Welsh
Haitian Creole Persian
TRANSLATE with

COPY THE URL BELOW

Back
EMBED THE SNIPPET BELOW IN YOUR SITE

Enable collaborative features and customize widget: Bing Webmaster Portal
Back
Links:

Hi,

The UART initialization seems correct, this is non-DMA mode correct? Please look at the UART read/write examples within the SDK for help with setup.

5、Please help answer one more question, Has the Fifo level interrupt been enabled according to the above configuration process. If not, please help provide the activation method. Thank you

I will look into this and get back to you.

TRANSLATE with x

English

Arabic
Hebrew
Polish

Bulgarian
Hindi
Portuguese

Catalan
Hmong Daw
Romanian

Chinese Simplified
Hungarian
Russian

Chinese Traditional
Indonesian
Slovak

Czech
Italian
Slovenian

Danish
Japanese
Spanish

Dutch
Klingon
Swedish

English
Korean
Thai

Estonian
Latvian
Turkish

Finnish
Lithuanian
Ukrainian

French
Malay
Urdu

German
Maltese
Vietnamese

Greek
Norwegian
Welsh

Haitian Creole
Persian

TRANSLATE with

COPY THE URL BELOW

Back

EMBED THE SNIPPET BELOW IN YOUR SITE

Enable collaborative features and customize widget: Bing Webmaster Portal
Back

,

zh ti:

Hi,

      Thank you for your response.

      I not using DMA temporarily,and wrote the UART 3 program with reference to PDK.

      For question 5,Please help to solve it. Thank you

zt

,

Links:

Hi,

Please refer to the following patch to enable baud rate of 460800.

uart_480600_support.patch

Please note this patch is based on SDK 9.2 and you may have to make some minor changes.

Thanks,

TRANSLATE with x

English

Arabic
Hebrew
Polish

Bulgarian
Hindi
Portuguese

Catalan
Hmong Daw
Romanian

Chinese Simplified
Hungarian
Russian

Chinese Traditional
Indonesian
Slovak

Czech
Italian
Slovenian

Danish
Japanese
Spanish

Dutch
Klingon
Swedish

English
Korean
Thai

Estonian
Latvian
Turkish

Finnish
Lithuanian
Ukrainian

French
Malay
Urdu

German
Maltese
Vietnamese

Greek
Norwegian
Welsh

Haitian Creole
Persian

TRANSLATE with

COPY THE URL BELOW

Back

EMBED THE SNIPPET BELOW IN YOUR SITE

Enable collaborative features and customize widget: Bing Webmaster Portal
Back

,

zh ti:

Thank you for help.

     After Checking,DisPlay "You do not have permission to view this directory or page." How can I process

Thanks

,

Links:

uart_480600_support.patchPlease check it

TRANSLATE with x

English

Arabic
Hebrew
Polish

Bulgarian
Hindi
Portuguese

Catalan
Hmong Daw
Romanian

Chinese Simplified
Hungarian
Russian

Chinese Traditional
Indonesian
Slovak

Czech
Italian
Slovenian

Danish
Japanese
Spanish

Dutch
Klingon
Swedish

English
Korean
Thai

Estonian
Latvian
Turkish

Finnish
Lithuanian
Ukrainian

French
Malay
Urdu

German
Maltese
Vietnamese

Greek
Norwegian
Welsh

Haitian Creole
Persian

TRANSLATE with

COPY THE URL BELOW

Back

EMBED THE SNIPPET BELOW IN YOUR SITE

Enable collaborative features and customize widget: Bing Webmaster Portal
Back

,

zh ti:

Thank you for your help.

赞(0)
未经允许不得转载:TI中文支持网 » TDA4VM: How to use Uart3 MCU in Mcu domain
分享到: 更多 (0)