Les codes de commandes
Reponse | Fonction | Sous Fonction | Datation | Code | Description | |
R | FFF | SS | DD | Hex | ||
0 | 000 | 00 | xx | 00 | code SPECIAL "zero" :NV1Dat2-> NV1AdrR adresse Reponse | |
0 | 000 | 10 | xx | 08 | lecture RAM reponse NV1AdrR | |
1 | 000 | 00 | xx | 80 | lecture RAM reponse NV1Dat2 | |
0 | 000 | 01 | xx | 04 | ecriture RAM, pas de reponse | |
- | - | - | - | - | -------------------- | |
- | 001 | - | - | - | Affichage LCD et Bit Set Reset | |
0 | 001 | 00 | xx | 10 | Affichage LCD Data1 et Data2 si diff de zero | |
- | - | - | - | - | -------------------- | |
- | 010 | - | - | 20 | Transfert I2C | |
- | 010 | 00 | - | 20 | I2C La commande dans Data1 | |
- | 010 | 01 | - | 24 | I2C Ecriture 2 data puis Stop | |
- | 010 | 10 | - | 28 | I2C Ecriture 2 data | |
- | 010 | 11 | - | 2C | I2C Reservee | |
- | - | - | - | - | -------------------- | |
- | 011 | - | - | 30 | Fonctions Flash (ex:16F87X) | |
- | 011 | 00 | - | 20 | Flash Lecture | |
- | 011 | 01 | - | 24 | Flash Ecriture | |
- | 011 | 10 | - | 28 | Flash GOTO | |
- | 011 | 11 | - | 2C | Flash Reservee |
Data | Fonction | Code | Description | ||
DDDD | FFFF | Hex | |||
---- | 0000 | 0 | Start envoi adresse 7 bits dans Data2 | ---- | 0001 | 1 | Stop |
---- | 0011 | 3 | Stop | ---- | 0100 | 4 | Lecture 1 data | ---- | 0101 | 5 | Lecture 2 data | ---- | 0110 | 6 | Lecture 1 data et Stop | ---- | 0111 | 7 | Lecture 2 data et Stop | ---- | 1000 | 8 | Ecriture 1 data | ---- | 1010 | A | Ecriture 1 data et Stop |