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 - Problem with timers on PIC16F88

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

Problem with timers on PIC16F88 (by Rogelio Ortega)
Hello users LDmicro, would indicate me how to fix a problem with programming PIC16F88 not recognize me timers, only the output is activated and not disabled at the time indicated, check with more timers and got it. With the simulation in the LDmicro timers have no problem, only when this program into the PIC. RC oscillator internal use. Waiting for your comments.
Mon Feb 16 2015, 13:37:52
(no subject) (by MGP)
Internal oscillator is not supported by LDMICRO.
You need a crystal.
Can you upload your program, so we can see if the program is ok.
Mon Feb 16 2015, 15:21:49
To check program (by RGH)
Correct, but change the settings through the Scheduler GPICUSB, as I have done with PIC16F628 works perfect. Control of analog, digital and counter work very well, the only problem is with the timer. Probe with quartz crystal oscillator but the outputs are not working properly.
The file LDmicro ladder diagram is attached to be revised.
Attentive to your suggestions.
Wed Feb 18 2015, 13:11:33, download attachment oscilador 16f88.ld
(no subject) (by MGP)
The program is ok, so I think that something is wrong with the oscillator.

You use a RC intern oscillator, how do you know it's running at 4Mhz?
I dont't have a 16F88 pic, maybe you can send us the hex file that you burn in the pic.

With that we can controle the configuration bits.
Wed Feb 18 2015, 16:06:35
(no subject) (by RGH)
For more information, applying the same method, the internal oscillator in the 16F628A working properly.
Regarding the question of the oscillator frequency I do not know because I just made the change with GPIC-USB. Now three hexadecimal attached files (with quartz crystal with internal oscillator according GPIC and internal oscillator according WinPic800), to review the settings, none of them work properly. Waiting for your reply.
Wed Feb 18 2015, 18:22:54, download attachment Files hex.rar
(no subject) (by MGP)
I tested your hex files in the Oshonsoft simulator and all the versions are working.
I think you made a hardware error or your controller is damaged or the program is not uploaded in the controller.
Thu Feb 19 2015, 02:52:09
(no subject) (by RGH)
Right, that means I should try another burner PIC, and see what happens. There is some good USB programmer to recommend. A pending positive results.
Thu Feb 19 2015, 11:13:52
(no subject) (by MGP)
Do you have a schematic of your project?
Thu Feb 19 2015, 11:28:52
(no subject) (by RGH)
I have no plans, I'm just testing the LDmicro simulator and USB PIC burner made by a friend. Probe with PIC 16F628A and everything works perfect, then I wanted to try analog signals with PIC 16F88, did not produce problem, but when I added detail timers appeared as discussed above. Therefore, I see this with other PIC burner. Of course thanks willingness to serve my questions.
Thu Feb 19 2015, 11:46:04
On inductive load pic16f887 is not working (by Mukesh Pandey)
Dear Sir,
I have developed a toggle switch by ldmicro ladder diagram & program with PIC16F887, my program works fine without any load. but when i connect an inductive load/Contactor (220v coil), Circuit/Prototype starts misbehaving/not working. please help
Mukesh Pandey
Tue Jun 2 2015, 03:49:25
(no subject) (by Magno (Brasil))
see if there is in your herdware filter capacitor in DC 5v source. put 100nF in parallel with the microcontroller, the more possible next. in my circuit that resolves the majority of cases.
Tue Jun 2 2015, 06:40:14
can not program PIC16F88 & getting error message as ICD3Err0086: (by Mukesh Pandey)
Dear sir,
I am using ICD3 for programming PIC16F676, but can not program PIC16F88 & getting error message as ICD3Err0086: Target Device ID (00000000)
please suggest the suitable remedy.
Sat Jun 13 2015, 06:16:14
(no subject) (by MGP)
It has nothing to do with Ldmicro but with your programmer or connections or programming pin loads
Last week I programmed a F88 without problems.

off topic: Captcha becomes difficult to handle
Sat Jun 13 2015, 06:29:33
programmed PIC16F88 using LD micro by selecting internal oscillator, my circuit is working but timers are not working (by Mukesh Pandey)
Dear Sir,
I have programmed PIC16F88 using LD micro by selecting internal oscillator, my circuit is working but timers are not working. please suggest suitable modification.

I heartily thank you for your prompt support & advice.
Regards
Mukesh Pandey
Fri Jun 19 2015, 03:56:31
(no subject) (by MGP)
You can not select" internal oscillator" in Ldmicro.

Here you see someone with the same problem and a solution.

http://cq.cx/ladder-forum.pl?action=viewthread&parent=4465

If accurate timing is not needed in a project, I use a resonator with incorporated capacitors.
Fri Jun 19 2015, 05:59:15, download attachment resonator.jpg
program forgets the set value (by mukesh pandey)
Dear sir,
I have made a program for temperature controller using ld micro and pic 16f 88.
I have Obtained the current temperature and succeeded in writing a value to set the temperature.
but the program forgets the previous set value after power is turned off
kindly help
Mon Jun 29 2015, 07:03:47
(no subject) (by MGP)
You can use the persist instruction.
Post your program if you do not know how to do it.
Mon Jun 29 2015, 07:08:07
(no subject) (by Umesh)
Can you extend LD Micro the very useful program for Programming PIC16F676 & PIC16F882.
Mon Jun 29 2015, 07:20:23
(no subject) (by MGP)
No, I dont have the skills to do that.
It's much easier to buy PIC's that are listed in LDmicro.
Mon Jun 29 2015, 07:32:11
(no subject) (by Umesh)
Thank You Very Much Sir !
Mon Jun 29 2015, 07:46:59
(no subject) (by Umesh)
Sir,
Please help me make the variable named val persistent in the attached ld file.
Thanks in advance
Wed Jul 1 2015, 06:33:22, download attachment MemTest.ld
(no subject) (by MGP)
You can not made the VAL persistent, because if you do that the pic will not survive this. At the rate of 200times/sec the writing limits to eeprom (1000000) will be soon exceeded.

Change your program with a CTC, reading the Analog port or de VAL from eeprom.
Wed Jul 1 2015, 06:50:21
(no subject) (by Umesh)
Sir,
Thanks for your Prompt reply:

The variable val is used to write a Set Point in the program.

I am writing the EEPROM with a OSR instruction as in rung No 7. Hence it will write only once on pressing X1.

I am unable to understand the READ mechanism from the EEPROM.

The Program is not working & the variable valit is not being saved in the EEPROM.

Please refer to the attached LD file in my previous post and suggest changes
Wed Jul 1 2015, 07:06:26
(no subject) (by MGP)
Try this one.
But change the setting and coils(a--g) because I use a F876a and a 7seg display with Common Cathode.
Wed Jul 1 2015, 07:23:06, download attachment MemTest (3).ld
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):