Part Number: TMS320C5505
Dear,
i want to generate exact 10ms of delay..i am following ur csl example codes.i ma setting frequency as 100MHz through .gel file.
in example code they r calculating system clock to calculate the timer count but by this i dont get the exact delay..
i am manually setting it like following method
for e.g
// timer interval 10msec
// prescale = 0 (devide by 2)
// 100/2 = 50MHz ==> 20 nsec
// 10msec/20nsec = 500000 (0x7A120)
the loading into
hwConfig.autoLoad = GPT_AUTO_ENABLE;//GPT_AUTO_DISABLE
hwConfig.ctrlTim = GPT_TIMER_ENABLE;
hwConfig.preScaleDiv = GPT_PRE_SC_DIV_1;
//for 10ms
hwConfig.prdLow = 0xA120;
hwConfig.prdHigh = 0x0007;
is this a correct method..plz suggest me..i stuck to this problem since a week.
please solve this