Author |
Message |
Topic: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
mahatia
Replies: 36
Views: 60612
|
Forum: General CCS C Discussion Posted: Thu Dec 01, 2016 7:59 am Subject: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
ok! I have tried it and it works! thank you so much. |
Topic: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
mahatia
Replies: 36
Views: 60612
|
Forum: General CCS C Discussion Posted: Wed Nov 30, 2016 8:32 am Subject: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
ok! thank you very much! |
Topic: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
mahatia
Replies: 36
Views: 60612
|
Forum: General CCS C Discussion Posted: Wed Nov 30, 2016 7:24 am Subject: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
#include <12F675.h>
#device *= 16
#fuses NOWDT, PROTECT, CPD, NOMCLR, INTRC_IO, BROWNOUT, PUT
#use delay (internal = 4MHz)
#byte GPIO = 0x00
#include "lcd.c" ... |
Topic: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
mahatia
Replies: 36
Views: 60612
|
Forum: General CCS C Discussion Posted: Wed Nov 30, 2016 7:23 am Subject: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
So, I shouldn't use enable_interrupts(global)? |
Topic: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
mahatia
Replies: 36
Views: 60612
|
Forum: General CCS C Discussion Posted: Wed Nov 30, 2016 2:35 am Subject: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
Hello everybody! I don't know what happened with my code but when I simulate it, variables don't increment. Could someone say me the reason please?
lcd_I2c.c
#include <12F675.h>
#device *= 16 ... |
Topic: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
mahatia
Replies: 36
Views: 60612
|
Forum: General CCS C Discussion Posted: Fri Nov 25, 2016 4:41 am Subject: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
Ok! Thank you very much. About the LCD, I've used an expander PCF8574 and it works fine. I can display date and hour information on it. My only problem was the interruption. Now, I am going to try it. ... |
Topic: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
mahatia
Replies: 36
Views: 60612
|
Forum: General CCS C Discussion Posted: Fri Nov 25, 2016 12:15 am Subject: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
ok! |
Topic: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
mahatia
Replies: 36
Views: 60612
|
Forum: General CCS C Discussion Posted: Thu Nov 24, 2016 1:35 pm Subject: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
so, I can't use any interruption with GP3? can I have external interrupt with GP0? |
Topic: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
mahatia
Replies: 36
Views: 60612
|
Forum: General CCS C Discussion Posted: Thu Nov 24, 2016 3:47 am Subject: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
Could you explain it more please? I have tried it and get an error! maybe I don't realy understand what you mean! I use PIC12F675 and I have use an interruption with GP2, and now, I need some interrup ... |
Topic: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
mahatia
Replies: 36
Views: 60612
|
Forum: General CCS C Discussion Posted: Thu Nov 24, 2016 2:58 am Subject: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
Thanks a lot! I will try it. |
Topic: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
mahatia
Replies: 36
Views: 60612
|
Forum: General CCS C Discussion Posted: Thu Nov 24, 2016 1:20 am Subject: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
Hello PCM programmer! At last, I can finally do it! I used the pin GP2 interrupt to configure the digital clock!
this is my code!
I2C_LCD.c
#include <12F675.h>
#device *= 16
#fuses ... |
Topic: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
mahatia
Replies: 36
Views: 60612
|
Forum: General CCS C Discussion Posted: Wed Nov 23, 2016 4:38 am Subject: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
Hello PCM programmer! I want to give you thanks for the several helps you've give for me!
At the beginning, I used the code that I've found here but I had got some problems with the PIC12F's ROM and ... |
Topic: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
mahatia
Replies: 36
Views: 60612
|
Forum: General CCS C Discussion Posted: Mon Nov 21, 2016 10:38 am Subject: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
|
Topic: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
mahatia
Replies: 36
Views: 60612
|
Forum: General CCS C Discussion Posted: Mon Nov 21, 2016 10:32 am Subject: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
thank you PCM programmer. I have tried the code and it works! But could tell me why the seconds takes a long time to increments when I simulate it with proteus? this is my code:
I2C_LCD.c
#include ... |
Topic: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
mahatia
Replies: 36
Views: 60612
|
Forum: General CCS C Discussion Posted: Wed Nov 16, 2016 3:02 pm Subject: PIC12F675+PCF8574+LCD 16x2+ RTC DS1307 |
I have done what you suggest me to do:
I2C_LCD.c
#include <12F675.h>
#device *= 16
#fuses NOWDT, PROTECT, CPD, NOMCLR, INTRC_IO, BROWNOUT, PUT
#use delay (internal = 4MHz)
#inclu ... |
|