Go Down

Topic: Read value of Timer0 on Due? (Read 769 times) previous topic - next topic

fantasygoat

I need to read the current value of Timer0 on a Due, but the TCNT0 variable doesn't seem to exist.

Where can I get the value of Timer0?

Palliser

Hello fantasygoat,

Here a good library/examples to start with.

ivanseidel/Due Timer library

Regards,

p

fantasygoat

I don't want to set my own interrupt.  I want to read the counter value of Timer0 which is supposed to be an 8-bit integer that counts from 0-255.

MarkT

No such thing on the Due, its a completely different architecture.  Look at the source
code for things like delay() and micros() in wiring.c
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]

Go Up