aboutsummaryrefslogtreecommitdiff
path: root/src/peripherals/timer.spec.ts (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-05-25feat(timer): Compare Match Output (#45)Uri Shaked1-14/+144
The Compare Match Output bits are used to generate hardware PWM signals on selected MCU pins. This is also the mechanism used by Arduino's analogWrite() method. See #32 for more details
2020-04-29fix(timer): Reading TCNT in 2-cycle instructionsUri Shaked1-4/+22
close #40
2020-04-28fix(timer): incorrect high counter byte behaviorUri Shaked1-23/+70
According to the datasheet, the value of the high byte of the counter for 16-bit timers (such as timer 1) is only updated when the low byte is being read/written. close #37
2020-04-27style: reformat code with prettier 2.xUri Shaked1-1/+1
prettier rules have changed since we upgraded to 2.x
2020-04-27fix(timer): Timer value should not increment on the same cycle as TCNTn writeUri Shaked1-0/+40
close #36
2020-04-12test(timer): add more 16-bit timer testsUri Shaked1-3/+46
also fix some issues found by @gfeun and the tests
2020-04-12feat(timer): implement 16-bit timersUri Shaked1-1/+18
e.g. Timer/Counter1 on ATmega328
2020-03-22refactor: added peripherals and cpu feature folderslironh1-1/+1
2019-11-30fix: Wrong prescaler for Timer2Uri Shaked1-1/+14
fix #5
2019-11-30feat: Output Compare for TimersUri Shaked1-0/+107
close #4
2019-11-21feat: initial timer implementationUri Shaked1-0/+84
8-bit timers basic functionality + tests: 1. basic counting + prescaler 2. timer overflow 3. timer overflow interrupt