MSP430F5438 Timer B Compare/ Capture Problem

Status
Not open for further replies.

sunil880089

Full Member level 2
Joined
Aug 24, 2011
Messages
125
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Activity points
2,031
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
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…