Hi
Has anyone used the RTC function on the MIAC advanced expansion module? As far as I can make out from the help files you have to first initialise the module then update the local time variables from the RTC registers. Each variable (Hr/Min/S) can the be read into separate variables. I'm then trying to dispaly the variables on the MIAC's display.
Currenty the program downloads, usually just displays 0:0:0 (somtimes 0:0:4).
Any ideas?
Dave
MIAC Real Time Clock using the Advanced Expansion Module
-
- Posts: 33
- Joined: Tue May 21, 2013 4:21 pm
- Been thanked: 1 time
- Contact:
MIAC Real Time Clock using the Advanced Expansion Module
- Attachments
-
- Simple RTC.fcf
- Simple real time clock
- (9.5 KiB) Downloaded 334 times
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: MIAC Real Time Clock using the Advanced Expansion Module
Hi Dave,
Attached is Flowchart that should display time and date just fine.
I believe that attached flowchart was also placed within MIAC System Flowcode Examples
found here:
http://www.matrixmultimedia.com/miac.php
There is a small bug within Flowcode that may require you to select Miac Advance Initialize again before able to run or compile.
after saving should be ok to run.
Martin
Attached is Flowchart that should display time and date just fine.
I believe that attached flowchart was also placed within MIAC System Flowcode Examples
found here:
http://www.matrixmultimedia.com/miac.php
There is a small bug within Flowcode that may require you to select Miac Advance Initialize again before able to run or compile.
after saving should be ok to run.
Martin
- Attachments
-
- Miac Advance expansion RTC Demo .fcf
- (49.97 KiB) Downloaded 326 times
Martin
-
- Posts: 33
- Joined: Tue May 21, 2013 4:21 pm
- Been thanked: 1 time
- Contact:
-
- Posts: 33
- Joined: Tue May 21, 2013 4:21 pm
- Been thanked: 1 time
- Contact:
Re: MIAC Real Time Clock using the Advanced Expansion Module
Hi Martin
I tried the file you suggested but it didnt work.
The MIAC appeared to be senting info to the advanced module (as it was putting the LED on), but not receiving the RTC data back.
I connected a CAN analyser to the CANbus and some messages were being sent but others were not.
I then checked what level of sofware I had and there was a leter version. Uploaded the latest V5 version and the program worked (after re-adding the module initialization).
Then tried my original program (after re-adding teh module initialization) and that works too.
With hindsight I should have checked the level of software. But I have learnt a bit about the structure of the CAN massages and that there are several other good examples on the web which will be useful for the next part of the project.
Thanks Dave
I tried the file you suggested but it didnt work.
The MIAC appeared to be senting info to the advanced module (as it was putting the LED on), but not receiving the RTC data back.
I connected a CAN analyser to the CANbus and some messages were being sent but others were not.
I then checked what level of sofware I had and there was a leter version. Uploaded the latest V5 version and the program worked (after re-adding the module initialization).
Then tried my original program (after re-adding teh module initialization) and that works too.
With hindsight I should have checked the level of software. But I have learnt a bit about the structure of the CAN massages and that there are several other good examples on the web which will be useful for the next part of the project.
Thanks Dave
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: MIAC Real Time Clock using the Advanced Expansion Module
Long as you're up and running now, thats the main thing.
Thanks for updating us.
martin
Thanks for updating us.
martin
Martin