Dies ist eine alte Version des Dokuments!
The mpc555 offers two independent serial interfaces with RS232 Protocol, SCI1 and SCI2. The SCI1 is connected through the BDI-Interfaceprint (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).
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.