Tool/software: TI C/C++ Compiler
Good Day,
I need to configure P0_7 of CC2541 as input capture mode of Timer1. Need to read the period and duty cycle produced by an external PWM. This is the first time i will try this with simpleBLEpheriperal as base project, i need some confirmations.
Since i will use P0_7 as input capture pin...
- P0SEL = 0x80;//set to peripheral.
then, base on pin mapping of I/O, P0_7 is at "ALT 2", How to set PERCFG.T1CFG to "ALT 2"? "0" or "1"?
I'm planning to read the period and duty cycle produced by the external PWM at my periodic event. is this at T1CNTH and T1CNTL?
What are the things i missed here?
I know this is like asking for a sample code, but right now i am at a lost..
Thanks.