Search found 132 matches

by Carmelo
Sun Jul 27, 2025 6:41 pm
Forum: General
Topic: Error/Warning in the compilation
Replies: 2
Views: 440

Re: Error/Warning in the compilation

OK,
muchas gracias por tan pronta respuesta.

C.
by Carmelo
Sun Jul 27, 2025 6:34 pm
Forum: General
Topic: Error/Warning in the compilation
Replies: 2
Views: 440

Error/Warning in the compilation

Hola, During compilation the following warning appears: T1_4.c: 5589: #warning "This interrupt has previously been enabled, so the macro <INT_TMR0_Tiempo> may never get called." ^ (162) #warning: "This interrupt has previously been enabled, so the macro <INT_TMR0_Tiempo> may never get...
by Carmelo
Sun Jul 27, 2025 6:28 pm
Forum: General
Topic: Pull-up internas como activarlas?
Replies: 6
Views: 737

Re: Pull-up internas como activarlas?

Hola,
Bueno al final con la sentencia: OPTION_REGbits.RBPU = 0;
Daba error al compilar

Lo cambie por: OPTION_REG = 0b00000000;
Y ahora va bien.

C.
by Carmelo
Sun Jul 27, 2025 12:04 am
Forum: General
Topic: Pull-up internas como activarlas?
Replies: 6
Views: 737

Re: Pull-up internas como activarlas?

Grcacias por la respuesta.
me equivoque al escribir el codigo del registro WPUB.
En concreto las lineas a insertar serian:

OPTION_REGbits.RBPU = 0;
WPUB=0b11110000;
by Carmelo
Sat Jul 26, 2025 11:28 pm
Forum: General
Topic: Pull-up internas como activarlas?
Replies: 6
Views: 737

Re: Pull-up internas como activarlas?

Gracias por la respuesta.
Entonces entiendo que en el bloque C habría que escribir lo siguiente:
OPTION_REGbits.RBPU = 0;
Para habilitar de forma general las pull-up y después:
WPUB=0b11110000;
Para habilitar de forma individual las resistencias de la pines RB4 a RB7

C.
by Carmelo
Sat Jul 26, 2025 8:12 pm
Forum: General
Topic: Pull-up internas como activarlas?
Replies: 6
Views: 737

Pull-up internas como activarlas?

Hola,
Que sentencia ha y que utilizar en el bloque de código C para activar las resistencias internas de las líneas RB4, RB5, RB6 y RB7 en un microcontrolador Pic 16F886.

C.
by Carmelo
Fri Jul 25, 2025 2:35 pm
Forum: Projects - Embedded
Topic: No funciona la comunicacion RS485, ni salidas digitales
Replies: 3
Views: 1337

Re: No funciona la comunicacion RS485, ni salidas digitales

Thanks for the quick response and explanation.

But for now, I want to see why the test program does not work when recording the microcontroller.
If this program doesn't work at all, obviously the communications program won't work.

C.
by Carmelo
Fri Jul 25, 2025 1:05 pm
Forum: Projects - Embedded
Topic: No funciona la comunicacion RS485, ni salidas digitales
Replies: 3
Views: 1337

Re: No funciona la comunicacion RS485, ni salidas digitales

Faltaba por adjuntar la parte del esquema de la sección del micro.

C.
by Carmelo
Fri Jul 25, 2025 1:02 pm
Forum: Projects - Embedded
Topic: No funciona la comunicacion RS485, ni salidas digitales
Replies: 3
Views: 1337

No funciona la comunicacion RS485, ni salidas digitales

Hello, I have a problem with the development of a project to communicate 2 pic16F886 through the RS485 bus. It seems that in the simulation it works perfectly. I record the pics and physically test them and absolutely nothing works. To rule out any errors, I have created a second program so that I r...
by Carmelo
Fri May 30, 2025 8:16 pm
Forum: Projects - Embedded
Topic: Read and write an array to the microcontroller EEPROM
Replies: 3
Views: 2378

Re: Read and write an array to the microcontroller EEPROM

Muchas gracias por la respuesta.
Agradecía el ejemplo.

C.