Oh .. I didn't notice this comment when did it show up? thanks Henrick
but still the only left problem is the delay thing which is leading to a lower output frequency.
Also I made an array to lookup up entries and I'm not sure i I'm doing it the right way..
I had to declare each entry in the array one by one .. also compiler refuse using .Lowbyte and .Highbyte (ex : pdc0l=duty[i].lowbyte) with arrays so I made two arrays one for pdcxL and another for pdcxH
is there any other way to declare an array ? or other other function for this case ?
Bookmarks