This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

XE167 problem

I trying to get familiar with the new XE167, I buing EASY KIT XE166.
I use keil uVision3 v3.60 and DAvE2.1 r22.
I generate simple project
-> Timer T2 changed in interrupt pin P10_0 period 2ms
_____--------

1ms 1ms

void GPT1_viTmr2(void) interrupt T2INT
{ P10_OMRL = 0x0101;
}

DAvE make in file GPT1_vInit(void)

GPT12E_KSCCFG = 0x0003; // Module Enable GPT12E_T2CON = 0x0000; // load timer 2 GPT12E_T2 = 0xBF8C; // load timer 2 GPT12E_T2CON_T2R = 1; // set timer 2

It is OK but
When I make and load this program connect pin P10_0 to oscilloscope
I surprice!!! Period was 8 ms.
I change value GPT12E_T2 but I get same period.
When I change prescaler T2I Fdp/4 to Fdp/8, I get period 16 ms.

Please help!