RTC DS1302 - PIC16F877A SPI MODE.

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

Moderators: Benj, Mods

Post Reply
BITIT
Posts: 3
Joined: Fri May 25, 2007 8:08 am
Location: Dennark
Contact:

RTC DS1302 - PIC16F877A SPI MODE.

Post by BITIT »

Hi

Have anyone made a FLOWCODE program to a DC1302 that works.
We have some problems making it work. If anyone have made a
FLOWCODE program we would like to see a copy, and the same to
the circuit. The DS1302 to not have separated SPI, and SDO, so
we have to make some special HW to make this work.

We also need help set up the parameters on the SPI mode in
FLOWCODE when we are using the DS1302.

But until now we have not had luck to get in contact with the DS1302.

It will be a great help, if anyone would help us.

Thank You in advance.

Best regards Jorgen

User avatar
Benj
Matrix Staff
Posts: 14835
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: RTC DS1302 - PIC16F877A SPI MODE.

Post by Benj »

Hello Jorgen

Firstly make sure your connections are ok. SDI goes to SDO, SDO goes to SDI, SCK goes to SCK and a digital I/O pin is being used for the CS.

Next make sure that your SPI component properties are ok eg correct frequency, clock polarity, sample timing etc to match the device datasheet.

Finally make sure that you are controlling the CS line correctly in your code. eg setting and clearing the CS I/O pin when appropriate.

User avatar
sysprofessional
Posts: 53
Joined: Sat Oct 26, 2013 7:16 pm
Contact:

RTC DS1302 - PIC16F887 I2C MODE.

Post by sysprofessional »

Hi

Have anyone made a FLOWCODE program for DS1302 using I2C
i have some problems making it work.
i have already done it with DS1307,but got some problems with ds1302
Plz just guide me if there is any old post on forum about Ds1302 -using I2C or SPI,
It will be a great help, if anyone would help us.

Thank You in advance.

Best regards syspro

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Contact:

Re: RTC DS1302 - PIC16F877A SPI MODE.

Post by dazz »

Hi
can you sign up to the v5 forum(link in my sig). and ask your question in there

Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

User avatar
sysprofessional
Posts: 53
Joined: Sat Oct 26, 2013 7:16 pm
Contact:

Re: RTC DS1302 - PIC16F887 I2C MODE.

Post by sysprofessional »

Hi

Dear Benj,, :D
Correct me Plz,
there is no old post about DS1302 on Forum,I am working on ds1302 using 3 wire SPI protocol,
but no success plz check my files attached below,proteus file also attached in this compressed rar attachment,

It will be a great help,

Thank You in advance.

Best regards Tahir

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Contact:

Re: RTC DS1302 - PIC16F877A SPI MODE.

Post by dazz »

Hi
can you sign up to the v5 forum(link in my sig). and ask your question in there, this is the second time of asking, the reason of asking is vc's and matrix staff have limited time to help answer questions , so help us to help you by posting in the correct forum, where your post will be read by more people who may be able to help

Kindest Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

Post Reply