[go: up one dir, main page]

CN1366250A - Synchronous serial ports controller - Google Patents

Synchronous serial ports controller Download PDF

Info

Publication number
CN1366250A
CN1366250A CN 01107464 CN01107464A CN1366250A CN 1366250 A CN1366250 A CN 1366250A CN 01107464 CN01107464 CN 01107464 CN 01107464 A CN01107464 A CN 01107464A CN 1366250 A CN1366250 A CN 1366250A
Authority
CN
China
Prior art keywords
system bus
data
write
read
enable signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 01107464
Other languages
Chinese (zh)
Other versions
CN1191532C (en
Inventor
鹿甲寅
梁松海
朱子宇
王良清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nationz Technologies Inc
Original Assignee
ZHONGXING INTEGRATED CIRCUIT DESIGN CO Ltd SHENZHEN CITY
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZHONGXING INTEGRATED CIRCUIT DESIGN CO Ltd SHENZHEN CITY filed Critical ZHONGXING INTEGRATED CIRCUIT DESIGN CO Ltd SHENZHEN CITY
Priority to CN 01107464 priority Critical patent/CN1191532C/en
Publication of CN1366250A publication Critical patent/CN1366250A/en
Application granted granted Critical
Publication of CN1191532C publication Critical patent/CN1191532C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Bus Control (AREA)

Abstract

The invention discloses a synchronous serial controller in computer area with structure supporting dual buses visit. The controller includes interior control logic in the synchronous serial controller, logics of sending data and receiving data, first interface logic, second interface logic, third interface logic, fourth interface logic, fifth interface logic and CPUDMA register. When exchanging data with the synchronous serial controller, DMA and CPU can work concurrently, querying interior status of the synchronous serial controller or setting up the control register so as to utilize system resources fully and increase work efficiency of the system.

Description

A kind of synchronous serial ports controller
The present invention relates to computer system, relate in particular to the field of data exchange in the computer realm.
At present, increasingly extensive along with computer utility, travelling speed to computing machine, efficient and stability etc. have also proposed more and more higher requirement, but at present more situation but is, quickening along with the central processing unit speed of computing machine, and its operational efficiency reduces relatively, this mainly is because in existing computer system, a central processing unit is connected on the system bus, central processing unit directly be connected system bus on various device communicate by letter, and system and outside carry out exchanges data core component---synchronous serial ports controller is also only supported single system bus, and directly hang over this unique system bus, so just make the DMA in central processing unit and the system can not keep concurrent working, seriously influenced the whole efficiency of system's operation.In single system bus shown in Figure 1 system, central processing unit carries out initialization to synchronous serial ports controller earlier, when receiving enough data from the outside, this synchronous serial ports controller just sends out interruption to interruptable controller, this interrupts handling through the arbitration of interruptable controller, send to central processing unit then, central processing unit receives in this and has no progeny, the interrupt vector controller of inquiry interruptable controller, judge whether it is the interruption that synchronous serial ports controller sends, central processing unit is inquired about the interrupt status register of synchronous serial ports controller then, if acceptance interruption, with regard to initialization corresponding D MA control register, and withdraw from control to bus, by the control of DMA application system bus; Obtain the control of system bus as DMA after, just occupy system bus alone, carry out the data transmission of the data register of synchronous serial ports controller to storer (in the sheet or outside the sheet), after the data volume that central processing unit is provided with to the DMA initialization time is finished by the DMA transmission, DMA just cancels the control to system bus, simultaneously send look-at-me to interruptable controller, this look-at-me sends to central processing unit through after the arbitration of interruptable controller; The interrupt status register of central processing unit inquiry interruptable controller, when finding is a look-at-me that DMA sends, obtain the control of system bus earlier, inquire about the interrupt status register of corresponding D MA then, when finding it is the data transmitted of DMA whole end of transmissions, with regard to the control register of reconfigurable DMA; Process of transmitting for synchronous serial ports controller is also similar.Because existing synchronous serial ports controller can only be supported unibus structure, so what existing systems adopted substantially all is the structure of unibus, central processing unit and DMA hang on same the system bus, in DMA transmission data, the control of system bus is occupied alone by DMA, central processing unit is wanted to inquire about relevant status register or control register is set, and all needs to obtain earlier the control of bus, just can do corresponding operation then.Equally, DMA transmits data if desired, also will obtain the control of system bus earlier, could transmit data then.Central processing unit and DMA can not work simultaneously like this, and overall system efficiency has been lost a lot in the mutual transmission of bus control right.And, all can have a strong impact on the performance of system to the repeatedly interruption of central processing unit.
The purpose of this invention is to provide a kind of support dual bus visit, synchronous serial ports controller efficiently, to solve the shortcoming that can only support a bus, inefficiency of the prior art.
To achieve these goals, the present invention has constructed a kind of synchronous serial ports controller, comprise that synchronous serial ports controller inner control logic, data send logic and Data Receiving logic, it is characterized in that, also comprise first interface logic, second interface logic, the 3rd interface logic, the 4th interface logic, the 5th interface logic and CPUDMA register;
Described first interface logic receives chip selection signal Ccs, read-write Cwr and the address signal Caddr of article one system bus, generate inner control logic enable signal Cen and send to described synchronous serial ports controller inner control logic, article one system bus read-write enable signal 302 that generates sends to described the 4th interface logic, and article one system bus data register enable signal 301 of generation sends to described the 3rd interface logic and the 4th interface logic respectively;
Described the 4th interface logic is made of one group of alternative selector switch and three-state buffer, the steering logic read data bus signal CdataR that reception is sent by the synchronous serial ports controller inner control logic, and the data register read data bus signal DrdataR that sends the logic transmission by data, its selecting side receives the second system bus data register enable signal 303 that sends from described first interface logic, its output terminal is connected on the data bus Cdata, and the other end of described data bus Cdata is connected to the steering logic write data port CdataW in the described synchronous serial ports controller inner control logic;
Described second interface logic receives chip selection signal Dcs, the address signal Daddr of second system bus transmission and the read-write Dwr of second system bus, generate second system bus data register enable signal 303 and send to described the 3rd interface logic and the 5th interface logic, generate second system bus read-write enable signal 304 and send to described the 5th interface logic;
Described the 5th interface logic adopts a three-state buffer, receive second system bus data register enable signal 303 and second system bus read-write enable signal 304 that described second interface logic sends, receive data bus signal DrdataR from the Data Receiving logic, send it to the data bus Ddata in the second system bus;
It still is the DMA pattern that described the 3rd interface logic is selected to use central processor model by described CPUDMA register controlled, receive the data bus Cdata of article one system bus, the data bus Ddata of second system bus, article one, system bus data register enable signal 301, second system bus data register enable signal 303, the read-write Dwr of read-write Cwr and second system bus, write enable signal DrWen to described data transmission logic output data register write data bus DrdataW and data register, read enable signal Ren to described Data Receiving logic transmitting data register;
Described read-write Cwr, address signal Caddr directly are connected with CdataW with corresponding port Cwr, the Caddr of described synchronous serial ports controller inner control logic respectively with data bus Cdata.
After central processing unit is finished initialization to DMA and synchronous serial ports controller, the thing that central processing unit just can be Myself, the transmission of data is finished just passable by DMA and synchronous serial ports controller, need not constantly interrupt central processing unit, also reduce the performance of system without switching back and forth of system bus, central processing unit can with the complete concurrent operations of the transmission of synchronous serial ports controller data, improved the performance of system greatly.When the data of DMA and synchronous serial ports controller are being transmitted, central processing unit need not interrupt this data transmission at the synchronous serial ports controller that carries out, just can inquire about the internal state of synchronous serial ports controller, even control register is set, the efficient that this has also improved data transmission has greatly improved the performance of system on the whole.
The invention will be further described below in conjunction with accompanying drawing;
Fig. 1 is the synchronous serial ports controller logic diagram of an existing system bus interface;
Fig. 2 is the system architecture sketch that inside of the prior art has only a system bus;
Fig. 3 is the synchronous serial ports controller logic diagram of the present invention's dual system bus interface of constructing;
Fig. 4 is the system architecture sketch with two system buss as embodiment of the present invention.
Fig. 1 is the synchronous serial ports controller that has a bus interface, this controller is divided into 3 parts: one is the steering logic of synchronous serial ports controller inside, comprise control and status register that synchronous serial ports controller is all, central processing unit is provided with control register in the synchronous serial ports controller inner control logic by system bus, steering logic sends the status signal that logic and Data Receiving logic receive according to the setting of control register and from data, and control data sends the action of logic and Data Receiving logic; It mainly is under the control of inner control logic that data send logic, receives the data of sending from data bus Cdata, sends from data sending terminal TxD then; The Data Receiving logic mainly is under the control of inner control logic, receives from external data receiving end RxD and receives the data of coming, and in inside string and conversion, is put on the data register, waits for that the primary controller on the internal bus is taken away; Because synchronous serial ports controller has only a system interface,, can't support dual-bus structure so can only be connected with a system bus.
In the system architecture sketch that has only a system bus of the prior art shown in Figure 2, system bus is responsible for the various piece of chip internal is linked together; Central processing unit links to each other with this system bus, is responsible for the work of various piece in control and the coordination chip; On system bus, also have a direct memory access (DMA) controller DMA, be responsible for the exchanges data between peripheral hardware and the storer, thereby make the exchange of data not need central processing unit is interrupted; Synchronous serial ports controller also is connected with system bus, in the ordinary course of things, this synchronous serial ports controller has two signal line and outside swap data, article one, be serial data output terminal TxD, article one, be serial data input end RxD, central processing unit or DMA send data by synchronous serial ports controller to the outside, in synchronous serial ports controller, finish and go here and there conversion, send in the mode of serial from serial data output terminal TxD then, equally, the serial data of accepting from the outside, to import with serial mode from serial data input end RxD, data are finished string and conversion in synchronous serial ports controller inside then, and central processing unit or DMA take data away from system bus again; Also hang with an interruptable controller on the system bus, be responsible for the look-at-me of inner each parts of receiving chip, the DMA look-at-me as shown in FIG. and the look-at-me of synchronous serial ports controller, through behind the priority discrimination, a look-at-me is sent to central processing unit by the look-at-me line that is connected between central processing unit and the interruptable controller; Also connected two storeies on system bus, one is chip external memory, mainly is bigger program and the data of storage one tittle; One is on-chip memory, mainly is to deposit the instruction and data that some need high speed and central processing unit to exchange; In DMA transmission data, the control of system bus is occupied alone by DMA, and central processing unit is wanted to inquire about relevant status register or control register is set, and all needs to obtain earlier the control of bus, just can do corresponding operation then.Equally, DMA transmits data if desired, also will obtain the control of system bus earlier, could transmit data then.Central processing unit and DMA can not work simultaneously like this, and overall system efficiency has been lost a lot in the mutual transmission of bus control right.And, all can have a strong impact on the performance of system to the repeatedly interruption of central processing unit.
The centre of two dotted lines shown in Figure 3 is the interface sections with synchronous serial ports controller of two system bus interfaces, is the signal wire of two system bus interfaces at last dotted line with top, and following dotted line is the internal logic of synchronous serial ports controller with the lower part.Realizing supporting that the interface section is the key component of total in the process of dual bus interface, the internal logic part of synchronous serial ports controller is little with existing universal architecture difference.Article one, the signal wire of system bus has: the chip selection signal Ccs of article one system bus, and when article one system bus was chosen synchronous serial ports controller, this signal was effective; Article one, the address signal Caddr of system bus, this is a bus signals, when chip selection signal was effective, this signal provided the offset address of register for synchronous serial ports controller inside; Article one, the read-write Cwr of system bus, this signal are that explanation is read inner operation registers or write (high level is a write operation, and low level is read operation); Article one, the data-signal Cdata of system bus, this signal is a two-way data bus, when the register to synchronous serial ports controller inside carries out write operation, this bus provides the data that write, when from the synchronous serial ports controller read data time, the data that the asynchronous and synchronous serial ports controller is read central processing unit are put on the data bus, and then, central processing unit is taken away from bus.The signal wire of second system bus has: the chip selection signal Dcs of second system bus, choose synchronous serial ports controller when the second system bus, and this signal is effective; The address signal Daddr of second system bus, this is a bus signals, when chip selection signal is effective, this signal provides the offset address of register for synchronous serial ports controller inside, because the second system bus can only carry out read-write operation to the data register of synchronous serial ports controller, so the register of other beyond this address bus is chosen data register can not form actual operation to inside; The read-write Dwr of second system bus, this signal are that explanation is read or write (high level is a write operation, and low level is read operation) inner operation registers; The data-signal Ddata of second system bus, this signal is a two-way data bus, when the register to synchronous serial ports controller inside carries out write operation, this bus provides the data that write, when from the synchronous serial ports controller read data time, the asynchronous and synchronous serial ports controller is put into the data that direct memory access (DMA) controller DMA reads on the data bus, is taken away from bus by DMA then.
The internal logic of synchronous serial ports controller comprises that synchronous serial ports controller inner control logic, data send logic and Data Receiving logic, the function of this part mainly is to introduce data and control signal that interface logic is changed inner, finish the also string conversion of data, send to the outside by serial data output terminal (TxD) then.The data of outside serial input are come in from serial data receiving end (RxD) sampling, after going here and there then and changing, wait for reading of main equipment (central processing unit or DMA), wherein, synchronous serial ports controller inner control logic major function is to preserve the major control signal of central processing unit to synchronous serial ports controller, send the corresponding status signal of logic and Data Receiving logic then by reading of data, generate some inner control signals and control the running of synchronous serial ports controller, most of status information of the inside of in store synchronous serial ports controller of while, inquiry in order to central processing unit, the input signal of synchronous serial ports controller internal control register has: steering logic enable signal Cen, this signal are that first interface logic produces; Steering logic read-write Cwr, this signal is exactly the read-write Cwr steering logic address bus Caddr of article one system bus, this bus signals provides the offset address of internal control and status register, and this signal is connected on the address bus Caddr of article one system bus; Steering logic write data bus CdataW, this signal are that direct data bus Cdata from article one system bus fetches, and are used for to inner control register value of writing; Output signal has steering logic read data bus CdataR, and this signal is received in the 4th interface logic, is used for the value that central processing unit reads the synchronous serial ports controller internal register; Data send logic control signal, and the synchronous serial ports controller inner control logic sends the work of logic by this group signal control data; The Data Receiving logic control signal, the synchronous serial ports controller inner control logic is by the work of this group signal control data receive logic; The function that data send logic mainly is under the control of inner control logic, preservation writes the outside data that mail to of synchronous serial ports controller from system data bus, the also string conversion of data is finished in control, passes through serial data output port TxD according to the requirement of frame format, sends to the outside; Input signal has: data register write data enable signal DrWen, this signal are generated by the 3rd interface logic; Data register write data bus DrdataW, this signal are produced by the 3rd interface logic, are inner write data buss; Data send logic control signal, and this signal is to be produced by the synchronous serial interface inner control logic; Output signal has serial data output port TxD, and synchronous serial ports controller sends to outside serial data and sends to outside from this port.The major function of Data Receiving logic is under the control of inner control logic, pass through serial data input port RxD sampling external series data according to the requirement of certain frame format, after the string and conversion of data finished in control, be kept in the inner impact damper, wait for that central processing unit or DMA come to read the data that these sample from the outside by data register read data bus DrdataR, the signal of input has: data register is read enable signal DrRen, and this signal comes from the 3rd steering logic; The Data Receiving logic control signal, this signal comes from the synchronous serial interface inner control logic; Input serial data signal RxD, this signal are the serial data input ends of outside input synchronous serial ports controller; Output signal is data register read data bus DrdataR.
Because in synchronous serial ports controller, the read-write of data register has two sources, be central processing unit and DMA, and control and status register have only a source, be exactly central processing unit, so in synchronous serial ports controller, need the read-write of the read-write inlet of data register and state of a control register inlet is separately controlled.In order to adapt to this needs, the interface section of the synchronous serial ports controller that the present invention constructed comprises five parts, i.e. first interface logic, second interface logic, the 3rd interface logic, the 4th interface logic and the 5th interface logic: the effect of first interface logic is by chip selection signal Ccs and address signal Caddr from the input of article one system bus, generate inner control logic enable signal Cen, article one system bus data register enable signal 301, article one system bus read-write enable signal 302; These several signals are to produce like this: when the sheet choosing effectively, and address signal is not the address of data register, Cen is effective for the inner control logic enable signal, other situations are invalid; When sheet choosing effectively, and address signal is the address of data register, article one system bus data register enable signal 301 is effective, other situations are invalid; When sheet choosing effectively and be that bus is to read when effective, article one system bus read-write enable signal 302 is effective.The internal logic of the 4th interface logic is one group of alternative selector switch and three-state buffer, two selection signals of its input are respectively steering logic read data bus CdataR and data register read data bus DrdataR, the selecting side is article one system bus data register enable signal 301 that comes from first interface logic, when this Enable Pin when being effective, the data register output bus is strobed into the output terminal of selector switch; When individual Enable Pin when being invalid, the steering logic data-out bus is strobed into the output terminal of selector switch, this output terminal is received the data input pin of three-state buffer, read enable signal when effective when what come from first interface logic, open three-state buffer, be connected on the data bus Cdata, connect otherwise disconnect.The function of second interface logic is similar with first interface logic, and the effect of second interface logic is by chip selection signal Dcs, address signal Daddr, second system bus data register enable signal 303, second system bus read-write enable signal 304 from the input of second system bus; When sheet choosing effectively, and address signal is the address of data register, second system bus data register enable signal 303 is effective, other situations are invalid; When sheet choosing effectively and be that bus is to read when effective, second system bus read-write enable signal 304 is effective, other situations are invalid.The inside of the 5th interface logic is a three-state buffer, and when the second system bus data register enable signal 303 that comes from second interface logic and second system bus read-write enable signal 304 all effectively the time, three-state buffer is open-minded; When this condition was false, three-state buffer disconnected.The input signal of the 3rd interface logic has: the model selection position that the CPUDMA register sends, the data bus Cdata of article one system bus, the data bus Ddata of second system bus, article one system bus data register enable signal 301, second system bus data register enable signal 303, article one system bus read-write Cwr, second system bus read-write Dwr; The signal of output has data register write data bus DrdataW, data register to write enable signal DrWen and data register is read enable signal Ren.The effect of CPUDMA register is that memory module is selected the position, with the visit of selecting data register is to be finished or DMA finishes by central processing unit, because the read and write of the data device of SYN register all can change internal state, and be irrecoverable, so prevent the write access unauthorized to the data register, this task is finished in this model selection position: be 0 after resetting, expression is the central processing unit visit, under this set, if DMA visits data register, can not produce actual operation; When this position was set to 1, expression was the DMA access mode, had only DMA to visit data register and just can produce actual effect, if central processing unit visits data register, will can not produce actual operation.But under this set, whether just at the visit data register, central processing unit can visit control register and status register by article one system bus regardless of DMA.When being set to central processor model, the data bus Cdata of article one system bus is connected on the data register write data bus DrdataW, when being set to dma mode, the data bus Ddata of second system bus is connected on the data register write data bus DrdataW.When the read-write Dwr of the read-write Cwr of article one system bus and second system bus is a write operation during at high level, when when low level, being read operation, model selection position in described CPUDMA register is selected under the situation of cpu mode, and the system bus data register enable signal (301) of article one system bus and article one system bus read-write Cwr carry out AND-operation and be connected to data register afterwards and write on the enable signal DrWen; Article one, the inversion signal of the system bus data register enable signal (301) of system bus and article one system bus read-write Cwr carries out being connected to data register after the AND-operation and reads on the enable signal DrRen.Model selection position in described CPUDMA register is selected under the situation of dma mode, and the bus data register enable signal (303) of second system bus and second system bus read-write Dwr carry out AND-operation and be connected to data register afterwards and write on the enable signal DrWen; The inversion signal of the bus data register enable signal (303) of second system bus and second system bus read-write Dwr carries out being connected to data register after the AND-operation and reads on the enable signal DrRen.When the read-write Dwr of the read-write Cwr of article one system bus and second system bus is read operation during at high level, when being write operation when low level, model selection position in described CPUDMA register is selected under the situation of cpu mode, and the inversion signal of the system bus data register enable signal (301) of article one system bus and article one system bus read-write Cwr carries out AND-operation and is connected to data register afterwards and writes on the enable signal DrWen; Article one, the system bus data register enable signal (301) of system bus and article one system bus read-write Cwr carry out being connected to data register after the AND-operation and read on the enable signal DrRen.Model selection position in described CPUDMA register is selected under the situation of dma mode, and the inversion signal of the bus data register enable signal (303) of second system bus and second system bus read-write Dwr carries out AND-operation and is connected to data register afterwards and writes on the enable signal DrWen; The bus data register enable signal (303) of second system bus and second system bus read-write Dwr carry out being connected to data register after the AND-operation and read on the enable signal DrRen.
The course of work is such: the model selection position that is provided with in the CPUDMA register is a central processor model: when central processing unit visits the state of a control register of synchronous serial ports controller, Cen is effective for the steering logic enable signal, and central processing unit can carry out read and write access to the state of a control register of inside.At this moment article one system bus data register enable signal 301 is invalid, and reading enable signal DrWen and writing enable signal DrRen of data register all can not be effective, even DMA visits data register.So just protected the content of data register can be by the DMA unauthorized access.If the address of central processing unit transmission at this moment is a data register, steering logic enable signal Cen is just invalid, can be to the state of a control register access, at this moment read enable signal DrWen and write enable signal DrRen and can connect the corresponding signal of article one system bus, finish article one system bus to the data operation registers, and can not manage the signal that the second system bus comes; Model selection position in setting the CPUDMA register is direct memory access (DMA) (DMA) pattern: when the address that DMA sends is the state of a control register of synchronous serial ports controller, because no matter the part of the decoding in second interface logic is the address beyond the data register, so even the address that DMA sends is the address of state of a control register, can not produce actual operation yet, can not influence the state of synchronous serial ports controller inside.When DMA send be the signal of data register the time, the corresponding enable signal of second interface logic is effective, the corresponding signal of the 5th interface logic is effective, the switch of the 3rd interface logic switches to the direction that connects the second system bus, make the 3rd interface logic generation data register write data enable signal DrWen, data register write data bus DrdataW and write enable signal DrRen and all produce by the second system bus, and then finish visit to inner data register.If at this moment the central processing unit address of sending is the address of data register, because the switch of the 3rd interface logic all turns to the second system bus here, even, can the data register of inside not exerted an influence so at this moment the central processing unit address of sending is the address of data register yet.When DMA is to the data register access, if central processing unit access control status register, because the control signal data signal is from first interface logic, second interface logic produces, so can not have influence on second interface logic, the 3rd interface logic, the 5th interface logic.This moment is to the data operation registers, so central processing unit can be to the state of a control register access of inside, thereby has realized the concurrency of operation.Need to prove, the agreement that the synchronous serial ports controller that the present invention constructed is supported comprises SPI (the Synchronous Port Interface of Motorola Inc., synchronous serial interface) microwire (glass-coated microwire interface) agreement of agreement, national semiconductor (NationalSemiconductor) company, also can be (the TexasInstruments of TI company, TIX) SSI (Synchronous Serial Interface, synchronous serial interface) agreement.
Two system buss shown in Figure 4: article one system bus and second system bus, be responsible for each parts of chip internal are linked together; Article one, the main equipment on the system bus has only 1, is exactly central processing unit, and central processing unit is by each parts in article one system bus initialization system; Main equipment on the second system bus is DMA, and it controls the transmission of the data stream of second system bus.Article one, connected a central processing unit on the system bus, central processing unit is controlled the work of coordinating each parts in the chip by article one system bus, and the state of the status register of each parts is provided with control register in the inquiry system; Also has a direct memory access (DMA) parts DMA in the system, be responsible for the data between peripheral hardware and the storer are directly exchanged, exchange without each data all will be interrupted central processing unit, DMA is connecting two system buss, article one, system bus is to be used for central processing unit to come initialization DMA and the state of inquiring about DMA, behind the good DMA of central processing unit initialization, DMA just can finish the exchanges data of storer and synchronous serial ports controller by the second system bus; Also has a synchronous serial ports controller in the system, generally speaking, synchronous serial ports controller has two signal line and chip exterior swap data, article one, be serial data output terminal TxD, article one, be serial data input end RxD, central processing unit or DMA send to the data of chip exterior by synchronous serial ports controller, in synchronous serial ports controller, finish and go here and there conversion, sending from the TxD serial of serial data output terminal then, the same serial data of accepting from the outside, to hold the serial input from RxD, data are finished string and conversion in synchronous serial ports controller inside then, central processing unit or DMA take away from bus again, in the structure that two system buss are arranged, central processing unit can send the data that will send to the outside to the synchronous serial ports controller data register by article one system bus, also can receive the data that the outside receives synchronous serial ports controller in central processing unit or the storer by article one system bus.DMA can write the data that will send to the outside to the synchronous serial ports controller data register by the second system bus, also can receive the Data Receiving of synchronous serial ports controller to the outside in storer by the second system bus; On the chip internal system bus, also have an interruptable controller to be responsible for accepting the look-at-me of each parts of chip internal, as scheme the look-at-me of DMA, the look-at-me of synchronous serial ports controller, through behind the priority discrimination, a look-at-me is sent to central processing unit by the look-at-me line that is connected between central processing unit and the interruptable controller; Also connected two storeies on system bus, these two storeies all are connected with two system buss, and one is chip external memory, mainly are bigger program and the data of storage one tittle; One is on-chip memory, mainly is to deposit the instruction and data that some need high speed and central processing unit to exchange; The function of two interfaces of the dual bus interface of synchronous serial ports controller is distinguishing; An interface is used to central processing unit, central processing unit both can be provided with the internal register of synchronous serial ports controller by this bus, the state of inquiry internal register, can also write the data that outwards send in the data register of synchronous serial ports controller by this bus, synchronous serial ports controller is received the data of coming receive central processing unit inside from the outside, or write in the storer by this bus interface.Another interface is to the DMA special use, the internal register of synchronous serial ports controller can not be set by this interface and corresponding system bus, can not inquire about the state of internal register, can only by this bus the data that outwards send from memory write to the synchronous serial ports controller data register, synchronous serial ports controller is received the data of coming receive the storer from the outside by this bus interface.
The transmission course of whole data with synchronous serial ports controller of dual bus interface is such: central processing unit is by behind the good DMA of article one system bus initialization, with regard to the initialization synchronous serial ports controller, it is set to central processor model or DMA pattern, there is a bit pattern to select the position in the CPUDMA register of synchronous serial ports controller inside, when being set to central processing unit, the transmission of synchronous serial ports controller is interrupted and receives interrupting all can sending to interruptable controller, central processing unit is learnt interrupt source by the interrupt status register of inquiry interruptable controller and synchronous serial ports controller then, finishes corresponding data by article one system bus then and sends and receiving function.When being set to dma mode, the transmission of synchronous serial ports controller is interrupted and receives interrupting just can not sent to interruptable controller, but directly sends to the corresponding controling end of DMA.When synchronous serial ports controller sends interruption or receive the condition establishment of interrupting, just send out corresponding transmission interruptive port from interruption to DMA or reception interruptive port, after DMA received corresponding look-at-me, DMA just sent or receives data by the second system bus from synchronous serial ports controller.When DMA sends or receives data, the work that central processing unit can walk abreast.In the time of DMA and synchronous serial ports controller swap data, central processing unit can be inquired about the status register of synchronous serial ports controller simultaneously, or write control register like this, does not carry out and need not wait DMA to finish the right to use that obtains system bus after the data transmission again.

Claims (13)

1, a kind of synchronous serial ports controller, comprise that synchronous serial ports controller inner control logic, data send logic and Data Receiving logic, it is characterized in that, also comprise first interface logic, second interface logic, the 3rd interface logic, the 4th interface logic, the 5th interface logic and CPUDMA register;
Described first interface logic receives chip selection signal Ccs, read-write Cwr and the address signal Caddr of article one system bus, the inner control logic enable signal Cen that generates sends to described synchronous serial ports controller inner control logic, article one system bus read-write enable signal (302) that generates sends to described the 4th interface logic, and article one system bus data register enable signal (301) of generation sends to described the 3rd interface logic and the 4th interface logic respectively;
Described the 4th interface logic receives the steering logic read data bus signal CdataR that is sent by the synchronous serial ports controller inner control logic, and the data register read data bus signal DrdataR that sends the logic transmission by data, its selecting side receives the second system bus data register enable signal (303) that sends from described first interface logic, and its output terminal is connected on the data bus Cdata;
Described second interface logic receives chip selection signal Dcs, the address signal Daddr of second system bus of second system bus transmission and the read-write Dwr of second system bus, the second system bus data register enable signal (303) that generates sends to described the 3rd interface logic and the 5th interface logic, and the second system bus read-write enable signal (304) of generation sends to described the 5th interface logic;
Described the 5th interface logic receives second system bus data register enable signal (303) and the second system bus read-write enable signal (304) that described second interface logic sends, receive data bus signal DrdataR from the Data Receiving logic, send it to the data bus Ddata in the second system bus;
It still is the DMA pattern that described the 3rd interface logic is selected to use central processor model by described CPUDMA register controlled, receive the data bus Cdata of article one system bus, the data bus Ddata of second system bus, article one, system bus data register enable signal (301), second system bus data register enable signal (303), article one, the read-write Dwr of the read-write Cwr of system bus and second system bus, write enable signal DrWen to described data transmission logic output data register write data bus DrdataW and data register, read enable signal Ren to described Data Receiving logic transmitting data register;
Described read-write Cwr, address signal Caddr directly are connected with CdataW with corresponding port Cwr, the Caddr of described synchronous serial ports controller inner control logic respectively with data bus Cdata.
2, synchronous serial ports controller according to claim 1 is characterized in that, described the 4th interface logic is made of one group of alternative selector switch and three-state buffer.
3, synchronous serial ports controller according to claim 1 is characterized in that, described the 5th interface logic adopts a three-state buffer.
4, synchronous serial ports controller according to claim 3 is characterized in that, described three-state buffer when second system bus data register enable signal (303) and second system bus read-write enable signal (304) all open-minded effectively the time.
5, synchronous serial ports controller according to claim 1 is characterized in that, has only a bit pattern to select the position in the described CPUDMA register, and controlling described the 3rd interface logic selection central processor model still is the DMA pattern.
6, synchronous serial ports controller according to claim 5, it is characterized in that, select under the situation of DMA pattern in described the 3rd interface logic of described CPUDMA register controlled, central processing unit can visit control register and status register by article one system bus when DMA visit data register.
7, synchronous serial ports controller according to claim 1 is characterized in that, the read-write Cwr of article one system bus and the read-write Dwr of second system bus are write operation when high level, are read operation when low level.
8, synchronous serial ports controller according to claim 9, it is characterized in that, when cpu mode was selected in the model selection position in the described CPUDMA register, the system bus data register enable signal (301) of article one system bus and article one system bus read-write Cwr carried out AND-operation and are connected to data register afterwards and write on the enable signal DrWen; Article one, the inversion signal of the system bus data register enable signal (301) of system bus and article one system bus read-write Cwr carries out being connected to data register after the AND-operation and reads on the enable signal DrRen.
9, synchronous serial ports controller according to claim 9, it is characterized in that, when dma mode was selected in the model selection position in the described CPUDMA register, the bus data register enable signal (303) of second system bus and second system bus read-write Dwr carried out AND-operation and are connected to data register afterwards and write on the enable signal DrWen; The inversion signal of the bus data register enable signal (303) of second system bus and second system bus read-write Dwr carries out being connected to data register after the AND-operation and reads on the enable signal DrRen.
10, synchronous serial ports controller according to claim 1 is characterized in that, the read-write Cwr of article one system bus and the read-write Dwr of second system bus are read operation when high level, are write operation when low level.
11, synchronous serial ports controller according to claim 12, it is characterized in that, when cpu mode was selected in the model selection position in the described CPUDMA register, the inversion signal of the system bus data register enable signal (301) of article one system bus and article one system bus read-write Cwr carried out AND-operation and is connected to data register afterwards and writes on the enable signal DrWen; Article one, the system bus data register enable signal (301) of system bus and article one system bus read-write Cwr carry out being connected to data register after the AND-operation and read on the enable signal DrRen.
12, synchronous serial ports controller according to claim 12, it is characterized in that, when dma mode was selected in the model selection position in the described CPUDMA register, the inversion signal of the bus data register enable signal (303) of second system bus and second system bus read-write Dwr carried out AND-operation and is connected to data register afterwards and writes on the enable signal DrWen; The bus data register enable signal (303) of second system bus and second system bus read-write Dwr carry out being connected to data register after the AND-operation and read on the enable signal DrRen.
13, synchronous serial ports controller according to claim 1 is characterized in that, the agreement that this synchronous serial ports controller is supported is SPI agreement, microwire agreement and SSI sync cap agreement.
CN 01107464 2001-01-18 2001-01-18 Synchronous serial ports controller Expired - Fee Related CN1191532C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 01107464 CN1191532C (en) 2001-01-18 2001-01-18 Synchronous serial ports controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 01107464 CN1191532C (en) 2001-01-18 2001-01-18 Synchronous serial ports controller

Publications (2)

Publication Number Publication Date
CN1366250A true CN1366250A (en) 2002-08-28
CN1191532C CN1191532C (en) 2005-03-02

Family

ID=4656392

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 01107464 Expired - Fee Related CN1191532C (en) 2001-01-18 2001-01-18 Synchronous serial ports controller

Country Status (1)

Country Link
CN (1) CN1191532C (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639516A (en) * 2008-07-31 2010-02-03 华为技术有限公司 Data processing method, controller and system
CN102129417A (en) * 2011-03-10 2011-07-20 西北工业大学 Method and device for high-speed communication between computer and digital signal controller
CN104809094A (en) * 2015-05-25 2015-07-29 中国电子科技集团公司第四十七研究所 SPI (Serial Peripheral Interface) controller and communication method for SPI controller
CN105955764A (en) * 2016-04-22 2016-09-21 佛山市南海区欧谱曼迪科技有限责任公司 An improved method of burning STM32 MCU IAP serial port program
CN114036096A (en) * 2021-11-04 2022-02-11 珠海一微半导体股份有限公司 Read controller based on bus interface

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102841870B (en) * 2012-08-10 2015-04-15 无锡众志和达数据计算股份有限公司 General direct memory access (DMA) structure based on high-speed serial bus and pre-read method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639516A (en) * 2008-07-31 2010-02-03 华为技术有限公司 Data processing method, controller and system
CN102129417A (en) * 2011-03-10 2011-07-20 西北工业大学 Method and device for high-speed communication between computer and digital signal controller
CN104809094A (en) * 2015-05-25 2015-07-29 中国电子科技集团公司第四十七研究所 SPI (Serial Peripheral Interface) controller and communication method for SPI controller
CN104809094B (en) * 2015-05-25 2017-11-24 中国电子科技集团公司第四十七研究所 SPI controller and its communication means
CN105955764A (en) * 2016-04-22 2016-09-21 佛山市南海区欧谱曼迪科技有限责任公司 An improved method of burning STM32 MCU IAP serial port program
CN114036096A (en) * 2021-11-04 2022-02-11 珠海一微半导体股份有限公司 Read controller based on bus interface
CN114036096B (en) * 2021-11-04 2024-05-03 珠海一微半导体股份有限公司 Read controller based on bus interface

Also Published As

Publication number Publication date
CN1191532C (en) 2005-03-02

Similar Documents

Publication Publication Date Title
CN110347635B (en) A Heterogeneous Multicore Microprocessor Based on Multilayer Bus
CN109308283B (en) SoC (system on chip) system and peripheral bus switching method thereof
CN101477512B (en) Processor system and its access method
US7970960B2 (en) Direct memory access controller and data transmitting method of direct memory access channel
CN202404581U (en) Priority adjustable multi-channel dma controller
CN101996147A (en) Method for realizing dual-port RAM (Random-Access memory) mutual exclusion access
CN109189716A (en) A kind of data transmission system and transmission method based on FPGA
JP2003084919A (en) Disk array device control method and disk array device
WO2002021290A1 (en) Inter-processor communication system
CN1191529C (en) General asynchronous serial port controller
CN102193888B (en) Data transmission system and programmable serial peripheral interface controller
CN1191532C (en) Synchronous serial ports controller
US5297255A (en) Parallel computer comprised of processor elements having a local memory and an enhanced data transfer mechanism
JP4323241B2 (en) Memory controller for increasing bus bandwidth, data transmission method using the same, and computer system including the same
CN1293494C (en) Communication interface of master-slave type processor system
KR100329968B1 (en) Cache controller having dual-port transaction buffers
CN109564562A (en) Big data operation acceleration system and chip
CN109522251A (en) A kind of high-speed synchronous serial port board and its working method based on PXIe bus
CN101655825A (en) Device for achieving LPC-USB two-way communication by using FPGA and data conversion method of LPC-US and USB-LPC
US20040151175A1 (en) Transparent data format within host device supporting differing transaction types
CN110413536B (en) High-speed parallel NandFlash storage device with multiple data formats
JPH09506731A (en) Bus structure for multiprocessor systems
CN1191530C (en) PCI bridge with improved structure
WO2025112106A1 (en) Post-quantum cryptographic algorithm processor and system-on-chip comprising same
CN101122894A (en) Asynchronous serial communication control device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee

Owner name: GUOMING TECHNOLOGY CO., LTD.

Free format text: FORMER NAME: ZHONGXING INTEGRATED CIRCUIT DESIGN CO. LTD., SHENZHEN CITY

CP03 Change of name, title or address

Address after: Floor nine, technology innovation service center, 1 Qilin Road, Guangdong, Shenzhen Province, China: 518058:

Patentee after: NATIONZ TECHNOLOGIES Inc.

Address before: Floor nine, technology innovation service center, 1 Qilin Road, Guangdong, Shenzhen Province, China: 518058:

Patentee before: Nationz Technologies Inc.

Address after: 518058, three, 2 Software Park, hi tech Zone, Shenzhen hi tech Zone, Guangdong, Nanshan District Province, three, three

Patentee after: Nationz Technologies Inc.

Address before: Floor nine, technology innovation service center, 1 Qilin Road, Guangdong, Shenzhen Province, China: 518058:

Patentee before: Nationz Technologies Inc.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20050302

Termination date: 20150118

EXPY Termination of patent right or utility model