Guess I was a little unclear.
1) The fact that nothing else can happen during the excution of the 'pulseout' command is what I was afraid of.
2) Without saying so I was already thinking of different stategies, such as counting program steps and thereby 'squeezing' them into two commands i.e. pin high, number of program steps, then pin low.
To answer the question of the times in volved. The complete 'cycle' of the program will be 480ms to 20ms in length. During this time 8 ADC conversions have to happen, 4 values need to be looked up in various tables, 6 values need to be calculated from these lookup values, and 6 pins need to be driven high and low. Of which three pins need to be high for 2.1ms and the other three pins anywhere from 2ms to 15.5ms. Oh and the rising edge of one pin will need to be read, the period of which will vary between 160ms and 7ms.
Melanie thank you for your suggestion. I will go and review the HPWM command.
Cheers




Bookmarks