neddie
Full Member level 5

- Joined
- Feb 23, 2010
- Messages
- 251
- Helped
- 41
- Reputation
- 82
- Reaction score
- 35
- Trophy points
- 1,308
- Location
- South Africa
- Activity points
- 3,026
Hi all.
I have a simple problem , that I don't seem to be able to get right.
I have an LMT01 temperature sensor that provides a pulse train that is proportional to
temperature. It's an analog pulse train that has to be processed before it can be counted.
I thought I'd use the comparator in the pic to square it up and then pass on the comparator output to timer1
to count.
I cant seem to get this figured out though.
From the datasheet as I understand it , the comparator (comparator 2 in this case) can be used to GATE timer1.
I want to use it to increment timer1's count directly. How do you achieve this. I'm sure it can be done , i'm just missing something here.
I could always use the comparator interrupt to do the counting ,but the timer option just seems more elegant.
cheers
Neddie
I have a simple problem , that I don't seem to be able to get right.
I have an LMT01 temperature sensor that provides a pulse train that is proportional to
temperature. It's an analog pulse train that has to be processed before it can be counted.
I thought I'd use the comparator in the pic to square it up and then pass on the comparator output to timer1
to count.
I cant seem to get this figured out though.
From the datasheet as I understand it , the comparator (comparator 2 in this case) can be used to GATE timer1.
I want to use it to increment timer1's count directly. How do you achieve this. I'm sure it can be done , i'm just missing something here.
I could always use the comparator interrupt to do the counting ,but the timer option just seems more elegant.
cheers
Neddie