An improved digital communication I/O port

Abstract: A micro control system includes a programmable microcontroller (11) which is in bus communication with memory units (14) and an operating power supply (22) for providing operating power to said microcontroller (11). A communication module (300) is in communication with the data bus (18) of the micro control system for receiving and transmitting data messages to an external device (26), and for encoding said transmitted data messages to conform to a serial communication protocol and decoding received data messages. The microcontroller (11) is programmed to generated a first control signal or a second control signal. An input-output interface (311) includes a number of switching units responsive to the first control signal of the microcontroller to place the respective switching units in a first mode of operation for providing communication between said communication module (300) and a connector (26). The switching units also respond to said second control signal from the microcontroller (11) to place said switching units in a second mode of operation for providing communication between said data bus (18) of the micro control system and said connector (26) to which connector the external device is attached.

Description: This invention relates to microprocessor-operated control systems and is applicable to digital communication ports, e.g. for use in electronic postage meters/franking machines. EP-A-0 285 390 describes a franking machine having a microprocessor system with the capability of communicating with external microprocessor systems via a communications port utilizing a selectable one of several standard serial communication protocols, for example, an RS232 Communication Protocol. It is customary where the communication is expected to be carried out utilizing a standard communication protocol, for example, an RS232 Communication Protocol, to provide a 9-pin communication port which is specified under the RS232 protocol specification. It is also known to provide a microprocessor control system with a plurality of communication ports where it is desired to accommodate different communication protocols, for example, RS232, RS242, etc. It is also known, that where different communication protocol specifications permit pin connector compatibility, the microcontroller can be programmed to format digital messages in any selected protocol. Systems of the type here referred to, in this context, are characterized in that each unit has its own power supply and each unit is committed to serial communication via a dedicated serial communication port. The micro control systems disclosed in published European Patent Application 0 657 817 is intended for use in controlling an electronic postage meter utilizing digital printing. As part of the control system, it has been found desirable to provide a communication port in order to allow the microprocessor controller to communicate with the external environment utilizing any one of a number of standard communication protocols. However, the known device lacks flexibility and is unable to permit an external device direct access to the microprocessor control system without providing an additional I/O port and interface. A similar system is described in EP-A-0 285 390. It is an object of the present invention to provide a microprocessor control system which allows, through a single communication interface, standard communication with external devices utilizing the same communication protocols and also allows, through the standard communication I/O interface, direct access by the external device to the microprocessor controller. It is a further object of the present invention to provide a microprocessor control system having a communication port which in a first mode of operation provides communication utilizing standard serial communication protocols, such as, RS232 or RS242, and in a second mode allows an external device to communicate directly under microprocessor control with the data bus of the micro control system in a parallel manner. According to the invention, there is provided a micro control system having a programmable microcontroller in bus communication with memory units, an operating power supply for providing operating power to said microcontroller, a communication module for receiving and transmitting data messages for conforming said data messages to a predetermined serial communication protocol and decoding said received data messages, wherein the system comprises: a connector; input-output means and said communication module being in communication with said microcontroller via a data bus for responding to selected control signals generated by said microcontroller and placing said input-output means in a first mode of operation to provide electrical communication between said communication module and said connector and in a second mode to provide electrical communication between said data bus and said connector; said microcontroller being programmed to generate a first control signal or a second control signal, said input-output means being responsive to said first control signal to place said input-output means in said first mode of operation and said second control signal to place said input-output means in said second mode of operation; said data bus having at least N data lines; and said input-output means having M output lines, where M-N is equal to or greater than 3; wherein at least a first one of said output lines is in communication with said operating power supply to provide a first operating electrical potential, at least a second one of said output lines is in communication with said operating power supply to provide a second operating electrical potential different from said first operating electrical potential, and at least a third one of said output lines is in communication with said operating power supply to provide a neutral electrical potential. Preferably, the input-output means comprises an input-output interface having a plurality of switching means responsive to said first control signal of said microcontroller to place said switching means in said first mode of operation for providing communication between said communication module and said connector, and responsive to said second control signal of said microcontroller to place said switching means in said second mode of operation for providing communication between said data bus and said connector; said switching means has a plurality of M switches, N of said switches having respective first I/O pins in communication with respective ones of said data lines of said data bus, and wherein M-N of said first I/O pins are in communication with said power supply to receive: (i) said first electrical potential, (ii) said second electrical potential different from said first electrical potential, and (iii) said neutral electrical potential; M of said switches have respective second I/O pins which are in communication with said communication module; M of said switches have third respective I/O pins in communication with said connector; and in said first mode each of said first I/O pins are in communication with said third I/O pins and in said second mode said second I/O pins are in communication with said third I/O pins. For a better understanding of the invention, and to show how the same may be carried into effect, reference will now be made, by way of example, to the accompanying drawing, in which: Fig. 1 is a schematic of a micro control system for an electronic postage meter having a input/output interface and port in accordance with an embodiment of the present invention; Referring to Fig. 1, a microprocessor control system 10 of an electronic postage meter/franking machine includes a microcontroller 11, an address bus 17 in communication with a program memory 16 and non-volatile memory 19, and an ASIC 15. The address bus 17 is also in communication with the address decoder 20 of the ASIC 15. The ASIC 15 includes a plurality of modules for performing different functions relative to the control system as is described in more detail in published European Patent Application No. 0 657 817 filed on December 9, 1994 entitled CONTROL SYSTEM FOR AN ELECTRONIC POSTAGE METER HAVING A PROGRAMMABLE APPLICATION SPECIFIC INTEGRATED CIRCUIT. One of the modules included in the ASIC 15 is a communication module 300. The communication module 300 is intended to be a standard communication module of any suitable design to accommodate one of any number of standard serial communication protocols. The communication module is enabled in response to control signals directed to it from the address decoder 20 in response to address data from the microcontroller 11. Generally, the communication module 300 receives data messages from a data bus 18 and encodes the data to conform to a standard protocol and outputs the encoded data. Conversely, the communication module 300 decodes incoming data for access by the microcontroller 11. The data bus 18 communicates with the communication module 300 in a standard or conventional manner, and also with an I/O interface 311 which is part of the ASIC 15. A communication bus 312 provides communication between the communication module 300 and an I/O interface 311. The output from the I/O interface 311 is directed by an I/O communication bus 313 to a connector coupler 26 for connection to an external device. In the preferred embodiment, a standard RS232 protocol is employed. For this purpose, the transmit, read and status control lines are intercepted by a conventional 5-12 volt converter 24 before being directed to the coupler 26. The I/O interface 311 has nine channels to accommodate the conventional RS232 communication protocols. Operation of a single one of the channels will be described with reference to Figs. 2 and 3. The other channels are similar. Referring to Fig. 1, it is observed that the conventional communication connector path for RS232 is a 9-pin connector. The bus lines L1-L9 of bus 313, when connected to the ASIC, serve as conventional communication connections as specified for the RS232 standard communication protocol. As contemplated in the preferred embodiment of the present invention, where an external device is connected to the connector 26, not all of the data lines are necessary for communication, which in the preferred embodiment is a 6-bit parallel communication. This permits the additional three lines to be switched, not to the data bus, but to a power supply module within the I/O port to provide +12 volts, -12 volts and ground. Therefore, it will be appreciated that an external device may be attached to the connector 26 having power supplied by the main micro control system 10. This alleviates the need for independent power to the external supply module. The microprocessor control system described above preferably comprises a microcontroller in bus communication with a program memory, non-volatile memory and an application specific integrated circuit (ASIC). The ASIC includes a standard communication module and an address decoder. The address decoder provides control signals to the standard communication module for enabling the communication module. The output from the standard communication module (for example, RS232 communication module) is directed to an I/O interface whose output is directed to a 9-pin coupler. Each of the outputs from the communication module is preferably directed to the pin coupler through an I/O interface in response to an address decode signal. Alternatively, in response to a second address decode signal, selected pins of the pin coupler can be directly communicated to the internal bus of the ASIC while other ones of the pins are provided with operating voltages for the external device. During standard communication, utilizing conventional protocols, the I/O interface is responsive to control signals from the address decoder to switch enable normal protocol communication between the communication module and an external device connected to the communication pin. However, in a second mode, the interface switches in response to a control signal from the address decoder to effectively gate the respective I/O pin to a respective line of the data bus and power supply lines. In this manner, it is observed that a single port can be used for standard serial communication between the micro control system and an external micro control system or parallel communication between the micro control system and an external device. Additionally, the external device need not have an independent power supply. The afore description should not be taken as limited and is merely representative of the preferred embodiment of the invention. The full scope of the invention is set forth in the appended claims.

