Page 1 of 1

PIC12F1840 with DS1307

Posted: Fri May 18, 2018 12:24 pm
by seokgi
I'm sorry I always want to help.
I have a question again. PIC12F1840 and ds1307. But it does not compile. Maybe I'm running out of memory, I do not know exactly. Is there a way to reduce memory? I am worried about having to use a counter. And does the RTC component consume a lot of memory? Can variables be used in RTC components?

I'll wait for your help.

Thank you.

Re: PIC12F1840 with DS1307

Posted: Fri May 18, 2018 2:01 pm
by LeighM
Compiles for me. Can you post your msg.txt file?

Re: PIC12F1840 with DS1307

Posted: Fri May 18, 2018 3:46 pm
by seokgi
That's it

Re: PIC12F1840 with DS1307

Posted: Fri May 18, 2018 7:31 pm
by medelec35
Hi seokgi,
The message is saying that flowchart has compiled OK but has an issue with programming target device.
So the hex file is being generated, just not transferred to chip.
My advice would be to use IPE.
If you have not got it then download MPLAB X installer then during install you can select to install only IPE if required.
IPE is the PICkit 3 programming software. If you want PICkit 3 to power target device, then you can enable that from the advance menu.

Also I have noticed that you have watchdog timer enabled.
Try disabling it and then see if all works.
As MCLR is enabled, is pin 4 pulled to supply voltage ?

Martin

Re: PIC12F1840 with DS1307

Posted: Sat May 19, 2018 1:29 am
by seokgi
Thank you.

I will try it. and noti for you.

Re: PIC12F1840 with DS1307

Posted: Sat May 19, 2018 8:36 am
by seokgi
Congratulations!! on the release of flowcode v8. I look forward to it.

I did not find any problems in the above program so I found a problem with the circuit part. The output of the NE555 was connected to the PGD, causing an oscillation. I removed that part and the download issue was resolved. And the PIC12F1840's memory is small and the program is a problem. The RTC component consumes too much memory. Give me a solution.
Thank you.

Re: PIC12F1840 with DS1307

Posted: Mon May 21, 2018 5:07 am
by seokgi
I used the set feature of the RTC component because it was difficult to convert decimal numbers to hexadecimal. However, the value of the month is not increased. Other functions work normally. And the RTC component function consumes a lot of memory.

Please help me.