Hi Robert and Rob,
A cry from THE RETIRED HOUSE.:
Two possibilities in my opinion, depending on the target group of the 
samples. If most of that group apply the LVP then leave the LVP ON and warn 
the others. Or conversely set it to OFF and alert the LVPers.
Not a problem for me, I just turn it off for a long time (usually !!).
Happy New Year.
Hans

Op dinsdag 3 januari 2023 om 20:50:34 UTC+1 schreef Rob Hamerling:

>
> 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] 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/00003fc5-c5d7-4163-8087-e52a8018dd00n%40googlegroups.com.

Reply via email to