View previous topic :: View next topic |
Author |
Message |
ipq
Joined: 20 Aug 2015 Posts: 17
|
PIC18F46J11 + wizard CCS 5.051 = Where's HLVD? |
Posted: Wed Aug 31, 2016 3:20 am |
|
|
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
|
|
Posted: Wed Aug 31, 2016 1:19 pm |
|
|
'wizard' isn't all knowing ! ??
cut real code and see if it compiles
Jay |
|
|
gjs_rsdi
Joined: 06 Feb 2006 Posts: 468 Location: Bali
|
|
Posted: Thu Sep 01, 2016 3:38 am |
|
|
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
|
|
Posted: Thu Sep 01, 2016 7:32 am |
|
|
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
|
|
Posted: Fri Sep 02, 2016 6:28 pm |
|
|
Thanks for the tip Ttelmah
Easy if you know all the tips and tricks
Best wishes
Joe |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19515
|
|
Posted: Sat Sep 03, 2016 1:10 am |
|
|
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... |
|
|
gjs_rsdi
Joined: 06 Feb 2006 Posts: 468 Location: Bali
|
|
Posted: Sat Sep 03, 2016 4:01 pm |
|
|
I sent a report to CCS, hope they will correct the subject.
Best wishes
Joe |
|
|
|