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 - PICKIT 2

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

PICKIT 2 (by Alex)
First...

i burned a hex made by ldmicro 2.3v and set configuration bits with PICKIT 2, 3F72 (set this configuration because ldmicro 4.3.2v has it by default)

Then...

i burned a hex program now made by ldmicro 4.3.2v, which it is set default configuration biTs 0x3F72 (LDMICRO), with my pickit 2 using its own configuration bits 3F72, when i did this, my pic doesnīt work well anymore, it freezes, is it possible that there is a conflict if i set in both ldmicro and pickit 2 the same configuration bits?

then...

i have to mention that both hex are using serial uart instructions, but i have a doubt(made a test), i have burn the same hex file made by ldmicro 2.3v into 2 different pics 16f877A, each one of them is connected in its own serial interface for the lcd, one of them using LCDSERIAL628-v2_2.zip and the other using LCDSERIAL628-v2_2_MCLRE.zip (both hex are located in https://github.com/LDmicro/LDm...CD-based-on-HD44780-controller) ,

LCDSERIAL628-v2_2.zip + hex (made by 2.3v) = works ok
LCDSERIAL628-v2_2_MCLRE.zip + hex (made by 2.3v) = freezes
Sat Oct 28 2017, 16:20:21
(no subject) (by Alex)
sorry if i didnīt made it clear, finally how can i "turn on" or "turn off" the configuration bits of pickit 2, for 100% sure that i am using configuration bits of ldmicro and not from pickit2
Sat Oct 28 2017, 16:24:52
(no subject) (by MGP)
You cannot, the configuration bits are loaded automatically if they are present in the hex file, but you can change them in the Pickit2 program, click on the configuration link.

In the LDmicro editor you need to enter 3F62 when using a crystal and 3F70 when using the internal oscillator.
With a 16F628a, you need to use a crystal to communicate with the serial display because you cannot set 9600b with a 4MHz oscillator.
These are my default settings.

LCDSERIAL628-v2_2_MCLRE.zip ... I have not tried that program yet
Sun Oct 29 2017, 03:30:03, download attachment Snap278.jpg
(no subject) (by Alex)
thanks for your reply, this sounds silly, but never checked that before, so, if i set the configuration bits 3F62 in ldmicro, then i import hex to pickit 2 then pickit 2 will show 3F62 in its own configuration bits link?
Sun Oct 29 2017, 08:27:53, download attachment configuration_bits.jpg
(no subject) (by Alex)
"With a 16F628a, you need to use a crystal to communicate with the serial display because you cannot set 9600b with a 4MHz oscillator.
These are my default settings. "

this will sound silly again, but in the past i now realize that before "touching" configuration bits in pickit 2 i use to import and write a ldmicro hex set 20MHZ with 0x3F72 to a 16f877A pic connected to a 16f628A (uart) for the lcd using LCDSERIAL628-v2_2_MCLRE.zip and worked ok
Sun Oct 29 2017, 08:39:05
(no subject) (by MGP)
" so, if i set the configuration bits 3F62 in ldmicro, then i import hex to pickit 2 then pickit 2 will show 3F62 in its own configuration bits link?"

Yes, but set pickit2 for this.
Sun Oct 29 2017, 08:59:46, download attachment Snap279.jpg
(no subject) (by Alex)
thanks for your reply MGP
Sun Oct 29 2017, 16:33:23
(no subject) (by Alex)
Sorry my bad about the freeze with LCDSERIAL628-v2_2_MCLRE.zip it works ok
Tue Oct 31 2017, 19:10:43
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):