My two Logomatic boards arrived recently and easily integrated it with a Atmel 89C4051 which logs the serial data to the mini SD card. Setting everything up was relatively easy apart from having to figure out that the 256Mb miniSD card would only work if I formated it using my Cannon S2 Camera.
My problem is that the Logomatic comes with a RTC built in clock which I need to date stamp each line that is received from the 89C5051. I am unfortunately not familiar with ARM and its compiling etc. and time is against me. Has anyone managed to get it to work?
Your comments and help are much appreciated.
Hi Russell,
Did you have any success in capturing the RTC? I am also interested in how to do this (and I’m holding off my purchase of the Logomatic until I see evidence that it works). I can’t see why this option wasn’t included in the original firmware.
Thanks,
Josh.
To get the RTC ticking I used the following code:
PCONP |= (1<<9); //make sure RTC is powered, just to be sure
CCR = 0x12; //disable RTC, set xtal flag true
//update time registers
YEAR = 2009;
MONTH = 2;
//etc
CCR = 1x11; //enable RTC, keep xtal flag true
This code is from memory (I don’t have my main.c available right now), so definitely double check the above code with the LPC2148 manual. Be aware that this code uses the onboard external oscillator as the timekeeping device, not a divided down system clock.
Hope this helps!
What compiler did you use? I’m getting lots of problems with CrossWorks.
[Edit] It builds OK with WinARM, so I might as well use that.
Leon
I use WinARM for the Logomatic. Glad to hear it worked out.
and would’t I have to add something into here that it would print the time as well?
so my file lokks sort of
00:23.12 56 60 71
00:24.12 57 63 69 … ?
while((IOPIN0 & 0x00000008) == 0x00000008)
{
// Get AD1.3
AD1CR = 0x0020FF08;
AD_conversion(1);
// Get AD0.3
AD0CR = 0x0020FF08;
AD_conversion(0);
// Get AD0.2
AD0CR = 0x0020FF04;
AD_conversion(0);
// Get AD0.1
AD0CR = 0x0020FF02;
AD_conversion(0);
// Get AD1.2
AD1CR = 0x0020FF04;
AD_conversion(1);
// Get AD0.4
AD0CR = 0x0020FF10;
AD_conversion(0);
// Get AD1.7
AD1CR = 0x0020FF80;
AD_conversion(1);
// Get AD1.6
AD1CR = 0x0020FF40;
AD_conversion(1);
delay_ms(1000);
rprintf(“\n\r”);
}
Hello, recently I acquired the logomatic v2 and it wanted to know if it is necessary slightly more to be able to modify the firmware, I read in some forum that apart from the logomatic was necessary to acquire also another device, it is certain this?, from already thank you very much
Can someone post the full code to put a time stamp on each measurement please!? I’ve been searching these forums and I cannot understand what most people are saying. This would be much appreciated