Write micro code in byte craft compiler then it generares .h file, include the same in the main project.
Initialisation for the channels and channel paramater base address everything is given in that example..follow the same.
if
{
}
else if
{
}
else
{
}
these are entry point....
if
{
contains chnnel and function initilisation..like either i/p or o/p,which tcr to be used etc..
}
else if
{
contians incrementing period value foe the next match
}
else
{this is also as same as above..
}
so better to understand example given..
regards,
venki