Search found 30 matches

by one25
22 Jun 2017 21:46
Forum: mikroC PRO for AVR General
Topic: Suggestions for developing
Replies: 1
Views: 2434

Suggestions for developing

Dear friends, I have a great sympathy for you and your work. I bought the AVRPLC, MikroC compiler and Mikro AVR programmer (not for AVRPLC but for various) . I used your compiler for various projects in more than 4 years but I am still frustrated. I own more computers and I have to find sometimes th...
by one25
03 Nov 2014 16:49
Forum: mikroC PRO for AVR General
Topic: Serious bug in multiplication - mikroC PRO for AVR 2011 4.60
Replies: 6
Views: 4745

Re: Serious bug in multiplication - mikroC PRO for AVR 2011

Meanwhile I got this function working...

Code: Select all

new_weight = new_weight + ((unsigned long)(weight_reading[k]-0x30))*multiply_coeff[k];
by one25
03 Nov 2014 16:47
Forum: mikroC PRO for AVR General
Topic: problem in uart communication!!!
Replies: 19
Views: 9793

Re: problem in uart communication!!!

Hi, Filip,
I am using ATmega32.

Is interesting but I am no longer getting the message. Anyway, the communication worked and works well.

Thank you very much.
by one25
29 Oct 2014 12:24
Forum: mikroC PRO for AVR General
Topic: Serious bug in multiplication - mikroC PRO for AVR 2011 4.60
Replies: 6
Views: 4745

Re: Serious bug in multiplication - mikroC PRO for AVR 2011

Hi all, I have a similar problem. I receive a string from USART which finishes in \n \r, so after every \r, i reset a counter and I fill an array with next string. After this, I have to convert string in a number, so I have for example space, space, digit, digit, digit, decimal point, digit, digit, ...
by one25
29 Oct 2014 12:09
Forum: mikroC PRO for AVR General
Topic: problem in uart communication!!!
Replies: 19
Views: 9793

Re: problem in uart communication!!!

Hi all,

I am using crystal with 11.0592MHz frequency and this is the same I set under "edit project" menu.

I am getting the message
116 1509 Generated baud rate is 19231 bps (error = 0.16 percent)

Why ?
by one25
29 Oct 2014 11:59
Forum: mikroC PRO for AVR General
Topic: Read Text From UART
Replies: 1
Views: 2562

Re: Read Text From UART

I would like to add another question here, because is related to the same function. I have a weighting scale which is sending continuously a text with the data (the weight for example), finishing in \n, \r. For example: (data in hexadecimal) 20 20 20 20 30 2E 30 30 20 0D 0A 20 20 20 20 30 2E 30 30 2...
by one25
19 Apr 2014 16:53
Forum: mikroBasic PRO for PIC General
Topic: Mikro c pro for AVR problem..
Replies: 7
Views: 3082

Re: Mikro c pro for AVR problem..

Meantime I tried again and it worked. I wrote this: PWM16bit_Init(_PWM16_PHASE_CORRECT_MODE_10BIT, _PWM16_PRESCALER_16bit_1, _PWM16_NON_INVERTED, 500, 1); TCCR1A |= (1<<COM1B1)|(1<<COM1B0); //set OC1B on compare match (outputB - inverted) PWM16bit_Change_Duty(0, _TIMER1_CH_A); // set to zero both ch...
by one25
08 Apr 2014 22:00
Forum: mikroBasic PRO for PIC General
Topic: Mikro c pro for AVR problem..
Replies: 7
Views: 3082

Re: Mikro c pro for AVR problem..

Hi, filip I see is PIC section and someone started here but I am so tired and I will stop here. thank you for your effort to explain and to understand our pieces of software. Am I at my limit with MikroC for AVR. When I pay for a product, I expect to work faster. I lost half of a day to try to make ...
by one25
11 Dec 2013 11:01
Forum: mikroC PRO for AVR General
Topic: How do I set mega8 to use the internal Vref in mikroC AVR
Replies: 4
Views: 3771

Re: How do I set mega8 to use the internal Vref in mikroC AV

Hi, Try using ADC_Get_Sample instead of ADC_Read, because the ADC_Read will reinitialize the ADC in default mode each time you call it, and the ADC_Get_Sample will only read the value . Regards, Filip. filip, could you tell me, please, which are the default setting for ADC? I can't see them defined...
by one25
14 Nov 2013 22:20
Forum: mikroC PRO for AVR General
Topic: LCD library don't work on ATtiny2313 ?
Replies: 10
Views: 5261

Re: LCD library don't work on ATtiny2313 ?

Thank you again for verifying my case. This evening I put again on a breadboard the circuit and the LCD. Still doesn't work. I tried with different LCDs. In the week-end I will give it another chance, otherwise I will replace ATtiny with ATmega. I have a number of tiny2313 and I would use these. On ...
by one25
13 Nov 2013 15:40
Forum: mikroC PRO for AVR General
Topic: LCD library don't work on ATtiny2313 ?
Replies: 10
Views: 5261

Re: LCD library don't work on ATtiny2313 ?

Thank you very much.
Tomorrow I will try again and I let you know what happened.
by one25
10 Nov 2013 19:03
Forum: mikroC PRO for AVR General
Topic: LCD library don't work on ATtiny2313 ?
Replies: 10
Views: 5261

Re: LCD library don't work on ATtiny2313 ?

I made my analyse... In the picture, A0 is pin 4 of LCD, RS A1 is pin 6 of LCD, EN A2 is D4 A3 is D5 A4 is D6 A5 is D7 The sampling is @1MHz but I made also @10MHz and the signals are the same. For me seems that the LCD function is not working well... Peter, please, could you confirm me, you had ATt...
by one25
10 Nov 2013 18:24
Forum: mikroC PRO for AVR General
Topic: LCD library don't work on ATtiny2313 ?
Replies: 10
Views: 5261

Re: LCD library don't work on ATtiny2313 ?

I'm back... I installed version 6 of the compier, i compiled with the new one. Pin 1 (reset), I let it not connected (only connected to AVR ISP MK II). With this test: void main(){ Lcd_Init(); // Initialize LCD Lcd_Cmd(_LCD_CLEAR); // Clear display Lcd_Cmd(_LCD_CURSOR_OFF); // Cursor off Delay_ms(50...
by one25
10 Nov 2013 17:28
Forum: mikroC PRO for AVR General
Topic: LCD library don't work on ATtiny2313 ?
Replies: 10
Views: 5261

Re: LCD library don't work on ATtiny2313 ?

Thank you for answering, but please read my message again. As I wrote... I made several circuits with ATmega and LCD . I already know the example, I know the compiler supports tiny. As I already wrote, blinking works - so the compiler, generally works . I already made circuits with ATtiny and MikroC...
by one25
10 Nov 2013 14:46
Forum: mikroC PRO for AVR General
Topic: LCD library don't work on ATtiny2313 ?
Replies: 10
Views: 5261

LCD library don't work on ATtiny2313 ?

Hi, I am trying to make a counter with Attiny2313 and an LCD but I don't see the LCD working. I tried on another micro (mega AVR) and it works (the LCD is OK). Till now I made several contructions with LCD and Atmega and all worked. I get no errors on compiling, I carrefully controllled the settings...

Go to advanced search