Search found 1179 matches
- 07 Jul 2017 23:44
- Forum: mikroC PRO for PIC General
- Topic: Pic Oscillator Speed
- Replies: 4
- Views: 2346
Re: Pic Oscillator Speed
Another problem is that the frequency of data aquisition that i'm implementing is getting lower as long as the program runs so after some minutes they are getting in a lower frequency. Does anybody know why this happens? Sounds like a code problem. It certainly isn't due to the PIC. Post your code ...
- 07 Jul 2017 05:34
- Forum: mikroC PRO for PIC General
- Topic: Pic Oscillator Speed
- Replies: 4
- Views: 2346
Re: Pic Oscillator Speed
PIC 16F/18F series system clock is Fosc/4, meaning the instruction clock will run at 8MHz internally with 32MHz input. The internal PLL is rated to 64MHz max so applying the 32MHz input with the PLL enabled will yield unpredictable behavior. This is because the PLL module applies a x4 multiplier pus...
- 05 Jul 2017 07:53
- Forum: mikroC PRO for PIC General
- Topic: Any known issues with unsigned longs with 18F46K22 ?
- Replies: 8
- Views: 4422
Re: Any known issues with unsigned longs with 18F46K22 ?
The "printout" command does not handle unsigned long (32-bit) variable types. Also your printout command is applying the "%d" conversion format which is for signed int (16-bit) variable types. See the help file for more details. And while you're there take a look at the "LongToStr" and "UARTx_Write_...
- 25 Jun 2017 18:33
- Forum: mikroC PRO for PIC General
- Topic: Help!!!! PIC18F4685 Project 16MHz Clock
- Replies: 10
- Views: 3854
Re: Help!!!! PIC18F4685 Project 16MHz Clock
Just one observation on the schematic... +5V to power the SD card???
The electrical specification for maximum Vdd voltage for any type or brand SD card is +3.6V, above this you risk damaging it.
The electrical specification for maximum Vdd voltage for any type or brand SD card is +3.6V, above this you risk damaging it.
- 09 Jun 2017 18:18
- Forum: mikroC PRO for PIC General
- Topic: SPI Clock delaying experience?
- Replies: 4
- Views: 1790
Re: SPI Clock delaying experience?
Not knowing the ADC part, and assuming they are all the same, you might get away with chip selecting all 5 and issuing the conversion command at once. This assumes the data clocked back from each during this process is zero minimizing bus contention saving you some cycle time. Of course the read bac...
- 09 Jun 2017 17:51
- Forum: mikroC PRO for PIC General
- Topic: SPI Clock delaying experience?
- Replies: 4
- Views: 1790
Re: SPI Clock delaying experience?
I looked at the ADuM3150 for use in an intrinsically safe product awhile back. For my needs the prop delays were acceptable. The question is what are you communicating with where 14/35 nS of prop delay is a problem? The DCLK mode does compensate for the internal delays. If the mikroC SPI library is ...
- 04 Jun 2017 20:33
- Forum: mikroC PRO for PIC General
- Topic: How to remove joystick spikes
- Replies: 2
- Views: 1601
Re: How to remove joystick spikes
1. ADC result averaging.
2. Simple RC filtering on ADC inputs.
3. Combination of the two.
2. Simple RC filtering on ADC inputs.
3. Combination of the two.
- 31 May 2017 06:08
- Forum: mikroC PRO for PIC General
- Topic: What changed with built-in FAT32 library bundled with V7.10?
- Replies: 3
- Views: 1713
What changed with built-in FAT32 library bundled with V7.10?
I have a large project that compiles and functions correctly with SD media using mikroC V6.62 and FAT32 library package version 1483703156. I just upgraded the compiler to V7.10 with the built-in FAT32 library and now my SD media fails to initialize (error code -3). I even tried uninstalling the FAT...
- 17 May 2017 20:42
- Forum: mikroC PRO for PIC Wish List
- Topic: Compiler statistics addition
- Replies: 1
- Views: 2430
Compiler statistics addition
A useful feature to add to all the compiler statistics tools would be to have a listing that shows RAM usage by function.
This would include local automatic and static variables, string literals, unions, structs, and possibly the duration of each.
This would include local automatic and static variables, string literals, unions, structs, and possibly the duration of each.
- 15 May 2017 03:26
- Forum: mikroC PRO for PIC General
- Topic: Speeding up array lookups - any ideas?
- Replies: 2
- Views: 1787
Re: Speeding up array lookups - any ideas?
This is always a tricky thing to implement. Typically passing data by value is faster for small amounts of data because there is low overhead for addressing. But in some instances passing data by reference is faster when many arguments are being accessed. In your case it may take a few tries to code...
- 10 May 2017 04:06
- Forum: mikroC PRO for PIC General
- Topic: MCPP9700A TEMPERATURE SENSOR
- Replies: 5
- Views: 2664
Re: MCPP9700A TEMPERATURE SENSOR
Code: Select all
ADC_Init_Advanced(_ADC_EXTERNAL_VREFL | _ADC_INTERNAL_FVRH2);
Should it not be...
Code: Select all
ADC_Init_Advanced(_ADC_INTERNAL_VREFL | _ADC_INTERNAL_FVRH2)
- 07 May 2017 05:59
- Forum: mikroC PRO for PIC General
- Topic: pic interrrupt on change, pci16f1938
- Replies: 4
- Views: 2389
Re: pic interrrupt on change, pci16f1938
Much like the mikroC IDE, the MPLAB X IDE internal simulator is not very comprehensive and does not support peripheral operations outside of reading and writing PIC registers. Things like timed interrupts are not supported. However as you already know Proteus does support his simulation functionalit...
- 21 Apr 2017 01:14
- Forum: mikroC PRO for PIC General
- Topic: PWM2 Library missing MikroC PRO for PIC v6.6.3, How to add?
- Replies: 5
- Views: 3920
Re: PWM2 Library missing MikroC PRO for PIC v6.6.3, How to
I am using PIC18F13K22 and MikroC PRO for PIC v6.6.3, I could only find Library for PWM1, I want to use PWM2 also. Please suggest how to add library? Surjit, you are not paying attention. The PIC18F13K22 only has one PWM peripheral module that controls 4 output pins with alternate phases used to dr...
- 05 Apr 2017 01:39
- Forum: mikroC PRO for PIC General
- Topic: Legibility of the code
- Replies: 8
- Views: 3046
Re: Legibility of the code
You also might look in the help file for the subject "Escape Sequences" for other useful string termination shortcuts besides "\r\n" as Hexreader pointed out.
- 26 Jan 2017 19:56
- Forum: mikroC PRO for PIC General
- Topic: Function in other files
- Replies: 5
- Views: 1946