Search found 619 matches
- 25 Sep 2010 07:31
- Forum: mikroC PRO for PIC General
- Topic: UTC time to Local time
- Replies: 3
- Views: 1377
Re: UTC time to Local time
I don't know if this will solve your problem but you have declared 'dump' as having 2 elements (char dump[2]), in your code you are dealing with 3 elements (dump[0], dump[1], dump[2]). I haven't tried it but the compiler should flag an error in this situation, so you could try one of these solutions...
- 23 Sep 2010 07:31
- Forum: mikroC General
- Topic: How to divide int ?
- Replies: 4
- Views: 2218
Re: How to divide int ?
Crocu, you have only done half the calculation - after the division you then need to take care of the remainder, have a look at the modulus operator (%) in the help files.
- 23 Sep 2010 07:22
- Forum: mikroC PRO for PIC General
- Topic: USB Hid communication in VB6 (Visual Basic 6)
- Replies: 21
- Views: 54394
Re: USB Hid communication in VB6 (Visual Basic 6)
What a great thread, thanks to Womai and everyone else for their input.
I know that I'm going to face this problem eventually, now it's going to be much easier! Thanks again.
I know that I'm going to face this problem eventually, now it's going to be much easier! Thanks again.
- 22 Sep 2010 07:38
- Forum: mikroC PRO for PIC General
- Topic: SPI communication question
- Replies: 7
- Views: 2839
Re: SPI communication question
we sometimes forget the 2 are simultaneous on SPI. Whilst I don't disagree, in the realm of PIC's and MikroC we are very much confined to the read and write sequence, indeed many SPI devices are made to behave in this way. I have worked with true duplex devices but only when interfaced to FPGA with...
- 21 Sep 2010 07:42
- Forum: mikroC PRO for PIC General
- Topic: UART1_Init failure on PIC18F2220
- Replies: 6
- Views: 1744
- 21 Sep 2010 07:40
- Forum: mikroC PRO for PIC General
- Topic: SPI communication question
- Replies: 7
- Views: 2839
Re: SPI communication question
It seems that for every rule there's an exception! Sorry if I created any confusion.
- 18 Sep 2010 09:47
- Forum: mikroC PRO for PIC General
- Topic: DS1682
- Replies: 2
- Views: 1529
Re: DS1682
Well done Olivia, I knew you would crack it eventually!
- 18 Sep 2010 09:44
- Forum: mikroC PRO for PIC General
- Topic: SD card and I2C RTC or sensor On same Pic Pic18F452
- Replies: 1
- Views: 1143
Re: SD card and I2C RTC or sensor On same Pic Pic18F452
Put the SD card on the hardware MSSP port and use standard SPI comms, you can put the RTC on any other port and use Soft_I2C functions to handle the comms. BTW, use the PIC4520 which has replaced the old PIC452.
- 18 Sep 2010 09:37
- Forum: mikroC PRO for PIC General
- Topic: SPI communication question
- Replies: 7
- Views: 2839
Re: SPI communication question
status=Spi1_Read(cmd); //this way I send out the command byte and receive the header byte in the same time I think that you have misunderstood the operation of SPI, although SPI is a bi-directional protocol you cannot read and write bytes simultaneously. If you look at the block diagram of the PIC'...
- 15 Sep 2010 07:18
- Forum: mikroC General
- Topic: SIMPLE RADAR USING A PIC
- Replies: 4
- Views: 2617
Re: SIMPLE RADAR USING A PIC
+1 for the link Sparky, however I have a feeling that they will be quite expensive!
For a cheaper solution, ultrasonic rangefinders used by robot builders are cheaper and easier to use...
http://www.coolcomponents.co.uk/catalog ... Path=36_60
For a cheaper solution, ultrasonic rangefinders used by robot builders are cheaper and easier to use...
http://www.coolcomponents.co.uk/catalog ... Path=36_60
- 11 Sep 2010 10:36
- Forum: mikroC PRO for PIC General
- Topic: SPI Protocol using 74HC595AN shift register
- Replies: 6
- Views: 4072
Re: SPI Protocol using 74HC595AN shift register
The signal sequence for the shift register is as follows... http://i140.photobucket.com/albums/r19/sobrietytest/SRseq.jpg The data and clock can be taken directly from the SPI port (MOSI & SCLK), unfortunately the CS signal will not be any use because it 'frames' the SPI data and does not conform to...
- 05 Sep 2010 09:07
- Forum: mikroC General
- Topic: converting data
- Replies: 4
- Views: 1769
Re: converting data
In case you got confused by braus' reply, it goes like this... short temp; int V; V = Eeprom_Read(0x32); //temp = 0x0003 V = V << 8; //V = 0x0300, i.e. the value gets bitshifted 8 binary places to the left temp = Eeprom_Read(0x33); //temp = 0x00FF V = V + temp; //V = 0x03FF
- 04 Sep 2010 11:07
- Forum: mikroC PRO for PIC General
- Topic: add minutes and hours into a memory
- Replies: 8
- Views: 2765
Re: add minutes and hours into a memory
Any suggestions? Yes, don't use an RTCC for this application! You're going to run into all sorts of bother with the maths especially if the generator is running across midnight on New Years Eve. Maxim make chips exactly for this purpose, such as the DS1682 (http://datasheets.maxim-ic.com/en/ds/DS16...
- 03 Sep 2010 07:32
- Forum: mikroC PRO for PIC General
- Topic: Cabon dioxide controller need help to make a user setpoint
- Replies: 9
- Views: 2945
Re: Cabon dioxide controller need help to make a user setpoi
C also uses the 'goto' operator and there are a number of other methods for escaping loops on a conditional requirement, have a look at the break command and switch/case conditional, they are all detailed in the compiler help files. However, C also has some rules regarding re-entrancy, in many cases...
- 03 Sep 2010 07:08
- Forum: mikroC PRO for PIC General
- Topic: Send data through serial port
- Replies: 2
- Views: 1206
Re: Send data through serial port
Read the help files.
UART1_Write_Text("Hello World");
UART1_Write_Text("Hello World");