A more complete understanding of the present disclosure and advantages thereof may be acquired by referring to the following description taken in conjunction with the accompanying drawings, in which like reference numbers indicate like features, and wherein:
As stated above, in one embodiment, a microcontroller may comprise at least a first and second output port coupled with external first and second pins, respectively, a programmable switching arrangement operable in a first mode to provide for independent first and second output signals at the first and second pins, respectively, and in a second mode to provide for a single output signal at the first and second pin wherein the second pin carries the inverted signal of the first pin.
The first and second pin can be driven by a respective first and second output driver. A first multiplexer can be provided which selects either the second output signal or the inverted first output signal as an input for the second output driver associated with the second pin. The first and second output drivers can be tri-state drivers controlled by an enable/disable signal. A microcontroller may further comprise a second multiplexer for providing a first or second enable/disable signal to the second output driver. The first and second pin can be arranged within a semiconductor housing next to each other. The enable/disable signals can be provided by a programmable register.
In one embodiment, a microcontroller may comprise at least a first and second input port coupled with external first and second pins, respectively, controllable first and second drivers coupled with the first and second pins, respectively for providing independent first and second input signals, and a controllable differential amplifier having two inputs coupled with the first and second pin and an output; wherein in a first mode the differential amplifier is disabled and in a second mode the first and second drivers are disabled and the differential amplifier is enabled.
The first and second drivers and the differential amplifier may comprise tri-state outputs and the output of the differential amplifier is coupled with the output of the first driver.
In one embodiment, a microcontroller may comprise at least a first and second input/output port coupled with external first and second pins, respectively, a programmable switching arrangement operable in a first mode to provide for independent first and second output signals at the first and second pins, respectively, and in a second mode to provide for a single output signal at the first and second pin wherein an inverted signal taken from the first pin is output at the second pin, and controllable first and second input drivers coupled with the first and second pins, respectively for providing first and second input signals.
Such a microcontroller may further comprise a controllable differential amplifier having two inputs coupled with the first and second pin and an output; wherein in a third mode the differential amplifier is disabled and in a fourth mode the first and second drivers are disabled and the differential amplifier is enabled. Such a microcontroller may also comprise a register for defining an operating mode of the input/output port. The first and second pin can be driven by a respective first and second output driver. A first multiplexer can be provided which selects either the second output signal or the inverted first output signal as an input for the second output driver associated with the second pin. The first and second output drivers can be tri-state drivers controlled by an enable/disable signal. A microcontroller may further comprise a second multiplexer for providing a first or second enable/disable signal to the second output driver. The first and second pins can be arranged within a semiconductor housing next to each other. The enable/disable signals can be provided by a programmable register.
In one embodiment, a microcontroller may comprise at least a first and second input/output port coupled with external first and second pins, respectively, controllable first and second drivers coupled with the first and second pins, respectively for providing independent first and second input signals, a controllable differential amplifier having two inputs coupled with the first and second pin and an output; wherein in a first mode the differential amplifier is disabled and in a second mode the first and second drivers are disabled and the differential amplifier is enabled, and controllable third and fourth drivers coupled with the first and second pins for providing an output port function in a output mode.
A microcontroller may further comprise a programmable switching arrangement operable in a third mode to provide for a first and second output signal at the first and second pins, respectively, and in a fourth mode to provide for a first output signal at the first pin and an inverted first output signal at the second pin.
Turning to the drawings, exemplary embodiments of the present application will now be described.
A second output pin 230 is provided for a second output port. During normal operation, the associated output driver 220 receives an internal input signal 240 through a multiplexer 235 at its input port and forwards it to pin 230 if an internal enable signal 250 which is coupled with the enable input of driver 220 through a second multiplexer 245 during normal operation. The operation mode of the output circuit can be set in a dedicated register 255 within the microcontroller core 260 which provides for a control signal coupled with the first and second multiplexer 235 and 245. Thus during normal operation the first input of each multiplexer 235 and 245 is selected and the circuit operates exactly like the circuit shown in
In a low noise mode, however, only a single output port having two output pins 210 and 230 is provided. To this end, the second inputs of multiplexers 235 and 245 are coupled as follows. The enable signal 215 for driver 205 is also fed to the second input of multiplexer 245. The data signal 201 is inverted by inverter 225 and fed to the second input of multiplexer 235. Thus, when register 255 selects the second inputs of multiplexers 235 and 245, driver 220 associated with external pin 230 will be controlled by the same enable signal as driver 205 and will receive the same input signal, however inverted, as driver 205. Thus, external pins 210 and 230 now carry a symmetrical signal. This low noise mode is particularly useful if a high speed peripheral is connected to the microcontroller. Such a connection can now be provided by a balanced transmission line or twisted pair. A communication over such a balanced transmission line or twisted pair still radiates, however, through the inverted signal on the second line the radiation is effectively cancelled by the opposing phase. Thus, the asymmetry of a single port for a digital signal comprising either a logical 0 or 1 is cancelled by the 1:1 coupling.
Drivers 340, 350, and differential amplifier 360 comprise tri-state outputs. Thus, during normal operation, the output of differential amplifier 360 is disabled through signal 365 and drivers 340 and 350 are enabled through signals 347 and 357. Thus, both pins 310 and 320 operate as separate input pins and the microcontroller has two input ports in this mode. However, in the second mode, only one input port is provided by the two pins 310 and 320. In this second mode, the drivers 340 and 350 are disabled through signals 347 and 357 and the differential amplifier 360 is enabled through signal 365. Thus, in this second mode, differential amplifier provides for an analysis of the signal difference between the signals that are fed to pins 310 and 320. Usually, logical input signals having states 1, 0 would lead to an output signal 355 having states 1, −1. Thus, differential amplifier preferably includes a conversion stage that converts this signal back to a logical signal having states 1, 0. Alternatively an extra output stage can be inserted between the output of differential amplifier 360 and the output of tri-state driver 350. This input driver circuitry 200 provides for the same benefits as explained above in conjunction with the output driver circuitry 100.
Some of the enable/disable signals for the internal drivers are generated from a signal control signal, for example using an inverter such as provided with internal control signal 445. However, all enable/disable signals as well as the control signals can be provided separately or can combined depending on the respective flexibility of the I/O circuit. These signals can be programmable through dedicated registers as for example shown in
However, as shown in