ARMwizard has been updated to version 3.3.0
• Added profile for LPC12xx
• bug fixes
To download or read the list of changes visit http://alexan.edaboard.eu
Alex
ARMwizard has been updated to version 3.3.0
• Added profile for LPC12xx
• bug fixes
To download or read the list of changes visit http://alexan.edaboard.eu
Alex
I need help with clarifying the code and should be on display to program the clock to show the time and all of this is done in IAR WORKBANCHU, the code is the following:
#include <nxp/iolpc1768.h>
#include “type.h”
#include “irq.h”
#include “target.h”
#include “rtc.h”
extern volatile DWORD alarm_on;
RTCTime local_time, alarm_time, current_time;
Main Function main()
int main (void)
{
TargetResetInit();
/* Initialize RTC module */
RTCInit();
local_time.RTC_Sec = 0;
local_time.RTC_Min = 0;
local_time.RTC_Hour = 0;
local_time.RTC_Mday = 8;
local_time.RTC_Wday = 3;
local_time.RTC_Yday = 12; /* current date 07/12/2006 */
local_time.RTC_Mon = 07;
local_time.RTC_Year = 2006;
RTCSetTime( local_time ); /* Set local time */
alarm_time.RTC_Sec = 0;
alarm_time.RTC_Min = 0;
alarm_time.RTC_Hour = 0;
alarm_time.RTC_Mday = 1;
alarm_time.RTC_Wday = 0;
alarm_time.RTC_Yday = 1; /* alarm date 01/01/2007 */
alarm_time.RTC_Mon = 1;
alarm_time.RTC_Year = 2007;
RTCSetAlarm( alarm_time ); /* set alarm time */
/* install RTC timer handler mainly for alarm control */
NVIC_IntEnable(NVIC_RTC);
NVIC_IntPri(NVIC_RTC,HIGHEST_PRIORITY);
/* mask off alarm mask, turn on IMYEAR in the counter increment interrupt
register */
RTCSetAlarmMask(AMRSEC|AMRMIN|AMRHOUR|AMRDOM|AMRDOW|AMRDOY|AMRMON|AMRYEAR);
RTCCIIR = IMMIN | IMYEAR;
/* 2007/01/01/00:00:00 is the alarm on */
RTCStart();
while (1)
{ /* Loop forever */
current_time = RTCGetTime();
if ( alarm_on != 0 )
{
alarm_on = 0;
/* Get current time when alarm is on */
current_time = RTCGetTime();
}
}
return 0;
}
We need to make sure that the function is to be printed on time displey Can someone help me, it’s urgent. Great Dejan pozz
If there were a version of this tool specific to the Atmel SAM - given the recent availability of the Arduino Due
(see http://store.arduino.cc/ww/index.php?ma … cts_id=243)
There might be a goodly amount of user interest.
It would be nice if it included the DIP28 LPC1114.