Search found 187 matches
- 29 Jun 2016 19:02
- Forum: mikroC PRO for PIC General
- Topic: Problems with Pickit2 (or 3) with 18F26K22 and less than 5V
- Replies: 4
- Views: 2060
Re: Problems with Pickit2 (or 3) with 18F26K22 and less than
I've had this problem sometimes with the PIC16F's I use. What I do is going into power settings of MPLABIPE and adjust the Voltage to 4.8V thats always worked for me. With me I think it's my USB port, regulation is pretty loose.
- 21 Jun 2016 23:47
- Forum: mikroC PRO for PIC General
- Topic: LCD update variable
- Replies: 4
- Views: 1606
Re: LCD update variable
if you turn the cursor off then you dont need to move it back. the LCD_chr() command will ensure that the value is written at the same location each time. It's for a pushbutton menu, the cursor lets the user know where they are so I want to leave it on. I've also found that this command Lcd_Chr_Cp(...
- 20 Jun 2016 14:48
- Forum: mikroC PRO for PIC General
- Topic: LCD update variable
- Replies: 4
- Views: 1606
Re: LCD update variable
Change: Lcd_Out(1,11,i); to... Lcd_Chr(1,11,i); The first is for displaying a null terminated string on LCD The second is for a single Char Thanks hexreader that works.Is there anyway to hold the cursor in place? The cursor moves once to the right everytime it updates pushbuttons on the display. Ne...
- 20 Jun 2016 13:48
- Forum: mikroC PRO for PIC General
- Topic: LCD update variable
- Replies: 4
- Views: 1606
LCD update variable
I’m trying to make a simple Pushbutton menu using a 16x2 display. What I’m having a problem with is taking a variable which can be between 0-9 and just updating where the cursor is. This is just the snip that I'm using to try and figure out how to do it. All I want to do is update the value at the c...
- 15 Jun 2016 12:28
- Forum: mikroC PRO for PIC General
- Topic: Statistics?
- Replies: 7
- Views: 2938
Re: Statistics?
Hi Fred, Also, it would be a lot easier if you send us your whole project. Cause we would probably be able to reproduce this. Best regards, Uros This has been an ongoing bug (for me anyway) since I can remember no matter the project. I remember now why I didn't update to 6.63 it's just a site licen...
- 12 Jun 2016 00:26
- Forum: mikroC PRO for PIC General
- Topic: Statistics?
- Replies: 7
- Views: 2938
Re: Statistics?
Hi Fred, I have just checked statistics in my mikroC PRO for PIC v6.6.3 compiler, and it works without problem. Can you please zip and attach your project, so I can test it on my own. If you don't want to attach it here, you can send us to support[@]mikroe[dot]com Best regards, Uros It was because ...
- 09 Jun 2016 02:48
- Forum: mikroC PRO for PIC General
- Topic: Problem in ADC reading , while using Two channals PIC16F1503
- Replies: 2
- Views: 2630
Re: Problem in ADC reading , while using Two channals PIC16F
I haven't looked at your code but are you leaving sufficent delay when you switch channels?
Next time maybe post your code on the forum you may have better luck getting help.
Next time maybe post your code on the forum you may have better luck getting help.
- 05 Jun 2016 23:11
- Forum: mikroC PRO for PIC General
- Topic: Statistics?
- Replies: 7
- Views: 2938
Re: Statistics?
I've checked the assembly output and it is compilling the function but its not adding it to memory useage. Most probably the function is not used in your program. Then the linker does not include it. The statistics shown are after the linker has done its work. I thought that may be a possibility, m...
- 05 Jun 2016 23:06
- Forum: mikroC PRO for PIC General
- Topic: LCD Cursor position
- Replies: 4
- Views: 2420
Re: LCD Cursor position
I wanted to position the cursor at row1 col 5 how could I do that directly? Try this one: Lcd_Cmd(_LCD_FIRST_ROW + 4 ); // row 1, col 5 Thank you that works. I've never really had a need to use other then the standard shift left or right but when you start having to do that 6 or 7 times there must ...
- 04 Jun 2016 23:39
- Forum: mikroC PRO for PIC General
- Topic: LCD Cursor position
- Replies: 4
- Views: 2420
LCD Cursor position
Is there a way to position the cursor other then using the standard shift left or shift right. Say I wanted to position the cursor at row1 col 5 how could I do that directly?
- 04 Jun 2016 19:58
- Forum: mikroC PRO for PIC General
- Topic: Statistics?
- Replies: 7
- Views: 2938
Statistics?
Just how accuarate are the statistics shown in MikroC? I have the newest version of the compiller 6.62 but I've noticed some odd stuff when trying to see the impact of code changes. For example half the time it doesn't display numbers in some places. See attached picture in this case Data Used is bl...
- 29 May 2016 02:13
- Forum: mikroC PRO for PIC General
- Topic: Using pin alias
- Replies: 4
- Views: 1770
Re: Using pin alias
paulfjujo wrote:you can choose another word ..."direction"
it is not a reserved word for mikroC compiler.Code: Select all
set PWM3CP_inout at LATD.b1; ...... PWM3CP_inout=0; // output
Thank you paulfjujo.
- 28 May 2016 11:42
- Forum: mikroC PRO for PIC General
- Topic: Using pin alias
- Replies: 4
- Views: 1770
Re: Using pin alias
hello, use the facility of mikroC pro sbit PWM3CP_direction at TRISD.b1; sbit PWM3CP at PORTD.B1; ....... PWM3CP_direction=1; // input if (PWM3CP==1) { // ..... test input } PWM3CP_direction=0; // output PWM3CP=1; // output =1 but sometime problem if we don't use LAT instead PORT with 18Fxxxx Thank...
- 28 May 2016 01:27
- Forum: mikroC PRO for PIC General
- Topic: Data transmission using optocoupler
- Replies: 4
- Views: 2329
Re: Data transmission using optocoupler
Hi all Is it possible transmit data using optocoupler? I really need to use it because I cannot disable the interrupts of PIC18F4620. I want to try something like the image. I don't see any image? You can look at logic output opto-couplers like http://www.digikey.ca/product-search/en/isolators/opto...
- 28 May 2016 01:09
- Forum: mikroC PRO for PIC General
- Topic: Using pin alias
- Replies: 4
- Views: 1770
Using pin alias
I'm trying to figure out the correct way to give a pin a name Example I'm naming PIN RD1 PWM3CP. #define PWM3CP PORTD.RD1 // Chargepump negative rail for opamp.O/P Digital Now say I want to switch PWM3CP to an input later in my code, how do you do that. I've tried several variation of this TRISDPWM3...