aboutsummaryrefslogtreecommitdiff
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-07-16feat(eeprom): implement EEPROM peripheralUri Shaked6-42/+408
close #15
2020-07-16test(timer): remove stray console.logUri Shaked1-1/+0
2020-07-16test(twi): extract constantsUri Shaked1-31/+46
This makes the test code more readable
2020-07-09fix(usart): bitsPerChar looking at the wrong registerUri Shaked2-7/+10
close #52
2020-07-09fix(usart): TXC interrupt triggered incorrectlyUri Shaked2-4/+18
close #51
2020-07-09test(usart): extract constantsUri Shaked1-49/+68
This makes the test code easier to read
2020-06-04test(instruction): extract constantsUri Shaked1-238/+274
This makes the test code easier to follow
2020-05-30test(timer): extract constantsUri Shaked1-133/+185
This makes the test code easier to follow
2020-05-29fix(gpio): port state not updated on DDR writeUri Shaked2-0/+15
Calling `pinState()` inside a GPIO port listener returns incorrect values after changing DDR close #47
2020-05-25perf(timer): improve tick() performanceUri Shaked1-3/+4
reduce the number of calls to TIFR/TIMSK getters
2020-05-25feat(timer): Compare Match Output (#45)Uri Shaked4-57/+342
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-05-10feat(gpio): add setPin() functionUri Shaked2-0/+43
close #26
2020-05-04fix(timer): stop Timer 2 when all CS bits are 0Uri Shaked1-1/+1
close #44
2020-04-29fix(timer): Reading TCNT in 2-cycle instructionsUri Shaked3-16/+35
close #40
2020-04-28fix(timer): incorrect high counter byte behaviorUri Shaked3-46/+97
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-28fix(instruction): LD, ST instructions should take 2 clock cyclesUri Shaked2-20/+33
close #39
2020-04-27style: reformat code with prettier 2.xUri Shaked9-34/+34
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 Shaked2-2/+48
close #36
2020-04-12test(timer): add more 16-bit timer testsUri Shaked2-13/+56
also fix some issues found by @gfeun and the tests
2020-04-12feat(timer): implement 16-bit timersUri Shaked2-24/+148
e.g. Timer/Counter1 on ATmega328
2020-04-09feat(instruction): 22-bit PC support #31Uri Shaked4-20/+120
adapt CALL, ICALL, RCALL, RET, and RETI for MCUs with 22-bit PC
2020-04-09feat(instruction): implement EICALL, EIJMP #31Uri Shaked2-0/+38
2020-04-08feat(instruction): implement ELPM #31Uri Shaked2-0/+71
2020-04-02fix: GPIO port listeners not invoked when writing to DDR registersUri Shaked2-3/+17
close #28
2020-04-02test(instruction): use assembly in testsUri Shaked1-89/+91
Refactored the tests to use AVR assembly instead of hardcoded bytecode. This change should make the tests much easier to read and maintain. Before: loadProgram('659a'); Now: loadProgram('SBI 0x0c, 5');
2020-03-22refactor: added peripherals and cpu feature folderslironh15-25/+25
2020-03-18style(cpu): relocate some stray commentsUri Shaked1-4/+4
2020-03-18Move first comment inside functiongfeun1-1/+1
2020-03-18Optimize opcode checkgfeun1-372/+186
2020-02-03feat(twi): proper interrupt support #10Uri Shaked2-5/+20
2020-02-03test(twi): add master TWI receive test #10Uri Shaked1-1/+175
2020-02-03test(twi): refactor assembly code to be shorterUri Shaked1-16/+11
2020-01-31test(twi): assembly code to test master transmit #10Uri Shaked2-3/+199
2020-01-31fix(assembler): BRBC/BRBS forward labels failUri Shaked2-2/+10
2020-01-30test(instruction): fix incorrect opcode in testsUri Shaked1-1/+1
2020-01-30test(assembler): add unit testsUri Shaked2-52/+379
fix some bugs found during unit tests
2020-01-30feat: add a simple AVR assembler for use in testsUri Shaked2-0/+983
2020-01-30feat(twi): partial TWI master implementation #10Uri Shaked3-0/+211
2020-01-11fix(gpio): pinState() value incorrect in GPIO listenersUri Shaked2-1/+16
fix #9
2020-01-08feat(gpio): add pinState() methodUri Shaked3-4/+69
close #8
2019-12-07refactor: tslint → eslintUri Shaked5-10/+13
2019-12-07feat(usart): add onLineTransmit callbackUri Shaked2-0/+56
2019-12-07test(usart): more USART testsUri Shaked2-1/+57
2019-12-01feat: add benchmarking codeUri Shaked1-15/+15
2019-12-01feat: initial implementation of USARTUri Shaked3-0/+180
#6
2019-11-30fix: Wrong prescaler for Timer2Uri Shaked2-6/+44
fix #5
2019-11-30feat: Output Compare for TimersUri Shaked2-6/+185
close #4
2019-11-30feat: add more GPIO portsUri Shaked2-1/+57
close #3
2019-11-27fix: SP not initialized on resetUri Shaked4-2/+28
close #2
2019-11-25feat: GPIO peripheral implementationUri Shaked4-2/+126
Add new AVRIOPort class, implements GPIO output logic
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.