TMS320C3x User’s Guide
Literature Number:SPRU031F
2558539-9761 revision L
March 2004一书390页开头说
Timer0 global control 寄存器在808020h
Timer0 counter 寄存器在808024h
Timer0 period 寄存器在808028h
TMS320C3x Peripheral Control Library Users Guide一书38页这样定义定时器寄存器结构体
typedef struct
{
unsigned int Control; /* Timer global control */
unsigned int reserved1[3]; /* reserved */
unsigned int counter; /* Timer counter */
unsigned int reserved2[3]; /* reserved */
unsigned int period; /* Timer period */
} TIMER_REG;
现在
struct TIMER_REG *Timer0 = (struct TIMER_REG *)0x808020;//Timer 0 Global Control
struct TIMER_REG *Timer1 = (struct TIMER_REG *)0x808030;//Timer 1 Global Control
如果赋值Timer0->Period = 0x1d4c0;//120000
Timer0->Counter = 0x1d4c0;
Timer0->Control = 0x3f2;
请问现在Timer0->Counter = 0x1d4c0中的0x1d4c0被存在了哪个或者哪几个地址中?
808024h到808027h还是808030h到808033h?
程序中的处理怎么和
TMS320C3x User’s Guide
Literature Number:SPRU031F
2558539-9761 revision L
March 2004一书390页开头说
Timer0 global control 寄存器在808020h
Timer0 counter 寄存器在808024h
Timer0 period 寄存器在808028h
有矛盾????????难道这一个地址中放进了32位的数据 0x1d4c0就只在808024h中?
另外数据手册中怎么没提到公式f(clock mode) = f(timer clock) / (2 x period register)中f(timer clock)从哪来的?是主频还是经过哪分频来的?