Maxim-integrated DS4830 Optical Microcontroller Manuel d'utilisateur Page 100

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 227
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 99
DS4830 User’s Guide
100
edge is used to sample the serial shift data. The Clock Phase Select (CKPHA; SPICF.1) bit controls whether the active or
inactive clock edge is used to latch the data. When CKPHA is set to 1, data is sampled on the inactive clock edge (clock
returning to the idle state). When CKPHA is set to 0, data is sampled on the active clock edge (clock transition to the
active state). Together, the CKPOL and CKPHA bits allow four possible SPI data transfer formats illustrated in Figure 12-2
and Figure 12-3. The Slave Select signal can remain asserted between successive transfers. Table 12-1 illustrates the
SPI modes.
Table 12-1 SPI Modes
CKPOL
CKPHA
Mode
Sample Point
0
0
Mode 0
Rising edge
0
1
Mode 1
Falling edge
1
0
Mode 2
Falling edge
1
1
Mode 3
Rising edge
CKPO L=0
CKPH A=1
CKPO L=1
CKPH A=1
M OSI/M ISO
SSEL
SAS=1
Sam pling Points
Transfer Cycle
LSBM SB
1 2 3 4 5 6 7 8
Figure 12-2: SPI Transfer Formats (CKPHA=1)
CKPOL=0
CKPHA=0
CKPOL=1
CKPHA=0
MOSI/MISO
SSEL
SAS=1
Sampling Points
Transfer Cycle
LSBMSB
1 2 3 4 5 6 7 8
MSB
MSB of
Next
Transfer
Figure 12-3: SPI Transfer Formats (CKPHA=0)
Vue de la page 99
1 2 ... 95 96 97 98 99 100 101 102 103 104 105 ... 226 227

Commentaires sur ces manuels

Pas de commentaire