From: Tobias Girstmair Date: Mon, 26 Apr 2021 14:09:59 +0000 (+0200) Subject: update cycle count X-Git-Url: https://git.gir.st/Chiptunes-pms150c.git/commitdiff_plain/936a9ec2db80a80c7858a8794d552e8d8db1b360 update cycle count --- diff --git a/bsv.asm b/bsv.asm index e83e3a4..df121a9 100644 --- a/bsv.asm +++ b/bsv.asm @@ -50,7 +50,7 @@ ihrcr = 0x0B ; Bitshift Variations calls for an 8kHz sample rate; with an interrupt every ; 512 cycles (the next power of two above the 495 cycles the program needs for ; execution), this gives us a clock speed of 512 * 8khz = 4.096MHz. The MCU -; will be powered by a 3V lithium coin cell. (+10-15ish cycles ivr overhead) +; will be powered by a 3V lithium coin cell. calib_freq = 4096000 ; Hz calib_vdd = 3000 ; mV @@ -65,6 +65,8 @@ sleep_clock = (( 7<<5 | 1<<4 | 0<<3 | 1<<2 | 0<<1 | 0<<0 )) ; mod3: 28 ; g: 81 ; sample: 115 + 4*g + 2*mod3 = 495 +; isr overhead: 12 +; TOTAL: sample + overhead = 507 ; portA.4: audio out ; portA.6: debug pin