Part 6: Debugging Bugs are everywehere... Simulating MO44.DRV During my journey, I used my Atari with Cubase and the driver MO44.DRV. However, since my prototype is not yet recognized by the driver, my testing ability is limited. To overcome this issue, I decided to use another ATTiny to simulate the driver. I wrote a quick program (simulmo4) and checked the result with Saleae Logic. Great, exactly what I wanted! Slowing down the simulation My simulator was too fast for an easy debugging. So I decided to slow it down in 2 ways: By setting the CKDIV8 fuse (divide clock by 8) using this link https://www.engbedded.com/fusecalc/ By setting the CLKPR register (clock prescaler) to 00000011 (prescaler division factor = 8, cf. datasheet page 33) .equ PRESCALER, 0x03 ... ; --------------------------------- ; Configuration of system clock prescaler ; --------------------------------- ldi r16, (1<<CLKPCE) STORE CLKPR, r16 ; Permit c...
Parce que j'aime bien la musique. Parce que je trouve bien les instruments. Parce qu'il y a beaucoup de boutons. Et que j'aimerais bien jouer du piano.