Search found 40 matches

by Anuradha
05 Oct 2010 10:01
Forum: mikroC PRO for PIC General
Topic: I2C interface
Replies: 3
Views: 1619

I2C interface

Hello all,

I need to be familiar with I2C interface.

Can somebody kindly give me an introduction to I2C?
Effective references too are welcome :)

Thank you.
by Anuradha
18 Jul 2010 09:02
Forum: mikroC PRO for PIC General
Topic: Need help in uart data transmission
Replies: 8
Views: 2444

Re: Need help in uart data transmission

Thanks every body for replying. At the time of hard working, replies I received through mikroElectronika are really helpful to me. There is another issue i need to discuss with you. I have four integer variables, short integers; TH, TL, WidH and WidL. I can put them into an integer array of size 4. ...
by Anuradha
14 Jul 2010 12:43
Forum: mikroC PRO for PIC General
Topic: Need help in uart data transmission
Replies: 8
Views: 2444

Re: Need help in uart data transmission

Hello, Thanks for replying. I tried on the first method Mr. Aleksadar has pointed out, since it seemed a nice trick. :) The program compiled well and worked. :) The Uart1_Write_text(myout); is used to transmit data via uart in my program. It transmit data correctly, but the problem is that most of t...
by Anuradha
14 Jul 2010 06:32
Forum: mikroC PRO for PIC General
Topic: Need help in uart data transmission
Replies: 8
Views: 2444

Need help in uart data transmission

Hello all, Attached herewith is a piece of the code which i have written in MikroC and overwrite into a pic16f877a. Duty = (float)Wid/T; FloatToStr(Duty,myout); //Transmit; Uart1_Write_text("P"); Uart1_Write_text(myout); Here Wid and T are integer variables which are correctly calculated by other fu...
by Anuradha
24 Jun 2010 10:05
Forum: mikroC PRO for PIC General
Topic: Writing MikroC programs with interrupts
Replies: 2
Views: 1815

Re: Writing MikroC programs with interrupts

It is a PIC16f877a. I need to capture a PWM using PIC, and transmit it to uart. I have attached the code I developed without interrupts. /*Calculate PWM using CCP modules */ //start timer after capturing rising edge. so no need of subtraction function //Transmit directly captured width and time peri...
by Anuradha
24 Jun 2010 06:30
Forum: mikroC PRO for PIC General
Topic: Writing MikroC programs with interrupts
Replies: 2
Views: 1815

Writing MikroC programs with interrupts

Hello all,

Am sorry, I cant exactly remember whether I have posted this request earlier.

Any way I need example codes in mikroC where interrupts are used,

If you have any do post here.

Thank you.
by Anuradha
17 Jun 2010 11:44
Forum: mikroC PRO for PIC General
Topic: maximum buffer size in MikroC Pro
Replies: 2
Views: 1349

maximum buffer size in MikroC Pro

Is there a maximum buffer size that MikroC pro freely downloadable version allow?

because when I include a line like this,

char output[128];

compile error says, Available ram memeory is not enough.

is that a problem with MikroC or my Ram???

Are there any ways to have larger arrays?

Thanks.
by Anuradha
16 Jun 2010 13:52
Forum: mikroC PRO for PIC General
Topic: Uart mikroC functions
Replies: 9
Views: 6620

Re: Uart mikroC functions

hello,

I need working sample codes for,
Uart1_Read_Text(address,"OK ",20);

function.
If anybody have them pls be kind enough to post it here.

thanks.
by Anuradha
10 Jun 2010 02:19
Forum: mikroC PRO for PIC General
Topic: FloatToStr function
Replies: 2
Views: 1527

FloatToStr function

Hello All, I have a floating point number calculated by PIC16F877A. I need to send this to the PC side via PIC's uart. So that i convert the floating point number which is stored in the float variable Duty using FloatToStr function and sent it to the uart. char myout[15]; FloatToStr(D2, myout); In t...
by Anuradha
08 Jun 2010 12:36
Forum: mikroC PRO for PIC General
Topic: Dividing two 16 bit values in MikroC
Replies: 7
Views: 4511

Re: Dividing two 16 bit values in MikroC

Yeah Mario it worked. :lol:

Thank you very much :P
by Anuradha
08 Jun 2010 06:34
Forum: mikroC PRO for PIC General
Topic: Add a tag to separately identify data transmitted by uart
Replies: 3
Views: 1943

Add a tag to separately identify data transmitted by uart

Hello all, I am measuring the PWM signal pulse width. PWM is captured by a PIC16F877a mikrocontroller and it can obtain the pulse width (stored in variable Wid) and time period (T). In order to calculate duty cycle (D = Wid/T) i am sending these Wid and T value to PC via Uart of the pic. The PC need...
by Anuradha
07 Jun 2010 13:21
Forum: mikroC PRO for PIC General
Topic: float number on T6963C GLCD
Replies: 14
Views: 7479

Re: float number on T6963C GLCD

Hello Mr. Eraumus and Reza, Hope you two can help me to solve the issue i am facing, which is somewhat similar to what Reza has been facing. First I am attaching my MikroC code here with. unsigned short int WidL,WidH,TL,TH,x,i,Count; unsigned int Wid,T,D1; float D2,D3; unsigned char myout[15]; void ...
by Anuradha
07 Jun 2010 12:36
Forum: mikroC PRO for PIC General
Topic: Dividing two 16 bit values in MikroC
Replies: 7
Views: 4511

Re: Dividing two 16 bit values in MikroC

Hello, I am in trouble again. I am dividing two numbers (16 bit integers) and need to get the answer in floating points. This answer is then sent to the PC via uart of my Microcontroller PIC 16F877a. Attached here with is the part of the program i wrote. unsigned short int WidL,WidH,TL,TH,x,i,Count;...
by Anuradha
06 Jun 2010 13:24
Forum: mikroC PRO for PIC General
Topic: Dividing two 16 bit values in MikroC
Replies: 7
Views: 4511

Re: Dividing two 16 bit values in MikroC

Yes Mario,
You have rightly identified it. :)


Thanks for your support.

Go to advanced search