# ARMwizard, freeware app to setup LPC2xxx,17xx,13xx,11xx reg

**URL:** <https://community.sparkfun.com/t/armwizard-freeware-app-to-setup-lpc2xxx-17xx-13xx-11xx-reg/20097>\
**Category:** MicroMod\
**Tags:** arm-lpc\
**Created:** [March 28, 2011, 1:08pm UTC](https://community.sparkfun.com/t/armwizard-freeware-app-to-setup-lpc2xxx-17xx-13xx-11xx-reg/20097 "2011-03-28T13:08:27Z")\
**Posts on this page:** 4\
**Page:** 3

<div class="post-metadata">

**Author:** ![alexan\_e](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@alexan\_e](https://community.sparkfun.com/u/alexan_e)\
**Post date:** [July 29, 2012, 11:32pm UTC](https://community.sparkfun.com/t/armwizard-freeware-app-to-setup-lpc2xxx-17xx-13xx-11xx-reg/20097/41 "2012-07-29T23:32:27Z")

</div>

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](http://alexan.edaboard.eu)

Alex

---

<div class="post-metadata">

**Author:** ![Dejan\_tf](https://avatars.discourse-cdn.com/v4/letter/d/b77776/32.png) [@Dejan\_tf](https://community.sparkfun.com/u/Dejan_tf)\
**Post date:** [October 12, 2012, 9:02pm UTC](https://community.sparkfun.com/t/armwizard-freeware-app-to-setup-lpc2xxx-17xx-13xx-11xx-reg/20097/42 "2012-10-12T21:02:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![stevech](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@stevech](https://community.sparkfun.com/u/stevech)\
**Post date:** [October 27, 2012, 4:47am UTC](https://community.sparkfun.com/t/armwizard-freeware-app-to-setup-lpc2xxx-17xx-13xx-11xx-reg/20097/43 "2012-10-27T04:47:55Z")

</div>

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](http://store.arduino.cc/ww/index.php?main_page=product_info&cPath=11_12&products_id=243))

There might be a goodly amount of user interest.

---

<div class="post-metadata">

**Author:** ![leon\_heller](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/leon_heller/32/7602_2.png) [@leon\_heller](https://community.sparkfun.com/u/leon_heller)\
**Post date:** [October 28, 2012, 11:02am UTC](https://community.sparkfun.com/t/armwizard-freeware-app-to-setup-lpc2xxx-17xx-13xx-11xx-reg/20097/44 "2012-10-28T11:02:37Z")

</div>

It would be nice if it included the DIP28 LPC1114.

[Previous page](https://community.sparkfun.com/t/armwizard-freeware-app-to-setup-lpc2xxx-17xx-13xx-11xx-reg/20097.md?page=2)
