|
в самом быстром случае имеешь около 25-30 тактов аппаратно. С учётом рихтовки, входа-выхода из прерыания и прочей, связаной с ним лабуды
send_to_rpack_data:
cbi portb,r_pack_cscbi portb,pb0
sbrc yl,1
sbi portb,pb0sbi portb,pb1
cbi portb,pb1cbi portb,pb0
sbrc yl,0
sbi portb,pb0sbi portb,pb1
cbi portb,pb1cbi portb,pb0
sbrc temp,7
sbi portb,pb0sbi portb,pb1
cbi portb,pb1cbi portb,pb0
sbrc temp,6
sbi portb,pb0sbi portb,pb1
cbi portb,pb1cbi portb,pb0
sbrc temp,5
sbi portb,pb0sbi portb,pb1
cbi portb,pb1cbi portb,pb0
sbrc temp,4
sbi portb,pb0sbi portb,pb1
cbi portb,pb1cbi portb,pb0
sbrc temp,3
sbi portb,pb0sbi portb,pb1
cbi portb,pb1cbi portb,pb0
sbrc temp,2
sbi portb,pb0sbi portb,pb1
cbi portb,pb1cbi portb,pb0
sbrc temp,1
sbi portb,pb0sbi portb,pb1
cbi portb,pb1cbi portb,pb0
sbrc temp,0
sbi portb,pb0sbi portb,pb1
cbi portb,pb1sbi portb,r_pack_cs
ret
E-mail: info@telesys.ru