;Chip Settings
#chip tiny44,1
#config osc = int
'Impostazioni RS232
'------------------------------------------------------------------------------
#define SendAHigh Set PORTA.5 Off
#define SendALow Set PORTA.5 On
#define RecAHigh PORTA.6 Off
#define RecALow PORTA.6 On
Dir PORTA.5 Out 'TX232
Dir PORTA.6 In 'RX232
InitSer 1, r300, 1+WaitForStart, 8, 1, none, invert
StartBit = 0X32
'------------------------------------------------------------------------------
' Loop principale
do
if PORTA.6 = off then
Gosub SerGest
end if
Loop
end
Sub SerGest
SerReceive 1 TempSer ' this is wrong, no error reporting!!!!!
'SerReceive 1, TempSer ' this is good
End sub
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello another AVR compiler bug :-(
Added to the bug tracker.
Fixed in releaase v0.95 of the compiler.