Search found 105 matches

by Mark-
04 Nov 2013 15:48
Forum: mikroC PRO for PIC General
Topic: ANDing 3 Conditions using && Operator
Replies: 2
Views: 1363

Re: ANDing 3 Conditions using && Operator

Hello,

if ((PORTA.F1 == 1) && (PIR1.TMR1IF == 1) && (FLAG_1 == 1))

Regards,

Mark
by Mark-
07 Oct 2013 18:21
Forum: mikroC PRO for PIC General
Topic: Conversion of mikroPascal towards mikroC... [Resolved]
Replies: 5
Views: 2206

Re: Conversion of mikroPascal towards mikroC...

Hello,

Yeah I get so accustom to other programming languages or false being defined as 0.

So,

bClockIn = 0; //false
bClockIn = 1; //true

I am not sure about your other items. I do not read French. ;)

Mark
by Mark-
07 Oct 2013 17:22
Forum: mikroC PRO for PIC General
Topic: Conversion of mikroPascal towards mikroC... [Resolved]
Replies: 5
Views: 2206

Re: Conversion of mikroPascal towards mikroC...

Hello,

// count input clocks
iClkCount++;

if (In_LoadDivRate == 0)
bLoadDivRate = false;

//reset clock in change flag
bClockIn = false;

Regards,

Mark
by Mark-
04 Oct 2013 15:32
Forum: mikroC PRO for PIC General
Topic: problem with cursor and unexpected expanding collapsed code
Replies: 4
Views: 1361

Re: problem with cursor and unexpected expanding collapsed c

Hello,

Code folding has been broken for years and Mikro has shown no intention in correcting the issue.

I recall reporting issues 2 years ago that are still broken.

Turn code folding off and your life will be better.


Regards,

Mark
by Mark-
03 Oct 2013 04:01
Forum: mikroC PRO for PIC General
Topic: Basic Timer Question
Replies: 2
Views: 1226

Re: Basic Timer Question

Hello,

I know on some PICs there are connections to the osc with a divder. I just looked in the 45K22 datasheet and see:

In RC mode, OSC2 pin outputs CLKOUT which has 1/4 the frequency of OSC1 and denotes the instruction cycle rate.

I did not see one FOSC/2.

Good luck,

Mark
by Mark-
26 Sep 2013 21:55
Forum: mikroC PRO for PIC General
Topic: Equivalence for a LAT based chip of Blink LED?
Replies: 1
Views: 938

Re: Equivalence for a LAT based chip of Blink LED?

Hello,

Without testing it and looking at it for 15 seconds, the only thing I see missing is:

ANSELD = 0;

in the set up.

But, I would not do it that way.

ANSELD = 0;
TRISD0_bit = 0;

then toggle

LATD0_bit

My2c.

Regards,

Mark
by Mark-
12 Sep 2013 13:05
Forum: mikroC PRO for PIC General
Topic: LCD in 4-bit mode, without using the LCD library
Replies: 4
Views: 1633

Re: LCD in 4-bit mode, without using the LCD library

Hi, This is what I had on the last board I wroked on with LCD and it worked fine. D4 of LCD RA2/C2IN+/AN2/DACOUT/VREF D5 of LCD RA3/C1IN+/AN3/VREF+ D6 of LCD RA4/C1OUT/SRQ/T0CKI D7 of LCD RA5/C2OUT/SRNQ/SS1/HLVDIN/AN4 LCD L: Instruction code input. H: Data input -RS RB0/INT0/FLT0/SRI/AN12 void LCD_W...
by Mark-
11 Sep 2013 13:21
Forum: mikroC PRO for PIC General
Topic: spi_lcd
Replies: 9
Views: 3025

Re: spi_lcd

Hello,

Thanks for the data.

So, we are back to writing your own. IMHO it really should not be that hard.

SPI and the LCD interface are not complicated.

Good luck,

Mark
by Mark-
10 Sep 2013 23:45
Forum: mikroC PRO for PIC General
Topic: spi_lcd
Replies: 9
Views: 3025

Re: spi_lcd

Hi, I guess I am confused. We do not use the Mikroe library for the LCD but, looking at the help file it tells you how to define the pins and gives an example. I just looked at the MCP23s17 (I have never used one) and it is an I2C or SPI interface to I/O pins. The Mikroe library uses direct I/O not ...
by Mark-
06 Sep 2013 18:23
Forum: Website & Forums General Discussion
Topic: Getting Product DVD vs Downloading?
Replies: 32
Views: 399182

Re: Getting Product DVD vs Downloading?

Hello, You asked three questions. >When was the last time you used a CD/DVD on your computer? Two days ago to make a source code backup that is stored in a bank safety deposit box. >1. Probably not. I have used the CD in the past. If there was a wizard to download and setup the computer for any new ...
by Mark-
31 Aug 2013 22:19
Forum: mikroC PRO for PIC General
Topic: 18F2550 Priority bit
Replies: 3
Views: 1910

Re: 18F2550 Priority bit

Hello, Interrupt priority. From the datasheet: The PIC18F2455/2550/4455/4550 devices have multiple interrupt sources and an interrupt priority feature that allows each interrupt source to be assigned a high priority level or a low-priority level. ... High-priority interrupt events will interrupt any...
by Mark-
23 Aug 2013 18:23
Forum: mikroC PRO for PIC General
Topic: UART1 + UART2 impossible to use simultaneous
Replies: 5
Views: 3703

Re: UART1 + UART2 impossible to use simultaneous

Hello, On the last PIC project I used the 18F46K22 with both serial ports working without any problems. What could be the difference is I did not use the library. I would suggest creating a very simple project using both ports that does not work. VERY SIMPLE. Or you might find that it works with a v...
by Mark-
22 Aug 2013 13:18
Forum: Product Announcements
Topic: Please share your thoughts: E-mail and FREE SMS Newsletter
Replies: 8
Views: 12386

Re: Please share your thoughts: E-mail and FREE SMS Newslett

Hello, I would prefer you: 1) Correct the huge list of IDE bugs/failures. 2) Refactor the sprintf library to make it smaller. 3) Provide a method to set configuration values in code. 4) Add a before compile and after successful compile user configurable event. 5) Fix bugs. Then I would consider putt...
by Mark-
02 Aug 2013 17:34
Forum: mikroC PRO for PIC General
Topic: #ifndef and #endif
Replies: 5
Views: 2158

Re: #ifndef and #endif

Hello, > The compiler can complile the complete project without errors and works fine in my PIC 18F452. Right, I got that. I do not get any messages like you stated. You still have something wrong. You should only initialize the variable where it is declared not where it is pulled into another file ...
by Mark-
02 Aug 2013 03:31
Forum: mikroC PRO for PIC General
Topic: #ifndef and #endif
Replies: 5
Views: 2158

Re: #ifndef and #endif

Hello, >It is not a problem, but the definitions aren't really skipped due to the #ifndef -- #endif... Then you have something wrong. It does work. I use it in every project without errors. Make a simple test case of just a couple of files to prove it works or not. If it does not work, post all the ...

Go to advanced search