S
Sequencer
Guest
Ho usato questo codice
Codice:
. comprendono "m8515def.inc"
. def temp = R16
. def read = R17
. org $ 000
rjmp start. org $ 009
rjmp UARTStart:
cli
LDI temp, $ FF
le temp DDRC,LDI temp, $ 02
SPH out, temp
LDI temp, $ 5f
fuori spl, tempLDI temp, $ 90
UCSRB out, temp
LDI R16, $ E
fuori UCSRC, R16LDI temp, $ 67
UBRRL out, temp
LDI temp, $ 00
UBRRH out, tempTemp
LDI temp, aa $
le temp PORTC,
Seim:rjmp mUART:
in R16, UDR
fuori R16 PORTC,
RETI
Codice:
. comprendono "m8515def.inc"
. def temp = R16
. def read = R17
. org $ 000
rjmp start. org $ 009
rjmp UARTStart:
cli
LDI temp, $ FF
le temp DDRC,LDI temp, $ 02
SPH out, temp
LDI temp, $ 5f
fuori spl, tempLDI temp, $ 90
UCSRB out, temp
LDI R16, $ E
fuori UCSRC, R16LDI temp, $ 67
UBRRL out, temp
LDI temp, $ 00
UBRRH out, tempTemp
LDI temp, aa $
le temp PORTC,
Seim:rjmp mUART:
in R16, UDR
fuori R16 PORTC,
RETI