On Wednesday 24 February 2010 01:06:05 Kirk Wallace wrote: > Would anyone have code for an Attiny2313 that can check for an EMC2 > watchdog? Or thoughts on what a program might look like? Maybe run a > pair of counters that trigger on the up and down edge of the watchdog, > count an internal clock source, then compare to high and low count > limits?
I use a very simple program on an atmega8 that checks the charge pump signal. http://bu3sch.de/gitweb?p=cnc.git;a=blob;f=odin_extensions/estop/firmware/estop.S;h=f116d5fe76d5b1dedc653db9aeb7faabc89ace83;hb=HEAD#l83 The charge pump is connected to INT1 and it will reset timer1 to zero on trigger. In a loop I frequently check the timer (check_charge_pump_timeout) for overflow or bigger-than-threshold conditions. In case that happens, estop is triggered. PS: No, I don't want to have education about why not to do estop in software. I know what I'm doing here and it is sufficient for my type of machine. -- Greetings, Michael. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users