Claims: A micro control system having a programmable microcontroller (11) in bus communication with memory units (14), an operating power supply (22) for providing operating power to said microcontroller, a communication module (300) for receiving and transmitting data messages for conforming said data messages to a predetermined serial communication protocol and decoding said received data messages, wherein the system comprises: a connector (26); input-output means (311) and said communication module (300) being in communication with said microcontroller (11) via a data bus (18) for responding to selected control signals generated by said microcontroller (11) and placing said input-output means (311) in a first mode of operation to provide electrical communication between said communication module (300) and said connector (26) or in a second, alternative mode; said microcontroller being programmed to generate a first control signal or a second control signal, said input-output means (311) being responsive to said first control signal to place said input-output means (311) in said first mode of operation and said second control signal to place said input-output means in said second mode of operation; said data bus (18) having at least N data lines and; said input-output means (311) having M output lines, where M-N is equal to or greater than 3; wherein at least a first one of said output lines is in communication with said operating power supply (22) to provide a first operating electrical potential, at least a second one of said output lines is in communication with said operating power supply (22) to provide a second operating electrical potential different from said first operating electrical potential, and at least a third one of said output lines is in communication with said operating power supply (22) to provide a neutral electrical potential; characterized in that in the second mode of operation electrical communication is provided between said data bus (18) and said connector (26). A micro control system according to Claim 1, wherein: said input-output means comprises an input-output interface (311) having a plurality of switching means responsive to said first control signal of said microcontroller to place said switching means in said first mode of operation for providing communication between said communication module and said connector (26), and responsive to said second control signal of said microcontroller (11) to place said switching means in said second mode of operation for providing communication between said data bus (18) and said connector (26); said switching means has a plurality of M switches, N of said switches having respective first I/O pins in communication with respective ones of said data lines of said data bus (18), and wherein M-N of said first I/O pins are in communication with said power supply (22) to receive: (i) said first electrical potential, (ii) said second electrical potential different from said first electrical potential, and (iii) said neutral electrical potential; M of said switches have respective second I/O pins which are in communication with said communication module (300); M of said switches have third respective I/O pins in communication with said connector (26); and in said first mode each of said first I/O pins are in communication with said third I/O pins and in said second mode said second I/O pins are in communication with said third I/O pins. An electronic postage meter having a communication port and a micro control system according to Claim 1 or 2 arranged to control said port.

Inventors: LEE YOUNG W, MOH SUNGWON, MULLER ARNO, LEE, YOUNG W., MOH, SUNGWON, MULLER, ARNO
Applicants: PITNEY BOWES INC, PITNEY BOWES, INC.
Application year: 1995
Main classification: G06F13
IPC codes: G06F11, H04L29, G06F13