Electronics > Beginners
what is demo limit error in mikroc?
(1/1)
khatus:
Hello guys what is demo limit error ?I have found a code for Load Cell in online but while compiling it shows Demo limit error
--- Code: ---sbit LCD_RS at LATB4_bit;
sbit LCD_EN at LATB5_bit;
sbit LCD_D4 at LATB0_bit;
sbit LCD_D5 at LATB1_bit;
sbit LCD_D6 at LATB2_bit;
sbit LCD_D7 at LATB3_bit;
sbit LCD_RS_Direction at TRISB4_bit;
sbit LCD_EN_Direction at TRISB5_bit;
sbit LCD_D4_Direction at TRISB0_bit;
sbit LCD_D5_Direction at TRISB1_bit;
sbit LCD_D6_Direction at TRISB2_bit;
sbit LCD_D7_Direction at TRISB3_bit;
void main()
{
int adc_rd;
float adc_val;
float wt;
char finaltxt[8];
float quant=5.0/1024;
//char res[5];
PORTB =0xFF;
TRISB=0xFF;
ADCON1=0Xc0;
ADC_Init();
LCD_Init();
lcd_cmd(_LCD_CLEAR);
lcd_cmd(_LCD_CURSOR_OFF);
while(1)
{
adc_rd = ADC_Read(0);
adc_val=adc_rd*quant;
wt=(adc_val-0.361)/0.079;
sprintf(finaltxt,"%1.2f",wt);
lcd_cmd(_LCD_CLEAR);
Lcd_Out(1,1,"WEIGHT: ");
Lcd_Out(1,9,finaltxt);
Lcd_Out(1,14,"KGs");
Delay_ms(1000);
}
}
--- End code ---
ledtester:
https://www.quora.com/How-do-I-solve-the-problem-of-a-demo-limit-434-error-in-MikroC-Pic-v6-without-purchasing-a-license
Looks like you need to buy a license.
Doctorandus_P:
I am just curious why anyone would bother with expensive or crippled compilers in these days when GCC is freely available for almost any uC worth using.
Jeroen3:
With GCC it is expensive to maintain a stable development environment. It's almost exclusively bundled with something that used to resemble eclipse or you have to set it up all yourself.
Then two weeks later you're five continuous integration versions behind.
When you're not toying around you want to pick a version of a compiler years later and still be able to install and create an exact reproduction of what you did a long time ago.
Basically you have to VM all projects, it's just cumbersome. When you count the lost time license for a paid package suddenly isn't that bad anymore. Since those can be installed side-by-side.
So using the "free" stuff comes at a price as well.
This is why Open Source projects usually have their own toolchain setup.
sairfan1:
If you are using PIC uC you can use XC compiler, there are a lot of examples and libraries available.
Navigation
[0] Message Index
Go to full version