ds30 Loader free edition forums
how use the second UART of the PIC16F1947 - Printable Version

+- ds30 Loader free edition forums (https://picbootloader.com/forum)
+-- Forum: Support (https://picbootloader.com/forum/forumdisplay.php?fid=3)
+--- Forum: 8-bit firmwares (https://picbootloader.com/forum/forumdisplay.php?fid=7)
+--- Thread: how use the second UART of the PIC16F1947 (/showthread.php?tid=2363)



how use the second UART of the PIC16F1947 - jccortes - 2015-09-12

Hi, i tried use the second UART of the PIC16F1947 for the ds30loader, but i cant do it, because a error on the compilation appears, where tell me, that PIC no have second UART, i am sure of that PIC have second UART because I use it (the second UART) with no problems.

the error is:  UART.INC 71 : ERROR: (UART2 specified for a device that only has uart1)

I configure the parameters of the communication, baud rate, device, FOSC, configuration bits, etc etc, and I used it with no problems in another chips, PIC16F1933,PIC16F1936,PIC16F1938

I missing something??

is problem with the version free??


Thanks.


RE: how use the second UART of the PIC16F1947 - Mikael Gustavsson - 2015-09-27

Hi,
Please zip and post the entire boot loader project. Or modify the devices inc file yourself.
Thanks


RE: how use the second UART of the PIC16F1947 - jcca - 2015-11-23

(2015-09-27, 12:44:47)Mikael Gustavsson Wrote: Hi,
Please zip and post the entire boot loader project. Or modify the devices inc file yourself.
Thanks

Hi , I attached the project in ZIP format , I tried to modify the file you mentioned but does not work me , thanks for your time


RE: how use the second UART of the PIC16F1947 - Mikael Gustavsson - 2015-11-26

Here comes a new devices_PIC16F.inc with support for uart2 with PIC16F1947.


RE: how use the second UART of the PIC16F1947 - jcca - 2015-12-08

thank you very much, sorry for the delay in answering, I will try and notify you if it works properly

regards


RE: how use the second UART of the PIC16F1947 - jccortes - 2016-01-30

Hi Mikael, i tried to use the second uart with the new file of devices PIC16F.inc, but not work, I test every baud rate possible, but not work.
Any suggestion??.
Thanks.


RE: how use the second UART of the PIC16F1947 - jccortes - 2016-01-30

the process of compiling finish all good, so, i dont have any error in that part. the process of burn the PIC it's ok, the UART 2 it's ok, i test a simple program and work the uart 2


RE: how use the second UART of the PIC16F1947 - Mikael Gustavsson - 2016-02-04

Zip and post the project.


RE: how use the second UART of the PIC16F1947 - jccortes - 2016-02-14

This is the project, thanks


RE: how use the second UART of the PIC16F1947 - jccortes - 2016-03-11

Hi Mikael, any news about this post??? thanks


RE: how use the second UART of the PIC16F1947 - Mikael Gustavsson - 2016-03-11

Hi,
You have not set the configuration bits. You need to do that.


RE: how use the second UART of the PIC16F1947 - jccortes - 2016-03-12

Hi, configuration bits placed them from the environment MPLAB , I have always done and had not given me problems until now.

could you give me an example of how they should go, please, thanks


RE: how use the second UART of the PIC16F1947 - jccortes - 2016-03-12

hello, I recompiled the project from the template, mark an error in the Ansela in UART2 that there PIC ADC, I think maybe that's the problem.


RE: how use the second UART of the PIC16F1947 - jccortes - 2016-03-12

worked, was the ANSEL, in AD pins UART2 two channels, configured as digital inputs and outputs were and run


RE: how use the second UART of the PIC16F1947 - Mikael Gustavsson - 2016-03-12

Great! Feel free to post the code. It may be useful for other people.


RE: how use the second UART of the PIC16F1947 - jccortes - 2016-03-23

yes of course, here i put the code.


RE: how use the second UART of the PIC16F1947 - mrjaco - 2019-12-24

Here comes a new devices_PIC16F.inc with support for uart2 with PIC16F1947.