PIC12F1840 with DS1307

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
seokgi
Posts: 164
Joined: Fri Jan 13, 2012 4:21 am
Location: South KOREA
Has thanked: 18 times
Been thanked: 16 times
Contact:

PIC12F1840 with DS1307

Post 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.
Attachments
DS1307_1.fcfx
(17.09 KiB) Downloaded 185 times

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: PIC12F1840 with DS1307

Post by LeighM »

Compiles for me. Can you post your msg.txt file?

seokgi
Posts: 164
Joined: Fri Jan 13, 2012 4:21 am
Location: South KOREA
Has thanked: 18 times
Been thanked: 16 times
Contact:

Re: PIC12F1840 with DS1307

Post by seokgi »

That's it
Attachments
Pic12f1840.jpg
Pic12f1840.jpg (56.23 KiB) Viewed 3398 times

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: PIC12F1840 with DS1307

Post 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
Martin

seokgi
Posts: 164
Joined: Fri Jan 13, 2012 4:21 am
Location: South KOREA
Has thanked: 18 times
Been thanked: 16 times
Contact:

Re: PIC12F1840 with DS1307

Post by seokgi »

Thank you.

I will try it. and noti for you.

seokgi
Posts: 164
Joined: Fri Jan 13, 2012 4:21 am
Location: South KOREA
Has thanked: 18 times
Been thanked: 16 times
Contact:

Re: PIC12F1840 with DS1307

Post 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.

seokgi
Posts: 164
Joined: Fri Jan 13, 2012 4:21 am
Location: South KOREA
Has thanked: 18 times
Been thanked: 16 times
Contact:

Re: PIC12F1840 with DS1307

Post 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.
Attachments
DS1307_2.fcfx
(27.07 KiB) Downloaded 190 times

Post Reply