CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

18F46K22: Wizard has HLVD (High/Low Voltage) grayed out

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
jeffg28CLY



Joined: 24 Apr 2025
Posts: 2

View user's profile Send private message

18F46K22: Wizard has HLVD (High/Low Voltage) grayed out
PostPosted: Thu Apr 24, 2025 12:14 pm     Reply with quote

I'm still running an old version of the compiler, v5.075.
I started up the Project Wizard like normal, selected 18F family, 18F46K22, and went to the High/Low Voltage section to try out HLVD for something.
But all of the options in that section are grayed out - I can't enable anything. All of the options are visible, showing the various voltage limits, Above/Below Trip Point, and checkboxes for HLVD Enabled and LVD Enabled. All are grayed out.
I went through the other sections, thinking there was some dependency that was preventing it from working, but I'm not finding anything.
The PIC definitely has the hardware functionality - Pin_A5 is HLVDIN.

I tried turning pins on and off in the Analog section, turned on Vref in the CCP/Vref section (I can't set any Vref sources there though, it only gives VDD+/VSS-, all else is grayed out, hmm), I checked through the Fuses section... I'm not seeing a reason why the HLVD section is fully grayed out.
[/img]
PrinceNai



Joined: 31 Oct 2016
Posts: 528
Location: Montenegro

View user's profile Send private message

PostPosted: Thu Apr 24, 2025 12:56 pm     Reply with quote

It is greyed out in 5.115 too, but maybe this post will help you:

https://www.ccsinfo.com/forum/viewtopic.php?t=46389

It seems setup_low_volt_detect( ) function is the way to go.
Ttelmah



Joined: 11 Mar 2010
Posts: 19803

View user's profile Send private message

PostPosted: Fri Apr 25, 2025 12:08 am     Reply with quote

and honestly, don't use the wizard. It causes more problems than it fixes.
Learn to set things up for yourself. I can't think of anything it does really
well... Sad
jeffg28CLY



Joined: 24 Apr 2025
Posts: 2

View user's profile Send private message

PostPosted: Fri Apr 25, 2025 8:37 am     Reply with quote

Ttelmah wrote:
and honestly, don't use the wizard. It causes more problems than it fixes.
Learn to set things up for yourself. I can't think of anything it does really
well... Sad

I generally only use it as a jumping-off point, or as a reminder. "What is this function called? It's been a few years, I don't remember..." I can go several months between PIC programming projects, so each time I need to do it again, I'll be a bit rusty at the start.
And from there I'll consult the device's .h file so I can configure exactly what I need.


@PrinceNai - Ok good, thank you, that tells me I need to look up and use setup_low_volt_detect and use #INT_HLVD.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group