Dies ist eine alte Version des Dokuments!
The Freescale MPC555 offers two independent serial interfaces with RS232 Protocol, SCI1 and SCI2. When using the NTB MPC555 Headerboard, the SCI1 is connected through the USB Background Debugging Interface (USB-BDI) to the host where it will be visible as a virtual COM port. The SCI2 can be connected with a standard serial cable (DB9 connector).
The Freescale MPC5200 has six built in Programmable Serial Controllers (PSC), which can all work as UART's running the RS232 protocol. Check your hardware manual to see which of the PSC can be used.
import java.io.PrintStream; import ch.ntb.inf.deep.runtime.mpc555.driver.SCI1; public class HelloWorld { static { // 1) Initialize SCI1 (9600 8N1) SCI1.start(9600, SCI1.NO_PARITY, (short)8); // 2) Use SCI1 for stdout System.out = new PrintStream(SCI1.out); // 3) Say hello to the world System.out.println("Hello, world"); } }
In the category Terminal mark Terminal and confirm with OK.
Under Connection Type select Serial and choose settings according to the settings of the SCI on the target.