Re: microcontroller programming -- how to begin



On Thu, 25 May 2006 13:35:06 -0700, xray <notreally@xxxxxxxxxxxxxxx> wrote:
On Thu, 25 May 2006 18:38:53 GMT, Ignoramus5457
<ignoramus5457@xxxxxxxxxxxxxxxxxxx> wrote:

I am not too worried that I have to use BASIC. How do people write
these things in general? Do they have a main loop and a state machine?

What about timings, looks like this C280 does not have a built in
timer. And yet sometimes I need to do things for a certain time (such
as open gas valve before starting TIG welding), but they can be
interrupted, by, say, releasing foot pedal.

Am I stuck with having to use a counter sensor and external
oscillator?


Have you looked at the manual?

Yes, I am reading it.

It's an odd beastie. I never heard of ladder logic before, but seems to
be a combinational logic on inputs that happens in realtime. Equivalent
to stringing a bunch of switches in series/parallel strings.

Yes, seems to be similar to putting together a bunch of relays.

On its basic-language side it has OnTimer() which lets you set an
interrupt period down to 20 mS. I would think this should be enough for
your interval issues.

I think that you are right.

I would write a big event loop and make a case statement based on my
state (an enumeration).

You need to download their development environment to program the thing.

Did that already.

Doesn't seem like it has much memory, but hopefully enough for your
welder needs. Has built-in AD and DA and PWM so that's helpful.

Yes, I think that it is suitable for me.

i

.



Relevant Pages

  • RE: Speed up VBA - using class objects
    ... in a loop that is called thousands of times it starts to add up. ... There are a bunch of very marginal gains to be had by doing things like ... Finally you can convert your code to a VB6 bas module if you have a copy ... equivalent VBA code. ...
    (microsoft.public.excel.programming)
  • Re: microcontroller programming -- how to begin
    ... Do they have a main loop and a state machine? ... What about timings, looks like this C280 does not have a built in ... to stringing a bunch of switches in series/parallel strings. ... interrupt period down to 20 mS. ...
    (sci.electronics.design)
  • Re: Independently controlling four random AI-triggered output
    ... Ron, ... state machine architecture.  A state machine uses a while loop on ... need to constantly start and stop and recreate tasks.  ... You'll notice in this example that there is a while loop that simply ...
    (comp.lang.labview)
  • Re: finite state machine
    ... state machine to code that no longer looks like a finite state machine ... The switch statement will switch on the state and ... Then you have loop just like in the first ... function pointers, and you call the function you get out of the table. ...
    (comp.programming)
  • Re: Finding the execution time
    ... for k in 0 to loop ... Make yourself familiar with the concept of a state machine - especially a synthesizable state machine in VHDL. ... If you want to model real hardware you have to think hardware. ...
    (comp.lang.vhdl)