sunil880089
Full Member level 2
Hi Everyone,
i am facing problem in MSP430F5438 Timer B Compare/ Capture operation.
Please help me how to initialize Timer B for Compare/ Capture operation.
Please ...
Thank You...
---------- Post added at 11:31 ---------- Previous post was at 10:32 ----------
Hi,
The following code i written for MC9S12XDP Microcontroller for Timer Application ..
I need Code for MSP430F5438 Timer B for same operation please help me.....
//................................... This one is For MC9S12XDP............................................................//
TIOS = 0xF8; //Channel 0,1,2 as input capture and rest as output compare
TSCR1 = 0x80; // Enable main timer
TCTL4 = 0x2A; // Channel 0,1,2 are all selected for falling edges
TIE = 0x07; //interrupt enabled for channel for 0,1,2
TSCR2 = 0x86; //main timer interrupt overflow enable,prescaler set to divide by 64
ICOVW = 0x00; //overwrite enabled
//...........................................................................................................................................//
Thank You
i am facing problem in MSP430F5438 Timer B Compare/ Capture operation.
Please help me how to initialize Timer B for Compare/ Capture operation.
Please ...
Thank You...
---------- Post added at 11:31 ---------- Previous post was at 10:32 ----------
Hi,
The following code i written for MC9S12XDP Microcontroller for Timer Application ..
I need Code for MSP430F5438 Timer B for same operation please help me.....
//................................... This one is For MC9S12XDP............................................................//
TIOS = 0xF8; //Channel 0,1,2 as input capture and rest as output compare
TSCR1 = 0x80; // Enable main timer
TCTL4 = 0x2A; // Channel 0,1,2 are all selected for falling edges
TIE = 0x07; //interrupt enabled for channel for 0,1,2
TSCR2 = 0x86; //main timer interrupt overflow enable,prescaler set to divide by 64
ICOVW = 0x00; //overwrite enabled
//...........................................................................................................................................//
Thank You