Other than PA5, all the pins can be independently set into two states output or input by configuring the data registers (pa, pb, pc, pd), control registers (pac, pbc, pcc, pdc) and pull-high registers (paph, pbph, pcph, pdph). All these pins have Schmitt-trigger input buffer and output driver with CMOS level. When it is set to output low, the pull-up resistor is turned off automatically. If user wants to read the pin state, please notice that it should be set to input mode before reading the data port; if user reads the data port when it is set to output mode, the reading data comes from data register, NOT from IO pad. As an example, Table 6 shows the configuration table of bit 0 of port A. The hardware diagram of IO buffer is also shown as Fig. 17.
PA5 can is open-drain ONLY
when setting to output mode (without Q1). The corresponding bits in registers padier / pbdier should be set to low to prevent leakage current for port A and port B pins which are selected to be analog function. When PMC234/PMS234 is put in power-down or power-save mode, every pin can be used to wake-up system by toggling its state. Therefore, those pins needed to wake-up system must be set to input mode and set the corresponding bits of registers padier and pbdier to high. The same reason, padier.0 should be set high when PA0 is used as external interrupt pin and pbdier.0 for PB0.
Reset and LVR
There are many causes to reset the PMC234/PMS234, once reset is asserted, most of all the registers in PMC234/PMS234 will be set to default values, When reset comes from WDT timeout, gdio register (IO address 0x7) keeps the same value, system should be restarted once abnormal cases happen, or by jumping program counter to address 0x0. The data memory is in uncertain state when reset comes from power-up and LVR; however, the content will be kept when reset comes from PRST# pin or WDT timeout.
Application industry
The products can be used in the following industries: power plant, paper making, steel, mining, rubber, water supply, cement, chemical industry, glass, printing
Textile, machinery, plastics, coatings, medicine, hospitals, food, hotels, scientific research institutions
This article from the temporal Ming sheng automation equipment co., LTD., reproduced please attach this link: http://www.stockdcs.com/