- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi everybody, i'm a newbie.
I'm trying to design a simple blinking leds pattern by using the red leds array on the DE2 kit using CycloneII ,say the leds array begin to blink from the left to the right. I've known already about NiosII soft processor and the SOPC buider, but I got stuck in writing code in C. I don't know how to create a time delay in my code :confused: , I wonder if I can use the CLOCK_50 ? and what is the best way to do this ? please help! thanks.Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
may be this code can help you.
int delay; while(1) { delay = 0; while(delay < 2000000) { delay++; }
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page