Renesas CPU Board M3A-HS19 Manual de usuario Pagina 27

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 35
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 26
SH7285/SH7286 USB Function Module
USB to Serial Conversion Application Note
3.3 Serial Communication
The sample program uses a SCIF module
1
for serial communication. Serial OUT communication is executed only
when there is data in the bulk OUT transfer RAM, and serial IN communication is executed only by the serial receive
interrupt.
3.3.1 Serial OUT Communication
The sample program uses the ActSerialout function to execute serial OUT communication. Data in the bulk OUT
transfer RAM is serially transmitted in serial OUT communication. When the bulk OUT transfer RAM is sufficiently
empty by the
serial OUT communication, the sample program enables the EP1FULL interrupt. When the EP1FULL
interrupt is enabled, the suspended EP1FULL interrupt occurs to transfer data in the bulk OUT transfer.
Figure 3.7
shows an operation flowchart of the Serial OUT Communication.
Yes
No
Yes
Yes
No
No
Calculates the number of transfer bytes
SCSSR_2 TDFE = 1
Writes data to transmit in SCFTDR_2
Clears SCSSR_2 TDFE/TEND
Bulk OUT transfer
is disabled?
The bulk-OUT transfer
RAM is empty?
EP1FULL interrupt is enabled
USBIER/EP1FULL = 1
ActSerialOut
ExSerialOut
Serial OUT communication started
Serial OUT communication completed
Serial OUT communication
enables the EP1FULL
interrupt and the suspended
EP1FULL interrupt occurs.
Sample program (Software)
Serial OUT communication)
Figure 3.7 Serial OUT Communication
1
This is for the M3A-HS85 with the SH7285 MCU. The SCI module is used on the M3A-HS87 with the SH7286 MCU.
REJ05B1152-0100/Rev.1.00 May 2008 Page 27 of 35
Vista de pagina 26
1 2 ... 22 23 24 25 26 27 28 29 30 31 32 33 34 35

Comentarios a estos manuales

Sin comentarios