Cypress Semiconductor FX2LP Informations techniques Page 309

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 460
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 308
Chapter 14. Timers/Counters and Serial Interface Page 14-17
Table 14-14. SCON1 Register SFR C0h
Bit Function
SCON1.7 SM0_1 - Serial Port 1 mode bit 0.
SCON1.6 SM1_1 - Serial Port 1 mode bit 1, decoded as:
SM0_1
SM1_1 Mode
000
011
102
113
SCON1.5 SM2_1 - Multiprocessor communication enable. In modes 2 and 3, this bit enables the
multiprocessor communication feature. If SM2_1 = 1 in mode 2 or 3, then RI_1 will not be
activated if the received 9th bit is 0.
If SM2_1=1 in mode 1, then RI_1 will only be activated if a valid stop is received. In mode
0, SM2_1 establishes the baud rate: when SM2_1=0, the baud rate is CLKOUT/12; when
SM2_1=1, the baud rate is CLKOUT/4.
SCON1.4 REN_1 - Receive enable. When REN_1=1, reception is enabled.
SCON1.3 TB8_1 - Defines the state of the 9th data bit transmitted in modes 2 and 3.
SCON1.2 RB8_1 - In modes 2 and 3, RB8_1 indicates the state of the 9th bit received. In mode 1,
RB8_1 indicates the state of the received stop bit. In mode 0, RB8_1 is not used.
SCON1.1 TI_1 - Transmit interrupt flag. Indicates that the transmit data word has been shifted out. In
mode 0, TI_1 is set at the end of the 8th data bit. In all other modes, TI_1 is set when the
stop bit is placed on the TXD1 pin. TI_1 must be cleared by the software.
SCON1.0 RI_1 - Receive interrupt flag. Indicates that serial data word has been received. In mode 0,
RI_1 is set at the end of the 8th data bit. In mode 1, RI_1 is set after the last sample of the
incoming stop bit, subject to the state of SM2_1. In modes 2 and 3, RI_1 is set at the end
of the last sample of RB8_1. RI_1 must be cleared by the software.
Vue de la page 308
1 2 ... 304 305 306 307 308 309 310 311 312 313 314 ... 459 460

Commentaires sur ces manuels

Pas de commentaire