Search found 39 matches

by Olivia
21 Jun 2011 16:57
Forum: mikroC PRO for PIC General
Topic: UART1 & UART2
Replies: 11
Views: 4674

UART1 & UART2

Hi, I have this PIC16F1947 that's got 2 UARTs I want to use one for receiving data from a GPS module, and the other one to transmit and receive data to PC. I initialize them both Uart1_Init(9600); Uart2_Init(9600); Delay_ms(100); But when I compile the program, it comes with an error: TXSTA pointing...
by Olivia
16 Jun 2011 14:51
Forum: mikroC PRO for PIC General
Topic: ARM str710fz2t6
Replies: 3
Views: 1295

Re: ARM str710fz2t6

Thank you,

I'll check it out,

Regards,
by Olivia
16 Jun 2011 10:10
Forum: mikroC PRO for PIC General
Topic: ARM str710fz2t6
Replies: 3
Views: 1295

ARM str710fz2t6

Hi,

What programming software can I use to develop applications for an ARM str710fz2t6 ?

Any idea?

Thanks
by Olivia
15 Mar 2011 14:09
Forum: mikroC PRO for PIC General
Topic: How many serial ports
Replies: 8
Views: 1962

How many serial ports

Hi,

How many serial ports can I make / use on a pic?
Can I make 5 UART ports on a pic using softUART?

pic18f4520

Thanks.
by Olivia
16 Sep 2010 15:34
Forum: mikroC PRO for PIC General
Topic: DS1682
Replies: 2
Views: 1504

DS1682

Hi, For a week I've been working on this chip. I am not a good programmer, so I've searched the web for a sample code for it, or for someone to help me. I have not found any sample code, but I've found few people (even on this forum) that helped me with it. Thank you everybody. Now, that I have fini...
by Olivia
14 Sep 2010 16:31
Forum: mikroC PRO for PIC General
Topic: How can I concatenate 4 bytes ?
Replies: 9
Views: 9440

Re: How can I concatenate 4 bytes ?

Thank you jumper It is working now. See, I'm not that stupid, I'm stupider than that. I have tried jumper's solution previously (on my own idea), and it did not work. Because I shifted it the other way. jumper 's solution: etc = (aad<<32)+(aac<<16)+(aab<<8)+aaa; LongToStr(etc/4, txt); //need to divi...
by Olivia
14 Sep 2010 12:24
Forum: mikroC PRO for PIC General
Topic: How can I concatenate 4 bytes ?
Replies: 9
Views: 9440

Re: How can I concatenate 4 bytes ?

No, I can't make it work.

I have 4 bytes from this chip DS1682
at addresses
0x05 low
0x06 middle low
0x07 middle high
0x08 high

I want to put all of them in a big long and then divide it by 4 and display it on LCD.

Can someone help me?

Thanks.
by Olivia
13 Sep 2010 09:34
Forum: mikroC PRO for PIC General
Topic: How can I concatenate 4 bytes ?
Replies: 9
Views: 9440

How can I concatenate 4 bytes ?

How can I concatenate 4 bytes ?

I know strcat.
But that is only doing 2 bytes at a time.

Thanks
by Olivia
12 Sep 2010 00:19
Forum: mikroC PRO for PIC General
Topic: can I see a byte?
Replies: 8
Views: 2459

Re: can I see a byte?

I was thinking if it is possible to put on dispaly a byte, let's say 0b10011011 I know you can put the same in hex on display 0x9B But is there a function that will convert the hex being transmitted to the LCD so it will be displayed as 0b10011011? And if the original message read from the chip was ...
by Olivia
12 Sep 2010 00:07
Forum: mikroC PRO for PIC General
Topic: add minutes and hours into a memory
Replies: 8
Views: 2713

Re: add minutes and hours into a memory

Sorry, maybe I did not explain corectly what I want and what the problem is: So I want to record the total time an engine was runing for. Not just the last run, but the total run over the years. So let's say it is running for 2 hours daily for 20 years that would give a total of 14600 hours. You see...
by Olivia
11 Sep 2010 08:18
Forum: mikroC PRO for PIC General
Topic: i2c chips learning
Replies: 5
Views: 1917

Re:[solved] i2c chips learning

Thanks for helping me understand it.

Case closed.
Regards.
by Olivia
10 Sep 2010 09:18
Forum: mikroC PRO for PIC General
Topic: i2c chips learning
Replies: 5
Views: 1917

Re: i2c chips learning

Thank you Dany, Yes I understand what the result of %10 is. And I see it's working fine. I just don't understand what do we manipulate with %10 so we can get number 7 in my example. And I don't understand why there is a 10, why not 3, or 7, or whatever? I understand that % is a remainder Is it the r...
by Olivia
09 Sep 2010 23:04
Forum: mikroC PRO for PIC General
Topic: can I see a byte?
Replies: 8
Views: 2459

can I see a byte?

Is there a way to display a byte on LCD, so you can actually see it?

it's not part of a project,
just for educational purposes

Thanks
by Olivia
09 Sep 2010 16:57
Forum: mikroC PRO for PIC General
Topic: i2c chips learning
Replies: 5
Views: 1917

i2c chips learning

Hi, I have a problem with an I2C chip, DS1682+ In order for me to fix the problem, I need to learn how another I2C chip, PCF8583 is working. I have this chip up and running OK, but I just copied the code, without understanding it. So, what exactly is happening here: seconds = ((seconds & 0xF0) >> 4)...
by Olivia
09 Sep 2010 14:26
Forum: mikroC PRO for PIC General
Topic: add minutes and hours into a memory
Replies: 8
Views: 2713

Re: add minutes and hours into a memory

Thanks for trying ranko This is exactly what I have done. I copied your example for RTC, and just changed the seconds, minutes, hours to my aaa,aab,aac....and of course the chip address The problem is that in your example the RTC chip increments every second (that's why the code works); But in my ap...

Go to advanced search