• AVR Freaks

Code configurator issue

Author
Skoul
Starting Member
  • Total Posts : 34
  • Reward points : 0
  • Joined: 2015/04/04 00:25:43
  • Location: 0
  • Status: offline
2015/04/04 01:18:09 (permalink)
0

Code configurator issue

Hi,
First, Code Configurator is a great tool!!!
But, I have noticed an issue (latest version I hope -  how could I check it?) with MPLAB X IDE (v2.30).
More specifically, I work on a project with pic12F1840 and the TMR1.
In the Code Configurator, the decimal values are displayed taking into account my system (win 8.1, 64) locals (using comma for decimal separator) but are read only when the decimal separator in the text boxes is the dot. eg, a value of 1.2 ms is displayed as 1,2 ms, but it must be 1.2 ms to be recognized.
The same might happen in other modules, but I haven't checked it.
It is not a major issue, but it should be corrected.
Thanks
#1
IonutB
Moderator
  • Total Posts : 115
  • Reward points : 0
  • Joined: 2008/08/04 09:43:55
  • Location: 0
  • Status: offline
Re: Code configurator issue 2015/04/05 02:45:27 (permalink)
0
Your suggestion has been added to our improvements list.
As a quick fix, you can change the Windows Regional Settings to English (USA). I'm assuming you're using a non-English Locale setting.
 
Thank you for letting us know about it!
#2
Skoul
Starting Member
  • Total Posts : 34
  • Reward points : 0
  • Joined: 2015/04/04 00:25:43
  • Location: 0
  • Status: offline
Re: Code configurator issue 2015/04/05 03:04:56 (permalink)
0
Good news!
Although your suggestion works, it is not useful because a global Regional Settings change will affect other applications.
It is preferable to replace the comma with the dot in forms.
Thanks!
#3
Skoul
Starting Member
  • Total Posts : 34
  • Reward points : 0
  • Joined: 2015/04/04 00:25:43
  • Location: 0
  • Status: offline
Re: Code configurator issue 2015/04/05 03:48:33 (permalink)
0
One more issue.
According to the device's datasheet, when LVP is enabled (in CONFIG2), the MCLR Reset function is automatically enabled and cannot be disabled.
But with the MCC (v2.10.3) it is available as IO when enabled in CONFIG1, MCLR pin function.
Not tested in real circuit.
 
#4
picworker
Moderator
  • Total Posts : 47
  • Reward points : 0
  • Joined: 2013/10/21 14:45:47
  • Location: 0
  • Status: offline
Re: Code configurator issue 2015/04/09 15:13:29 (permalink)
3 (1)
The MPLAB X IDE can be run using the US locale, while leaving your OS configured to the locale of your choice.
Add the following parameters to the end of the command line that launches MPLAB X IDE:
-J-Duser.language=US -J-Duser.region=US
 
This will force MPLAB X IDE and MCC to operate using the US locale.  MCC will handle numbers correctly.
 
Please give it a try, and let us know whether this works for you or not.
 
picworker
post edited by picworker - 2015/04/09 15:26:00
#5
Skoul
Starting Member
  • Total Posts : 34
  • Reward points : 0
  • Joined: 2015/04/04 00:25:43
  • Location: 0
  • Status: offline
Re: Code configurator issue 2015/04/09 21:38:19 (permalink)
0
Thank you!
I have tried your solution and it works (MCC uses US style locale).
I also tried to use only the parameter  -J-Duser.region=US.
In this case some text boxes use my locale for displaying (Timer0) while others the US locale (Timer1)!!!!
(EDIT: on a project with pic16f1509 proc)
 
Have you worked (or checked) on my second issue reported?
 
 
post edited by Skoul - 2015/04/09 21:48:47
#6
picworker
Moderator
  • Total Posts : 47
  • Reward points : 0
  • Joined: 2013/10/21 14:45:47
  • Location: 0
  • Status: offline
Re: Code configurator issue 2015/04/10 10:41:54 (permalink)
3 (1)
Skoul
One more issue.
According to the device's datasheet, when LVP is enabled (in CONFIG2), the MCLR Reset function is automatically enabled and cannot be disabled.
But with the MCC (v2.10.3) it is available as IO when enabled in CONFIG1, MCLR pin function.
Not tested in real circuit.
 



Hello Skoul,
 
You are correct that the MCLRE configuration bit in CONFIG1 should be ignored (MCLR enabled) when the LVP configuration bit in CONFIG2 is set.  MCC is not displaying that in the Pin Manager.  The hardware should work as described in the datasheet.
 
Thank you for your observation.  MCC will need to be corrected.
 
Thanks,
picworker
#7
Jump to:
© 2019 APG vNext Commercial Version 4.5