go_away

Author Topic: What is this kind of programming called?  (Read 1295 times)

0 Members and 1 Guest are viewing this topic.

Offline Razor ConceptsTopic starter

  • Supreme Robot
  • *****
  • Posts: 1,856
  • Helpful? 53
What is this kind of programming called?
« on: December 29, 2008, 11:35:06 PM »
Say you have a MCU that blinks a light. You press a button 7 times, the MCU stores "7" and blinks 7 times. This is a sort of programming, but what is it called? I'm pretty sure there is a name to it but I can't get it out of my head. External programming?

Offline pomprocker

  • Supreme Robot
  • *****
  • Posts: 1,430
  • Helpful? 16
  • Sorry miss, I was giving myself an oil-job.
Re: What is this kind of programming called?
« Reply #1 on: December 30, 2008, 02:36:02 PM »
that sounds like a recursive function?

Offline izua

  • Supreme Robot
  • *****
  • Posts: 682
  • Helpful? 0
Re: What is this kind of programming called?
« Reply #2 on: December 30, 2008, 10:33:18 PM »
I'd call it user unfriendly :D
Check out my homepage for in depth tutorials on microcontrollers and electronics.

Offline cosminprund

  • Robot Overlord
  • ****
  • Posts: 284
  • Helpful? 8
Re: What is this kind of programming called?
« Reply #3 on: December 31, 2008, 04:25:02 AM »
@pomprocker
Quote
that sounds like a recursive function?

That's not a recursive function, unless you work real hard to ignore the obvious implementation (simple loop) and go with an implementation that's likely limited by the MCU stack.

@izua
Quote
I'd call it user unfriendly

Agree!

@Razor Concepts
Why do you think it needs to have a name? If it matters my car alarm system supports a similar way of programming it. They call it "Valet Button Programming". I assume you're thinking of a name from the end-users perspective, not the name for the programming technique used to implement the behaviour.

Offline cosminprund

  • Robot Overlord
  • ****
  • Posts: 284
  • Helpful? 8
Re: What is this kind of programming called?
« Reply #4 on: December 31, 2008, 04:56:22 AM »
@Razor Concepts
If the 7 click - 7 blinks was just an example, you're probably looking for "finite state machine".

 

Related Topics

  Subject / Started by Replies Last post
10 Replies
2948 Views
Last post February 10, 2009, 10:02:27 PM
by izaktj
5 Replies
1389 Views
Last post April 08, 2009, 12:37:10 AM
by SmAsH
2 Replies
916 Views
Last post December 15, 2009, 04:07:03 PM
by andreiipascalin
4 Replies
683 Views
Last post March 11, 2012, 08:30:07 PM
by davidhere40


Get Your Ad Here