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

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

RTC DS1302 - PIC16F877A SPI MODE.

Postby BITIT » Wed Nov 05, 2008 10:58 am

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: 14361
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4443 times
Been thanked: 4143 times
Contact:

Re: RTC DS1302 - PIC16F877A SPI MODE.

Postby Benj » Wed Nov 05, 2008 1:00 pm

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: 45
Joined: Sat Oct 26, 2013 7:16 pm
Has thanked: 24 times
Been thanked: 2 times
Contact:

RTC DS1302 - PIC16F887 I2C MODE.

Postby sysprofessional » Wed Oct 01, 2014 2:04 am

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
Has thanked: 514 times
Been thanked: 467 times
Contact:

Re: RTC DS1302 - PIC16F877A SPI MODE.

Postby dazz » Wed Oct 01, 2014 9:58 am

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: 45
Joined: Sat Oct 26, 2013 7:16 pm
Has thanked: 24 times
Been thanked: 2 times
Contact:

Re: RTC DS1302 - PIC16F887 I2C MODE.

Postby sysprofessional » Thu Oct 02, 2014 10:46 pm

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
Has thanked: 514 times
Been thanked: 467 times
Contact:

Re: RTC DS1302 - PIC16F877A SPI MODE.

Postby dazz » Fri Oct 03, 2014 1:57 pm

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
These users thanked the author dazz for the post (total 2):
Benj (Mon Oct 06, 2014 4:51 pm) • medelec35 (Thu Oct 09, 2014 5:03 pm)
Rating: 10.53%
 
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php