aboutsummaryrefslogtreecommitdiff
path: root/src/peripherals/timer.spec.ts (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-10-29fix(timer): setting TCNT doesn't update OCRA #111Uri Shaked1-0/+36
2021-10-07feat(timer): Force Output Compare (FOC) bitsUri Shaked1-5/+64
2021-09-14feat(timer): 3rd output compare (OCRnC) #96Uri Shaked1-0/+74
2021-08-15feat(timer): external timer support #97Uri Shaked1-45/+76
also refactor timer/GPIO interaction to be more generic. close #97
2021-06-19fix(timer): Timer1 PWM issues #94Uri Shaked1-0/+22
close #94
2020-12-29fix(timer): delay() is inaccurate #81Uri Shaked1-13/+25
fix #81
2020-12-27fix(timer): Output Compare in PWM modes #78Uri Shaked1-2/+214
close #78
2020-12-26fix(timer): Overflow interrupt fires twice #80Uri Shaked1-6/+40
fix #80
2020-12-25fix(timer): Output Compare sometimes misses Compare Match #79Uri Shaked1-0/+31
fix #79
2020-12-21fix(timer): Output Compare issue #74Uri Shaked1-6/+23
output compare doesn't work when the OCR register (OCRnA/OCRnB) equals to 0 fix #74
2020-12-20fix(timer): TOV flag does not update correctly #75Uri Shaked1-3/+35
fix #75
2020-12-20fix(timer): OCR values should be buffered #76Uri Shaked1-5/+92
fix #76
2020-12-12fix(timer): Incorrect count when stopping a timerUri Shaked1-4/+20
fix #72
2020-12-09perf!: centeral timekeepingUri Shaked1-115/+97
This should improve performance, especially when running simulations with multiple peripherals. For instance, the demo project now runs at ~322%, up from ~185% in AVR8js 0.13.1. BREAKING CHANGE: `tick()` methods were removed from individual peripherals. You now need to call `cpu.tick()` instead.
2020-12-09refactor: central interrupt handling #38Uri Shaked1-0/+58
2020-11-14feat: Support for simulating ATtinyx5 (e.g. ATtiny85) timers #64Uri Shaked1-0/+27
close #64
2020-09-02perf(timer): improve timer speedUri Shaked1-9/+12
cache the value of the clock divider
2020-08-01fix(timer): keeps counting even when stopped #41Uri Shaked1-36/+49
2020-08-01test(timer): use TestProgramRunnerUri Shaked1-130/+123
2020-07-16test(timer): remove stray console.logUri Shaked1-1/+0
2020-05-30test(timer): extract constantsUri Shaked1-133/+185
This makes the test code easier to follow
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