How can I read register values into flowcode

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
Desdewit
Posts: 130
Joined: Sat Feb 26, 2011 4:26 am
Location: South Africa
Has thanked: 25 times
Been thanked: 11 times
Contact:

How can I read register values into flowcode

Post by Desdewit »

Hi

How can I read the values of RTCVALL & RTCVALH into flowcode to send it via USBSerial?
I,m trying to setup the RTCC to display via USBSerial but don't know how to read the values from within flowcode. :cry:
Attachments
Breeze RTCC.fcf
(12 KiB) Downloaded 172 times

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

Re: How can I read register values into flowcode

Post by medelec35 »

Hi Desdewit,
I have mentioned how do read registers in this post:
http://www.matrixmultimedia.com/mmforum ... 49&#p30349

Hope it helps.

Martin
Martin

Desdewit
Posts: 130
Joined: Sat Feb 26, 2011 4:26 am
Location: South Africa
Has thanked: 25 times
Been thanked: 11 times
Contact:

Re: How can I read register values into flowcode

Post by Desdewit »

Hi Martin

Thanks for the reply.
Not sure what I'm doing wrong but I keep getting errors like below.
Breeze RTCC.c(735:26): error: error in built-in assembly
Breeze RTCC.c(737:2): error: error in built-in assembly

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

Re: How can I read register values into flowcode

Post by medelec35 »

Using a C code within assembly cauld cause that error.
Try attached file.
Attachments
Breeze RTCC V2.fcf
(12 KiB) Downloaded 203 times
Martin

Desdewit
Posts: 130
Joined: Sat Feb 26, 2011 4:26 am
Location: South Africa
Has thanked: 25 times
Been thanked: 11 times
Contact:

Re: How can I read register values into flowcode

Post by Desdewit »

Hi Martin

Thanks for pointing out my noob mistake, getting the clock to run is even more difficult than I thought it would be.
I tried to do most of the setup in asm but now I’m stuck getting the date and time data into flowcode
Do you know of anyone that managed to get the on chip RTCC running in flowcode. :(

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

Re: How can I read register values into flowcode

Post by medelec35 »

I have not tried an on chip RTCC before, but I have created a flowchart to read time and date from a dedicated RTCC the is built in to this:
http://www.matrixmultimedia.com/mmforum ... 83&#p40121
It uses I2C for communications.

Somehow I don't think its suitable for your needs?

If you want me to post it let me know, otherwise I'm sorry can help you with on chip version.
Martin

Post Reply