4 posts / 0 new
Last post
drumste
Offline
Last seen:3年5个月前
加入:2015-05-22 14:58
DA14580 UART

Hello everybody.
我想学习how to use and configure the UART for DA14580. There is something (e.g. a pdf) that completely explain how to load the UART driver and how to configure and use all its features with SDK3?
I especially need to use its Interrupt.
Thanks.

Device:
MT_dialog
Offline
Last seen:2 months 1 week ago
Staff
加入:2015-06-08 11:34
Hi drumste,

Hi drumste,

You can check the documents UM-B-005 and UM-B-004 for the explanation of the UART driver and some examples UART usage examples. Also you can have a look to the documentation and the examples of the SDK5.

Thanks MT_dialog

drumste
Offline
Last seen:3年5个月前
加入:2015-05-22 14:58
Thank you for the information

Thank you for the information, but I have some questions.
I have to modify the mouse hid profile for use it with external MCU so I think I have to learn programming with SDK3. Right?
I'm learning to use the UART interrupt with SDK3 but I have some problems that I still cannot resolve: first, if I try with a UART polling with the uart_read function inside a "while(1)" before the main loop of the arch_main.c file and without flow control, the DA14580 module send and receive good but if I try with the CTS interrupt declaring the callback function inside the periph_setup.c file, it doesn't work properly. It doesn't work properly means that, if I use RTS, the close of communication inside the callback function disturbs the communication that doesn't work; if I don't use RTS, the DA14580 send good but doesn't receive good. You know why? maybe I'm missing something.

drumste
Offline
Last seen:3年5个月前
加入:2015-05-22 14:58
I resolve it.

I resolve it.
If I place the UART read procedure outside the callback function with the help of a bool variable, it works.
I try to place the UART read procedure in various place: outside the main loop it works well but inside the app_asynch_proc() it doesn't work very well because it seems that it receive well but not send well, you know why?