
	//---------------------------------------------------
	void Refresh_init()
	{
		#asm "lds R20,&unit_blue.v_B_data"
		#asm "lds R21,&unit_red.v_R_data"
		#asm "lds R22,&unit_green.v_G_data"
		
		#asm "ldi r24,24"
		
		#asm "@labelRepeat:"
		
			#asm "lsl r20"
			#asm "rol r21"
			#asm "rol r22"
			
			#asm "sbi &D.D0_OUT"
			#asm "dec r24"
			#asm "brcs @labelSend1"
				#asm "cbi &D.D0_OUT"
				#asm "nop"
				#asm "nop"
				#asm "nop"
				#asm "nop"
				#asm "brne @labelRepeat"
				loop( 100 ) {}
				#asm "ret"
			#asm "@labelSend1:"
				#asm "nop"
				#asm "nop"
				#asm "nop"
				#asm "nop"
				#asm "nop"
				#asm "cbi &D.D0_OUT"
				#asm "brne @labelRepeat"
				loop( 100 ) {}
				#asm "ret"
	}
	void Refresh()
	{
		#asm "cli"
		
		#asm "lds R20,&unit_blue.v_B_data"
		#asm "lds R21,&unit_red.v_R_data"
		#asm "lds R22,&unit_green.v_G_data"
		
		#asm "ldi r24,24"
		
		#asm "@labelRepeat:"
		
			#asm "lsl r20"
			#asm "rol r21"
			#asm "rol r22"
			
			#asm "sbi &D.D0_OUT"
			#asm "dec r24"
			#asm "brcs @labelSend1"
				#asm "cbi &D.D0_OUT"
				#asm "nop"
				#asm "nop"
				#asm "nop"
				#asm "nop"
				#asm "brne @labelRepeat"
				loop( 100 ) {}
				#asm "reti"
			#asm "@labelSend1:"
				#asm "nop"
				#asm "nop"
				#asm "nop"
				#asm "nop"
				#asm "nop"
				#asm "cbi &D.D0_OUT"
				#asm "brne @labelRepeat"
				loop( 100 ) {}
				#asm "reti"
	}


