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

PIC18F46J11 + wizard CCS 5.051 = Where's HLVD?

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



Joined: 20 Aug 2015
Posts: 17

View user's profile Send private message

PIC18F46J11 + wizard CCS 5.051 = Where's HLVD?
PostPosted: Wed Aug 31, 2016 3:20 am     Reply with quote

Hello,


I'm creating a new project with the PIC18F46J11 and the help of the wizard.
After selecting this device I tried to setup the HLVD but this option is disabled. I checked on the datasheet that indeed, this MCU has this module.

Is this a bug or am I doing something wrong (<- Most probably)?

Thanks in advance
temtronic



Joined: 01 Jul 2010
Posts: 9226
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Aug 31, 2016 1:19 pm     Reply with quote

'wizard' isn't all knowing ! ??

cut real code and see if it compiles

Jay
gjs_rsdi



Joined: 06 Feb 2006
Posts: 468
Location: Bali

View user's profile Send private message Send e-mail

PostPosted: Thu Sep 01, 2016 3:38 am     Reply with quote

Tried with the v5.062 and the CCS Wizard HLVD and LVD are disabled also
Tried enabling Low-Voltage Detect interrupt enabled, same result.
#define HLVDIN PIN_A5 didn't helped also.
You may send an email to CCS, post the answer please if you will get one.
You have to do it manually, see the data sheet starting from page 373

Best wishes
Joe
Ttelmah



Joined: 11 Mar 2010
Posts: 19515

View user's profile Send private message

PostPosted: Thu Sep 01, 2016 7:32 am     Reply with quote

It has been omitted from the device database.

You can use it yourself manually, if you have the IDE, and enable it. Device editor. Select the PIC. Middle column, bottom entry 'other features'. Expand this, about half way down 'voltage detect'. Change to 2.4-3.4 High/Low.

You can then copy in the setup_lvd defines from another chip with the same LVD, and this function will then be accepted. The interrupt won't do anything till the module is enabled.

Separately though, stop using the wizard.

It doesn't help you. It is only as good as the settings you put into it, and if you are having to get these right, you might as well just put the right settings into the code yourself....
gjs_rsdi



Joined: 06 Feb 2006
Posts: 468
Location: Bali

View user's profile Send private message Send e-mail

PostPosted: Fri Sep 02, 2016 6:28 pm     Reply with quote

Thanks for the tip Ttelmah Smile
Easy if you know all the tips and tricks Smile

Best wishes
Joe
Ttelmah



Joined: 11 Mar 2010
Posts: 19515

View user's profile Send private message

PostPosted: Sat Sep 03, 2016 1:10 am     Reply with quote

Report it to CCS though.

They should probably send you an updated devices.dat, and it'll then be added to the next compiler release. It is an error. Even if you don't use the Wizard, it should be supported... Smile
gjs_rsdi



Joined: 06 Feb 2006
Posts: 468
Location: Bali

View user's profile Send private message Send e-mail

PostPosted: Sat Sep 03, 2016 4:01 pm     Reply with quote

I sent a report to CCS, hope they will correct the subject.

Best wishes
Joe
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