DSPRelated.com
Forums

in the ADSP TS101, what does CCNT0 register do? and what flag do i use to enable audio interface

Started by hout...@hotmail.com April 20, 2006
Hi guys,
I'm taking over a project done by a previous team, and there are still a few bits im having trouble with. Firstly, what does this statement do:

__builtin_sysreg_read(__CCNT0);

Does anyone know what the CCNT0 register does and how i can use this register. The data sheets don't really help. Is it used as some type of cycle counter?

Second question:

The code im looking at enables flag 3 in the SQCTL register to enable the audio interface. Now my question is, why flag 3? can we use any flag or is this flag special for the audio interface?

temp = temp | SQCTL_FLAG3_EN; // Enable output