Laboratorio di TDP (anno scolastico 2011/12)

Minidomotica

Lab. Elettronica Lab.Sistemi Lab.Telecom.  Home corso

Ultimo aggiornamento il 04/04/12

Schemi

minidomotica.dsn

Procedure di collaudo

 

Sviluppo software

Protocollo RS485

DST Indirizzo destinazione (range 0..254)

MIT Indirizzo mittente  (range 0..254)

CMD comando (range 0..255);

DST MITT CMD .. ..

Comandi:

Cmd n Descrizione Richiesta Risposta
rdp0 20 Legge porta P0
DST MITT 20
MITT DST P0
rdp1 21 Legge porta P1
DST MITT 21
MITT DST P1
rdp2 22 Legge porta P2
DST MITT 22
MITT DST P2
rdp3 23 Legge porta P3
DST MITT 23
MITT DST P3
wrp0 24 Scrive porta P0
DST MITT 24 P0
MITT DST 24
wrp1 25 Scrive porta P1
DST MITT 25 P1
MITT DST 25
wrp2 26 Scrive porta P2
DST MITT 26 P2
MITT DST 26
wrp3 27 Scrive porta P3
DST MITT 27 P0
MITT DST 27
RdVarBt 30 Legge variabile byte (idx: l'indice)
DST MITT 30 idx
MITT DST byte
WrVarBt 31 Scrive variabile byte (idx: l'indice)
DST MITT 31 idx byte
MITT DST 31
RdVarWd 32 Legge variabile word (idx: l'indice)
DST MITT 32 idx
MITT DST byte L byte H
WrVarWd 33 Scrive variabile word (idx: l'indice)
DST MITT 33 idx byte L byte H
MITT DST 33