3 Steuerungsphase II (SpeedHigh)

	; ....................................................................
	; PHASE II: continue on hisped
	  rcall phase_speed_high          ; drive on full hispeed otherwise
	; continue on slowdown?           ; ... we skip slowdown phase ... 
Die Hochgeschwindigkeits Phase macht nichts anderes, als auf den vorprogrammierten Endwert (OCR1B) zu ,,warten'' und besteht im Prinzip nur aus der Warteschleife, die das Makro ,,BEFORE_POSITION'' ausführt und die Zeit gesteuerte LCD-Aktualisierung ,,auto_update_display'' ausführt.

	; ---------------------------------
	; high speed rotation part
	; until reaching the rot_angle_godown value we turn at full speed
	; the rot_angle_godown position is controlled by OCIE1B
	; ---------------------------------
	; input:    none
	; output:   none
	; affected: flags
	; ---------------------------------
	phase_speed_high:
	  STSB  rotation_mode, ModeSpeedHigh ; rotation mode is hispeed
	  rcall auto_funcmode
	; ....................................................................
	hispeed_continue:                    ; loop until rot_angle_godown
	  rcall auto_update_display          ; scheduled display update
	  BEFORE_POSITION hispeed_continue   ; uses ltmp1
	  ret 
Die Implementierung von auto_update_display ist im Abschnitt 7.7.3.3 beschrieben, der sich mit Scheduler Mechanismus beschäftigt.

Die Mechanismen zur Verwendung des Output Compare1B Interrupts ist im Abschnitt 7.7.3.5 beschrieben, der sich mit der Verwendung des Interrupts zur Positionskontrolle beschäftigt.

gerhard.reithofer@tech-edv.co.at