Hello RobJ,
I think your interpretation of the datasheet (Programming
Specifications) is wrong.
The comment should inform the user that with LVP ENABLED a *pull-down*
resistor is required on the PGM pin.
Regards, Rob.
On 03/01/2023 17.36, Rob CJ wrote:
If the default of the samples (and user programs) would be to enable
LVP then the warning comment should then be to have a pull-up resistor
on the PGM pin or am I interpreting the datasheet wrong?
Kind regards,
Rob
------------------------------------------------------------------------
*Van:* [email protected] <[email protected]> namens Rob
Hamerling <[email protected]>
*Verzonden:* dinsdag 3 januari 2023 16:59
*Aan:* [email protected] <[email protected]>
*Onderwerp:* Re: [jallib] USB_help
Hi RobJ,
On 03/01/2023 15.33, [email protected] <mailto:[email protected]> wrote:
I had an e-mail discussion with the other Rob since he also had
programming issues using LVP. It seems that for some (older?) PICs
that have LVP only work if you pull a special PGM pin high (so not
floating) with a resistor.
I'm afraid I have to correct this: When LVP is enabled and the PIC has
a Pin_PGM, this pin requires a *pull_down* resistor to prevent the PIC
entering LVP mode accidentally.
In order to prevent issues I could check which PICs have this PGM pin
and for those PICs create only blink samples with LVP disabled.
Another option is to enable LVP and mention in the blink sample
comment to pull the PGM pin high for those PICs.
The *pull-down* requirement applies to every program, not only samples
also user programs.
The reason (at least one of 'm) to specify LVP ENABLE in Jallib
(blink) samples was that it allows the use the Microchip SNAP
programmer (or any other LVP programmer) besides any HVP programmer
like PicKit3. So my vote would be for adding a warning comment.
Regards, Rob.
--
*Rob H*amerling, Vianen, NL
--
*Rob H*amerling, Vianen, NL
--
You received this message because you are subscribed to the Google Groups
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jallib/3346422d-3ad9-a320-6a11-f5060132eb95%40gmail.com.