补充code
//----------------------------------------------------------------------------
// C main line
//----------------------------------------------------------------------------
#include <m8c.h> // part specific constants and macros
#include "PSoCAPI.h" // PSoC API definitions for all User Modules
user module datasheet said:
This API only connects the specified pin to the bus, does not disconnect any pins from the bus.
So, before connnect a pin, you have to make sure all the other pins disconnect, if you don't want them connected.