Search found 10 matches

by Bangon Kali
08 Mar 2013 14:45
Forum: mikroC General
Topic: #ifndef
Replies: 3
Views: 4097

Re: #ifndef

This may help.
by Bangon Kali
29 Jan 2013 22:03
Forum: mikroC PRO for PIC General
Topic: PIC18F4550 Interrup, Propper Initialization
Replies: 2
Views: 1264

PIC18F4550 Interrup, Propper Initialization

Why is it my interrupt isn't working in simulation. I think I have setup the interrupt and timer related registers correctly. // http://ww1.microchip.com/downloads/en/devicedoc/39632e.pdf int counter; int flag = 0; void interrupt() { if (INTCON.RBIF) { counter++; flag = 1; INTCON.RBIF = 0; } if (INT...
by Bangon Kali
29 Jan 2013 21:51
Forum: mikroC PRO for PIC General
Topic: c# application for USB HID with pic18F
Replies: 12
Views: 13096

Re: c# application for USB HID with pic18F

I undertook the same project albeit using PIC18F4550. However I have made sufficient documentation in order to get you started. You may visit/download the code repository at my github page.
by Bangon Kali
23 Sep 2012 17:06
Forum: mikroC PRO for PIC General
Topic: Lcd_Out_Cp and case sensitive option enabled bug
Replies: 4
Views: 1897

Re: Lcd_Out_Cp and case sensitive option enabled bug

This was dumb. Tsk3... The Documentation should take this in to account. C should be case sensitive. The Documentation should follow the case sensitive notation. Tsk...
by Bangon Kali
21 Sep 2012 15:21
Forum: mikroC PRO for PIC General
Topic: Proper DS1307 with PIC18F4550 interfacing using I2C. How?
Replies: 11
Views: 8316

Re: Proper DS1307 with PIC18F4550 interfacing using I2C. How

Thank you very much! I will note those things regarding LAT usage. I will use LATX when writing to a pin if the PIN is set as output. I will use PORTX when reading from a pin when a pin is used as INPUT.
by Bangon Kali
21 Sep 2012 13:25
Forum: mikroC PRO for PIC General
Topic: Proper DS1307 with PIC18F4550 interfacing using I2C. How?
Replies: 11
Views: 8316

Re: Proper DS1307 with PIC18F4550 interfacing using I2C. How

MARIO wrote: Try to change R3 & R4 to DIGITAL (Edit Properties / Model type). I have in my code Code: Select all ADCON1 = 0x0F; // page 268 Sorry. :oops: I was talking about Proteus and resistors R3 & R4, not PIC code, because I see you are doing simulation. :lol: I didn't analyze your code. Thank ...
by Bangon Kali
21 Sep 2012 09:43
Forum: mikroC PRO for PIC General
Topic: Proper DS1307 with PIC18F4550 interfacing using I2C. How?
Replies: 11
Views: 8316

Re: Proper DS1307 with PIC18F4550 interfacing using I2C. How

Hi, You can try using code for RTC2 Click board that uses DS1307 : http://www.mikroe.com/click/rtc2/ Regards, Filip. The code above actually came from the source you suggested which is why some of it I have been having trouble converting to work with PIC18F4550. As for the PIC18F4550, it seems my m...
by Bangon Kali
21 Sep 2012 03:18
Forum: mikroC PRO for PIC General
Topic: ds1307 and pic16f886 problem
Replies: 7
Views: 2621

Re: ds1307 and pic16f886 problem

Hello. I would like to ask if you still remember how you might have solved this problem. I probably am making the same mistake. I am having problems running this piece of code for my simulation with ISIS. #ifndef DS1307 #define DS1307 0b11010000 #endif sbit LCD_RS at RB3_bit; sbit LCD_EN at RB2_bit;...
by Bangon Kali
21 Sep 2012 03:11
Forum: mikroC PRO for PIC General
Topic: Proper DS1307 with PIC18F4550 interfacing using I2C. How?
Replies: 11
Views: 8316

Re: Proper DS1307 with PIC18F4550 interfacing using I2C. How

Try to change R3 & R4 to DIGITAL (Edit Properties / Model type). I have in my code ADCON1 = 0x0F; // page 268 To disable Analog Functionality of the PIC184550. Is this correct? It is in this portion of my code: void Init_Main_Simple() { ADCON1 = 0x0F; // page 268 Lcd_Init(); // Initialize LCD Lcd_C...
by Bangon Kali
20 Sep 2012 08:47
Forum: mikroC PRO for PIC General
Topic: Proper DS1307 with PIC18F4550 interfacing using I2C. How?
Replies: 11
Views: 8316

Proper DS1307 with PIC18F4550 interfacing using I2C. How?

How do I properly connect the DS1307 with PIC18F4550? I'm using MikroC Pro. I have attached below the Proteus Isis Design files and MicroC Design files. The following is my Code: // LCD module connections sbit LCD_RS at RB3_bit; sbit LCD_EN at RB2_bit; sbit LCD_D4 at RB4_bit; sbit LCD_D5 at RB5_bit;...

Go to advanced search