manupulation of high and low times
with an inability of dealing with the division in the ISR, I need to do the division each sample time.
Nic explained to me that I need to be careful to avoid having an interrupt change the high and low times while I am doing the division. That should be done with flags and a buffer that stores an alternate value of the high and low times.
As I cannot figure out how to do that in simulink, my first idea was to use a memory block. In that way the previous value of the high and low times would be stored,
THAT DID NOT WORK AND IT IS TIME TO GO HOME.
0 Comments:
Post a Comment
<< Home