Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - Bug com o PIC16F88

(you are viewing a thread; or go back to list of threads)

Bug com o PIC16F88 (by Gilmar Roberto Alves)
Estou fazendo testes com o pic16f88, que esta ocorrendo falha com alguns pinos de saída no Proteus. Uns I/O funcionas, mas outros não.
Fri Oct 23 2020, 11:44:43, download attachment monitor bateria f88.ld
Bug com o PIC16F88 no Proteus (by Gilmar Roberto Alves)
Segue anexado o projeto no Proteus, que não funciona alguns pinos ou I/O desse PIC16F88.
Fri Oct 23 2020, 11:46:21, download attachment Monitor de carga de bateria f88 SIMUL.pdsprj
Bug com o PIC16F88 (by Gilmar Roberto Alves)
Estou usando a versão 5404 do LDmicro para editar o programa.
Fri Oct 23 2020, 11:47:13
(no subject) (by MGP)
Rele1, Rele2, YLED14v will never work because of the ADC values
You will have to adjust the ADC values so that they match!
Fri Oct 23 2020, 12:11:42
Compilação (by Gilmar Roberto Alves)
Na compilação para o CCS ocorre erro tambem e com ASM tambem.
Fri Oct 23 2020, 12:41:45
Teste como a versão 5401 (by Gilmar Roberto Alves)
Fiz o teste com a versão do LDmcro 5401 e funcionou corretamente. Portanto as versões acima, ou seja a versão 5402,5403 5404 ocorrem bugs.
Fri Oct 23 2020, 12:49:15
(no subject) (by MGP)
It does not work in the simulation of LDmicro, so you have to change your program so that it works, then we can talk ;)
Fri Oct 23 2020, 12:51:58
(no subject) (by Gilmar Roberto Alves)
Na versão 5401 somente o pino no 9 do pic16f88 que não funcionou. Mudei para o pino 12 e funcionou.
Fri Oct 23 2020, 12:53:44
(no subject) (by MGP)
I have no Proteusprogram so I cannot open the Proteus project file, do you use a crystal?
Fri Oct 23 2020, 13:02:02
(no subject) (by Gilmar Roberto Alves)
My program works in LDmicro simulation, it just doesn't work in Proteus.
Fri Oct 23 2020, 15:56:16
(no subject) (by Gilmar Roberto Alves)
Anyone who can really help, dix the examples for tests above.
Fri Oct 23 2020, 16:21:35
(no subject) (by Gilmar Roberto Alves)
Who can really help, I left the examples for testing above.
Fri Oct 23 2020, 16:22:41
(no subject) (by MGP)
Make a printscreen of your Proteus file so we can see what you have made.

You did not answar my question!

In the configbits your have set the oscillator in LP mode, why?
Sat Oct 24 2020, 03:18:00
(no subject) (by Gilmar Roberto Alves)
Olá MGP. Obrigado por tentar ajudar. Não estou usando um cristal nesse caso, visto que somente estou simulando, e no Proteus não preciso colocar um cristal para funcionar.

Coloque um vídeo no meu canal GR Alves para demostrar o funcionamento do projeto que esta funcionando no pic16f88, compilado na versão 5401, que ocorreu um bug apenas no pino 9 desse controlador. Dê uma olhada lá que estou simulando no LDmicro e no Proteus.
segue o link abaixo

https://www.youtube.com/watch?v=mozqc9VANeo&t=45s
Sat Oct 24 2020, 18:26:14
(no subject) (by Gilmar Roberto Alves)
Hello MGP. Thanks for trying to help. I am not using a crystal in this case, since I am only simulating, and in Proteus I do not need to put a crystal to work.

Put a video on my GR Alves channel to demonstrate the operation of the project that is working on pic16f88, compiled in version 5401, that there was a bug only on pin 9 of this controller. Take a look there that I'm simulating on LDmicro and Proteus.
follow the link below


https://www.youtube.com/watch?v=mozqc9VANeo&t=45s
Sat Oct 24 2020, 18:31:07
(no subject) (by Gilmar Roberto Alves)
Dear MGP, I attached the program I made for you to do a simulation in LDmicro. LDmicro works correctly, including relays1, relays and YLD14V works. Only when compiled the HEX file to run on Proteus does bub occur. Try to run the LDmicro version 5404,5403 and 5401 to see. But you will need Proteus to see the problem. Thank you.

Gilmar
Sat Oct 24 2020, 18:38:06, download attachment monitor bateria 16f88A.ld
(no subject) (by Gilmar Roberto Alves)
Caro MGP, os valores na entrada analógica abrangem de 0 a 1023. Portanto os valores de comparação que estiverem dentro dessa faixa funcionarão corretamente.
Sat Oct 24 2020, 19:31:13
(no subject) (by MGP)
Probably bit12 is not correct in the configuration bits, change that to 0x2F42 and let me know.
Sun Oct 25 2020, 04:08:37
(no subject) (by Gilmar Roberto Alves)
OK, I'll test it and tell you. Thanks.
Sun Oct 25 2020, 09:59:33
(no subject) (by Gilmar Roberto Alves)
Hello NGP, I made the change to change the configuration of the bits and changed the pin of PIC88, which was pin 9 that did not work. It worked perfectly. Nice. I'll do the tests in the other sections on LDmicro later. Thank you for your help.
Sun Oct 25 2020, 10:08:16
(no subject) (by Gilmar Roberto Alves)
Provavelmente o bit12 não está correto nos bits de configuração, mude para 0x2F42 e me avise.

Alterei e funcionou pino 9. Mudei o Yosc para o pino 9 para testar e deu certo. Obrigado MGP.
Sun Oct 25 2020, 10:17:06
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):