Page 1 of 1

PROBLEMS WITH UART RECEPTION.

Posted: Mon Jun 18, 2018 5:54 pm
by MOCUELSL
Good afternoon benj, I have a problem with the RX channel 5 and 6 of the PIC24FJ1024GB610 does not work with any component, GSM, GPS, UART, I need to use in my project the 6 channels, channel 1,2,3 and 4 works fine but On 5 and 6 only the TX works.
I would like to know if you are working on the solution.

REGARDS

Re: PROBLEMS WITH UART RECEPTION.

Posted: Mon Jun 18, 2018 7:59 pm
by medelec35
Hi MOCUELSL,
If running FC7 does this help?

Martin

Re: PROBLEMS WITH UART RECEPTION.

Posted: Tue Jun 19, 2018 9:25 am
by MOCUELSL
Gracias Martin, lo he probado pero sigue sin funcionar el Rx de los canales 5 y 6, estoy usando el V8, no se si el archivo del V7 es compatible,la diferencia de los canales 1,2,3 y 4 es que son remappable y el canal 5 y 6 son pines fijos.

Saludos

José

Re: PROBLEMS WITH UART RECEPTION.

Posted: Tue Jun 19, 2018 4:41 pm
by MOCUELSL
El problema que yo tengo es diferente yo no recibo caracteres por el pin RX del canal 5 y 6 , las interrupciones aun no las he probado.

Saludos
José

Re: PROBLEMS WITH UART RECEPTION.

Posted: Wed Jun 20, 2018 7:42 pm
by MOCUELSL
hola haber si me podéis ayudar, no consigo recibir datos con por el pin Rx del canal 5 y 6 del PIC24FJ1024GB610 he echo un programa muy simple para probar los 6 canales del Pic, con los canales 1,2,3 y 4 funciona bien la recepción como la transmisión pero cuando pruebo el canal 5 y 6 no recibo nada, soy nuevo con flowcode 8, el flowcode que he usado anteriormente es el flowcode 5.
Puede ser que tenga que configurar algo mas en flowcode 8 cuando se trabaja con los canales 5 y 6 ?
Os agradecería toda la ayuda que me podáis brindar.
Os dejo el ejemplo que estoy usando para probar estos canales.

Gracia y un saludos a todos
PANTALLA TFT ILI9341 - RS232.fcfx
(12.98 KiB) Downloaded 272 times

Re: PROBLEMS WITH UART RECEPTION.

Posted: Thu Jun 21, 2018 12:16 pm
by Benj
Hola,

¿Estás usando los últimos archivos de actualización? He revisado el código varias veces ahora para ti y no puedo detectar ninguna diferencia con la forma en que se utilizan los canales 5 y 6 en comparación con los otros canales. También revisé la hoja de datos y dice que los canales 5 y 6 deberían ser los mismos que los otros canales, además de no tener funcionalidad reutilizable. Lo he comprobado con sensatez mirando la hoja de datos y también buscando los bits de reasignación en el archivo de encabezado del compilador, ambos faltan, sugiriendo que solo los canales 1-4 son remapables.

Usando Ayuda -> Buscar actualizaciones.

Marque la casilla de verificación Mostrar archivos actualizados.

Compruebe que PIC16BIT \ PIC16BIT_CAL_UART.c es la versión 3
Compruebe que PIC16 \ 24FJ1024GB610.fcdx es la versión 3
Compruebe que RS232.fcpx es la versión 4
Compruebe que cal_uart.fcpx es la versión 3

Si están todos actualizados, debería tener los mismos archivos que estoy usando aquí. No tengo el chip disponible para probar, así que no puedo hacer un control de cordura para ti. Aunque si este problema persiste, entonces podría tener sentido intentar encontrar una forma de replicar el problema.



Hello,

Are you using the latest update files. I've been through the code several times now for you and cannot spot any differences with the way channel 5 and 6 are being used compared to the other channels. I've also checked the datasheet and it says that channels 5 and 6 should be the same as the other channels apart from not having remappable functionality. I've sanity checked this by looking at the datasheet and also looking for the remap bits in the compiler header file, both are missing suggesting only channels 1-4 are remappable.

Using Help -> Check for updates.

Tick the Show up to date files checkbox

Check that PIC16BIT\PIC16BIT_CAL_UART.c is version 3
Check that PIC16\24FJ1024GB610.fcdx is version 3
Check that RS232.fcpx is version 4
Check that cal_uart.fcpx is version 3

If these are all up to date then you should have the same files as I am using here. I don't have the chip available to test so cannot currently do a sanity check for you. Though if this issue persists then it might make sense to try and find a way to replicate the issue.

Re: PROBLEMS WITH UART RECEPTION.

Posted: Thu Jun 21, 2018 1:50 pm
by MOCUELSL
he comprobado las actualizaciones y son correctas.

Saludos

Re: PROBLEMS WITH UART RECEPTION.

Posted: Thu Jun 21, 2018 7:02 pm
by MOCUELSL
Hola Benj, yo creo que el problema debe de estar en el archivo PIC16 \ 24FJ1024GB610.fcdx ya que a otros usuarios le funciona con el PIC24FJ256GB410 que es muy similar y tiene el mismo numero de canales.

Saludos
José

Re: PROBLEMS WITH UART RECEPTION.

Posted: Fri Jun 22, 2018 7:30 pm
by MOCUELSL
hola Benj, he encontrado el fallo ya funciona he modificado el código del archivo 24FJ1024GB610.fcdx .

<init code='' /> por este otro <init code='ANSA=0x00;\nANSB=0x00;\nANSC=0x00;\nANSD=0x00;\nANSE=0x00;\nANSF=0x00;\nANSG=0x00;\n\n' />
pic24.png
(38.4 KiB) Downloaded 3200 times
pic24fj.png
(41 KiB) Downloaded 3200 times

Re: PROBLEMS WITH UART RECEPTION.

Posted: Fri Jun 22, 2018 7:36 pm
by MOCUELSL
ya se recibe datos por el canal 5 y 6.
24FJ1024GB610.fcdx
(48.08 KiB) Downloaded 340 times

Re: PROBLEMS WITH UART RECEPTION.

Posted: Fri Jun 22, 2018 11:34 pm
by MOCUELSL
HOLA BENJ, HE REVISADO EL CODIGO Y HE VISTO QUE FALTABAN INTERRUPCIONES DEL UART, I2C, SPI Y RTCC, LO HE MODIFICADO.

TE LE ENVIO PARA QUE LO REVISES Y LO INCLUYAS EN LAS ACTUALIZACIONES.

SALUDOS
JOSE

24FJ1024GB610.fcdx
(58.19 KiB) Downloaded 336 times