• AVR Freaks

Helpful ReplyHot!PIC16LF1704 / PIC16F1704:Is it ok to set VREGPM in VREGCON in a chip that doesn't have it?

Author
lslonim@our3cats.com
New Member
  • Total Posts : 7
  • Reward points : 0
  • Joined: 2020/01/17 06:19:44
  • Location: 0
  • Status: offline
2021/03/07 10:55:40 (permalink)
0

PIC16LF1704 / PIC16F1704:Is it ok to set VREGPM in VREGCON in a chip that doesn't have it?

Because of supply shortages, our next build will be a mix of PIC16LF1704 and PIC16F1704. We have been using the LF in prior builds.
 
We found with the F that we need to set VREGPM in the VREGCON register to 1 to get the low power sleep we need. We'd like to use just one piece of code for both processors. Is it bad to set VREGPM in the VREGCON register on a PIC16LF1704 where the documentation says there is no VREGCON register?
 
Thanks for any suggestions,
Lloyd
#1
RISC
Super Member
  • Total Posts : 6056
  • Reward points : 0
  • Status: offline
Re: PIC16LF1704 / PIC16F1704:Is it ok to set VREGPM in VREGCON in a chip that doesn't have 2021/03/10 15:40:27 (permalink) ☄ Helpfulby upand_at_them 2021/03/10 15:56:08
+2 (2)
Hi,
Why not read by software the Device ID which is different between PIC16F1704 and PIC16LF1704 ?
This Device ID is described in the Programming specification
Regards
 

For support make sure to check first here : http://microchipdeveloper.com
There are hundreds of PIC, AVR, SAM...which one do YOU use ?
#2
upand_at_them
Super Member
  • Total Posts : 788
  • Reward points : 0
  • Joined: 2005/05/16 07:02:38
  • Location: Pennsylvania
  • Status: offline
Re: PIC16LF1704 / PIC16F1704:Is it ok to set VREGPM in VREGCON in a chip that doesn't have 2021/03/10 15:55:58 (permalink)
0 (2)
RISC
Hi,
Why not read by software the Device ID which is different between PIC16F1704 and PIC16LF1704 ?
This Device ID is described in the Programming specification
Regards



Wow, I didn't know you could read the Device ID from within code.  :thumbs up:
#3
GilJ
Super Member
  • Total Posts : 119
  • Reward points : 0
  • Joined: 2011/04/05 02:36:47
  • Location: 0
  • Status: offline
Re: PIC16LF1704 / PIC16F1704:Is it ok to set VREGPM in VREGCON in a chip that doesn't have 2021/03/10 18:30:20 (permalink)
0
Hi,
 
lslonim@our3cats.com
Because of supply shortages, our next build will be a mix of PIC16LF1704 and PIC16F1704. We have been using the LF in prior builds.
 
We found with the F that we need to set VREGPM in the VREGCON register to 1 to get the low power sleep we need. We'd like to use just one piece of code for both processors. Is it bad to set VREGPM in the VREGCON register on a PIC16LF1704 where the documentation says there is no VREGCON register?
 
Thanks for any suggestions,
Lloyd



Since that register location acts like a reserved register space in the LF version, it shouldn't be a problem to write on it. It would be a good idea to make some tests...
#4
Jump to:
© 2021 APG vNext Commercial Version 4.5