Page 1 of 1

How can I read register values into flowcode

Posted: Sat Mar 30, 2013 1:31 pm
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:

Re: How can I read register values into flowcode

Posted: Sat Mar 30, 2013 2:48 pm
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

Re: How can I read register values into flowcode

Posted: Sat Mar 30, 2013 3:32 pm
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

Re: How can I read register values into flowcode

Posted: Sat Mar 30, 2013 3:52 pm
by medelec35
Using a C code within assembly cauld cause that error.
Try attached file.

Re: How can I read register values into flowcode

Posted: Sun Mar 31, 2013 5:26 pm
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. :(

Re: How can I read register values into flowcode

Posted: Sun Mar 31, 2013 6:28 pm
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.