Search found 181 matches
- 06 Oct 2022 20:08
- Forum: mikroProg™ programmer and debugger
- Topic: PIC32MX695F512L - Device Detected: Unknown - When programming
- Replies: 3
- Views: 885
Re: PIC32MX695F512L - Device Detected: Unknown - When programming
Good going, glad you got it running!
- 05 Oct 2022 17:33
- Forum: mikroProg™ programmer and debugger
- Topic: PIC32MX695F512L - Device Detected: Unknown - When programming
- Replies: 3
- Views: 885
Re: PIC32MX695F512L - Device Detected: Unknown - When programming
Hi, one problem I see on the pcb is Vcap pin 85. On your board you have it connected to vdd. It should only connect to one side of the 10uf cap. The other side of the cap should be connected to vss. You can verify this in the datasheet under "minimum connections". I had the same problem once that dr...
- 22 Apr 2022 00:31
- Forum: mikroC PRO for PIC General
- Topic: Trigonometry Library
- Replies: 3
- Views: 682
Re: Trigonometry Library
I may be wrong but I think all the math libraries are from Microchip. So you may find an answer searching "Microchip Trigonometry Library"
- 05 Apr 2022 17:28
- Forum: mikroC PRO for PIC General
- Topic: 4x20 LCD with KS0073 controller
- Replies: 6
- Views: 914
Re: 4x20 LCD with KS0073 controller
Glad you found the problem Hans. I didn't notice yesterday (blindly) how you were addressing your line starts, using Lcd_Cmd(), I assumed you were using Lcd_Out(row, column, text as string) which would have problems with your display. Anyway I going to try your method using Lcd_Cmd() on my non stand...
- 04 Apr 2022 19:47
- Forum: mikroC PRO for PIC General
- Topic: 4x20 LCD with KS0073 controller
- Replies: 6
- Views: 914
Re: 4x20 LCD with KS0073 controller
Ok, but I think your problem is line addressing. Mikro uses the old Hitachi line addressing for the LCD library. Your display uses different line addresses causing your problem. Standard Hitachi HD44780 lcd 20x4 Line 1 0x00-0x13 Line 2 0x40-0x53 Line 3 0x14-0x27 Line 4 0x54-0x67 Your lcd 20x4 Line 1...
- 04 Apr 2022 17:41
- Forum: mikroC PRO for PIC General
- Topic: 4x20 LCD with KS0073 controller
- Replies: 6
- Views: 914
- 22 Mar 2022 18:22
- Forum: mikroBasic PRO for PIC General
- Topic: How to set the Registers with I2C ?
- Replies: 2
- Views: 1070
Re: How to set the Registers with I2C ?
When you use the I2C library it takes care of these register settings. Still need to set tris. If you are doing something out of the ordinary, you can set these individual registers after initializing the library. Every time I have problems with I2C it usually is the device address. If incorrect not...
- 02 Mar 2022 02:00
- Forum: User Projects
- Topic: Question about multiplexing mechanical encoders
- Replies: 2
- Views: 1167
Re: Question about multiplexing mechanical encoders
You can easily do three encoders with the 18F2550. By using INT0, INT1 and INT2. Here's a code snippet with two encoders. For a third just add a routine for int0 in the ISR. This is cut and paste so you will need make adjustments for your app Set up '=================================================...
- 28 Jul 2021 18:09
- Forum: mikroBasic PRO for PIC General
- Topic: Vref not working on PIC16F72 !!!?
- Replies: 1
- Views: 516
Re: Vref not working on PIC16F72 !!!?
When you use ADC_Read(0), the adc registers are reset to default Vref = VDD . Try using "sensor= ADC_Get_Sample(0)" and adcon1 one will not be affected.
- 05 Jul 2021 16:45
- Forum: mikroProg™ programmer and debugger
- Topic: MikroProg not finding device and has errors
- Replies: 11
- Views: 2450
Re: MikroProg not finding device and has errors
Hi
R13 and R9 should not be there! All the problems you describe are connections and not software related. Try shorting or jumper R13 R9
R13 and R9 should not be there! All the problems you describe are connections and not software related. Try shorting or jumper R13 R9
- 13 Oct 2020 19:09
- Forum: mikroBasic PRO for dsPIC30/33 and PIC24 General
- Topic: Gosub not working
- Replies: 3
- Views: 1719
Re: Gosub not working
Try moving your sub-routine above "END".
Code: Select all
program LED_Blinking
main:
TRISA = 0 ' Make port output
While true
GoSub label1
label1:
LATA = 0x0000 ' blink PORTA value
Delay_ms(500)
LATA = 0xffff
Delay_ms(500)
return
wend
end.
- 13 Oct 2020 17:58
- Forum: mikroC PRO for PIC General
- Topic: Storing variables to eeprom
- Replies: 2
- Views: 747
Re: Storing variables to eeprom
Filip
Your question led me to the "preserve data" check box in Mikro programmer suit.
Now I'm going to investigate the "Load Data" check box.
Problem solved!
Thank you
Your question led me to the "preserve data" check box in Mikro programmer suit.
Now I'm going to investigate the "Load Data" check box.
Problem solved!
Thank you
- 13 Oct 2020 01:19
- Forum: mikroC PRO for PIC General
- Topic: Storing variables to eeprom
- Replies: 2
- Views: 747
Storing variables to eeprom
I have a long menu program with many variables. The variables are saved to the internal eeprom in the menu part of the program. When the micro is powered up a sub procedure is called to read the eeprom and restore the last settings. This works fine. My problem is when I make changes to the program t...
- 16 Mar 2020 17:50
- Forum: mikroBasic PRO for PIC General
- Topic: LCD_OUT on 3rd and 4th has problem!!!
- Replies: 2
- Views: 1102
Re: LCD_OUT on 3rd and 4th has problem!!!
This could be your problem. Some of these new LCD only have a Line 1 and 2. Line 3 is actually the second half of line 1. Line 4 is the second half of Line 2. See work around example below 16x4 Display position vs code Display Line1 = mikro code = Line 1 = pos 1 to 16 Display Line2 = mikro code = Li...
- 01 Dec 2019 19:39
- Forum: mikroBasic PRO for PIC32 General
- Topic: Code Protect PIC32MZ2048EFG144
- Replies: 5
- Views: 2515
Re: Code Protect PIC32MZ2048EFG144
Hi, i use MBPro PIC32. How to protect my code from being copied from my device PIC32MZ2048EFG144 :?: i tried to configure it from project settings screen but found nothing :!: Thanks for support :idea: In your compiler go to pull down menu "project" then "edit project". You will find all your confi...