摘要 |
A port output controller for use in a microcomputer for outputting data to a plurality of output terminals in real time, includes a latch circuit for latching data being outputted to the output terminals and a buffer register for storing data to be outputted to the output terminals next to the data being outputted to the output terminals. A timer counter counts an elapsed time after the next data has been latched in the latch circuit and causes the next data stored in the buffer register to be latched into the latch circuit when the counted elapsed time becomes a predetermined data outputting period of time. In a delayed output mode, a delay counter counts a delayed time after the next data has been latched in the latch circuit, and a delay output circuit controls the outputting of the data latched in the latch circuit to the output terminals in such a manner that if the data latched in the latch circuit is a first value, the data latched in the latch circuit is outputted to the output terminal without delay, and if the data latched in the latch circuit is a second value, the data latched in the latch circuit is outputted to the output terminal when the counted delayed time has become a predetermined delay time. <IMAGE> |