Skip to content

Commit

Permalink
Do not wait for demagnetization when powerskipping.
Browse files Browse the repository at this point in the history
  • Loading branch information
sim- committed Jan 19, 2014
1 parent 49aace1 commit b3094fe
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tgy.asm
Original file line number Diff line number Diff line change
Expand Up @@ -2994,7 +2994,7 @@ wait_for_edge:
brcs wait_pwm_enable
sts powerskip, temp1
sbrs flags1, STARTUP
rjmp wait_for_blank
rjmp wait_for_edge0
ldi YL, byte1(0xff * 0x100) ; Timing is 120 degrees, so wait for
ldi YH, byte2(0xff * 0x100) ; what would be 0xff at 60 degrees
mov temp7, ZH
Expand All @@ -3009,7 +3009,6 @@ wait_pwm_enable:
wait_pwm_running:
sbrc flags1, STARTUP
rjmp wait_startup
wait_for_blank:
ldi temp4, 13 * 256 / 120
rcall set_timing_degrees
rcall wait_OCT1_tot ; Wait for the minimum blanking period
Expand All @@ -3029,7 +3028,7 @@ wait_for_demag:
sbrc temp3, ACO ; Check for opposite level (demagnetization)
.endif
rjmp wait_for_demag

wait_for_edge0:
rcall load_timing
mov XL, temp2 ; Copy high and check extended byte
cpse temp3, ZH ; to calculate the ZC check count
Expand Down

0 comments on commit b3094fe

Please sign in to comment.