Freescale-semiconductor Microcontrollers Manual do Utilizador Página 627

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 626
ColdFire V1 Full Chip Simulation Connection
FCS Visualization Utilities
627
Microcontrollers Debugger Manual
Table 28.13 describes the bits used in the Serial Communication Status Register.
Reading and writing in the BAUD, SCCR1, SCCR2 or SCSR registers has no effect in the
TestTerm component, but are required to make the component compatible with specific
SCI interfaces.
Simulated I/Os of the TestTerm component do not need initialization. In the terminal
interface file termio.c, BAUD and SCSR registers are initialized to be compatible with
real SCI interfaces.
The SCDR register is valid for reading or writing data. Reading a value from the SCDR
register clears the RDRF flag in the SCSR register. Entering a character on the keyboard
while TestTerm is active sets the RDRF flag in the SCSR register and puts the ASCII code
of the typed key into the SCDR register.
Conceptually, writing a new value in the SCDR register by the target application clears the
TDRE flag in SCSR. Transmission completion sets the TDRE flag again. As TestTerm is
only an I/O emulation, no delay is simulated and writing into SCDR sets the TDRE flag in
the SCSR register.
Output Redirection
Output can be redirected to a TestTerm window, a file, or to both at the same time. File
output is monitored by the target system and cannot be specified interactively.
Table 28.12 TestTerm Simulated Memory Mapped Registers
Register Name Function Register Address
BAUD Baud Rate Control 0x0200
SCCR1 Serial Communication Control Register 1 0x0201
SCCR2 Serial Communication Control Register 2 0x0202
SCSR Serial Communication Status Register 0x0203
SCDR Serial Communication Data Register 0x0204
Table 28.13 TestTerm Serial Communication Status Register
Bit Name (flag) Function Bit Mask Value
TDRE Transmit Data Register Empty 0x80
RDRF Receive Data Register Full 0x20
Vista de página 626
1 2 ... 622 623 624 625 626 627 628 629 630 631 632 ... 891 892

Comentários a estes Manuais

Sem comentários