There's a bug in 8051's timer that keep it from working with external clock.
This patch tries to fix it.
BTW: 8051's gate control for timer/counter is not implemented yet.
I add a warning message to inform users about that.
When gate control is on, pin INT0/1 is used to control on/off of the counter together with flag TR0/TR1. So extra object and config props might be needed. I'm not sure if it should be implemented in i51timer, or in the mcutimer?
This patch tries to fix it.
BTW: 8051's gate control for timer/counter is not implemented yet.
I add a warning message to inform users about that.
When gate control is on, pin INT0/1 is used to control on/off of the counter together with flag TR0/TR1. So extra object and config props might be needed. I'm not sure if it should be implemented in i51timer, or in the mcutimer?
- Attachments
- clock.zip
- patch
- You don't have permission to download attachments.
- (1 Kb) Downloaded 1 times
- 04-external-counter.zip
- test circuit
- You don't have permission to download attachments.
- (28 Kb) Downloaded 1 times