2 seconds delay.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

2 seconds delay.

1,306 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lab1 on Thu Mar 06 05:21:27 MST 2014
I suspect that this is described in the forum, but I want to know how to make a 2 second delay.
Is there anyone who can help me with this?
0 Kudos
Reply
7 Replies

1,295 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Fri Mar 07 05:12:23 MST 2014
Did you try to understand / change this sample?
0 Kudos
Reply

1,295 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lab1 on Fri Mar 07 05:02:55 MST 2014

Quote: LabRat

Quote: lab1
I've tried this example...



And it is RO (= Read Only)  :quest:




What do you mean RO?
0 Kudos
Reply

1,295 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Fri Mar 07 04:46:50 MST 2014

Quote: lab1
I've tried this example...



And it is RO (= Read Only)  :quest:
0 Kudos
Reply

1,295 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lab1 on Fri Mar 07 00:23:00 MST 2014
I've tried this example, but the diode looks more like a disco light than something that has a repetitive flashes.
0 Kudos
Reply

1,295 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Fri Mar 07 00:08:26 MST 2014

Quote: lab1
...code example?



nxp_lpcxpresso_11c24_periph_blinky

of

http://www.lpcware.com/content/nxpfile/lpcopen-software-development-platform-lpc11xx-packages-0
0 Kudos
Reply

1,295 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lab1 on Thu Mar 06 23:39:25 MST 2014
thanks I'll see if I can use this.
I use a 11c24 development board. Is there any way that you can give me an code example?
0 Kudos
Reply

1,295 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Thu Mar 06 07:19:05 MST 2014
In many of the examples, you will find a function called "systick_delay". As you haven't told us what MCU you are using, I can't point you at a specific example, but I think this function exists for every family.

It uses the systick timer to measure the time - using a timer is the only way you can get an accurate delay - it is not possible with delay loops.
0 Kudos
Reply