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.
How can I read register values into flowcode
Moderator: Benj
-
- 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
- Attachments
-
- Breeze RTCC.fcf
- (12 KiB) Downloaded 172 times
-
- 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
Hi Desdewit,
I have mentioned how do read registers in this post:
http://www.matrixmultimedia.com/mmforum ... 49&#p30349
Hope it helps.
Martin
I have mentioned how do read registers in this post:
http://www.matrixmultimedia.com/mmforum ... 49&#p30349
Hope it helps.
Martin
Martin
-
- 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
Hi Martin
Thanks for the reply.
Not sure what I'm doing wrong but I keep getting errors like below.
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
-
- 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
Using a C code within assembly cauld cause that error.
Try attached file.
Try attached file.
- Attachments
-
- Breeze RTCC V2.fcf
- (12 KiB) Downloaded 203 times
Martin
-
- 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
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.
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.
-
- 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
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.
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