aboutsummaryrefslogtreecommitdiff
path: root/src/peripherals/timer.spec.ts (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix(timer): Overflow interrupt fires twice #80Uri Shaked2020-12-261-6/+40
| | | | fix #80
* fix(timer): Output Compare sometimes misses Compare Match #79Uri Shaked2020-12-251-0/+31
| | | | fix #79
* fix(timer): Output Compare issue #74Uri Shaked2020-12-211-6/+23
| | | | | | output compare doesn't work when the OCR register (OCRnA/OCRnB) equals to 0 fix #74
* fix(timer): TOV flag does not update correctly #75Uri Shaked2020-12-201-3/+35
| | | | fix #75
* fix(timer): OCR values should be buffered #76Uri Shaked2020-12-201-5/+92
| | | | fix #76
* fix(timer): Incorrect count when stopping a timerUri Shaked2020-12-121-4/+20
| | | | fix #72
* perf!: centeral timekeepingUri Shaked2020-12-091-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.
* refactor: central interrupt handling #38Uri Shaked2020-12-091-0/+58
|
* feat: Support for simulating ATtinyx5 (e.g. ATtiny85) timers #64Uri Shaked2020-11-141-0/+27
| | | | close #64
* perf(timer): improve timer speedUri Shaked2020-09-021-9/+12
| | | | cache the value of the clock divider
* fix(timer): keeps counting even when stopped #41Uri Shaked2020-08-011-36/+49
|
* test(timer): use TestProgramRunnerUri Shaked2020-08-011-130/+123
|
* test(timer): remove stray console.logUri Shaked2020-07-161-1/+0
|
* test(timer): extract constantsUri Shaked2020-05-301-133/+185
| | | | This makes the test code easier to follow
* feat(timer): Compare Match Output (#45)Uri Shaked2020-05-251-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
* fix(timer): Reading TCNT in 2-cycle instructionsUri Shaked2020-04-291-4/+22
| | | | close #40
* fix(timer): incorrect high counter byte behaviorUri Shaked2020-04-281-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
* style: reformat code with prettier 2.xUri Shaked2020-04-271-1/+1
| | | | prettier rules have changed since we upgraded to 2.x
* fix(timer): Timer value should not increment on the same cycle as TCNTn writeUri Shaked2020-04-271-0/+40
| | | | close #36
* test(timer): add more 16-bit timer testsUri Shaked2020-04-121-3/+46
| | | | also fix some issues found by @gfeun and the tests
* feat(timer): implement 16-bit timersUri Shaked2020-04-121-1/+18
| | | | e.g. Timer/Counter1 on ATmega328
* refactor: added peripherals and cpu feature folderslironh2020-03-221-0/+204