[go: up one dir, main page]

CN101119179B - Transmission system - Google Patents

Transmission system Download PDF

Info

Publication number
CN101119179B
CN101119179B CN2006101083524A CN200610108352A CN101119179B CN 101119179 B CN101119179 B CN 101119179B CN 2006101083524 A CN2006101083524 A CN 2006101083524A CN 200610108352 A CN200610108352 A CN 200610108352A CN 101119179 B CN101119179 B CN 101119179B
Authority
CN
China
Prior art keywords
data
counting
transmission system
controller
counter
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.)
Expired - Fee Related
Application number
CN2006101083524A
Other languages
Chinese (zh)
Other versions
CN101119179A (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.)
Ali Corp
Original Assignee
Ali Corp
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 Ali Corp filed Critical Ali Corp
Priority to CN2006101083524A priority Critical patent/CN101119179B/en
Publication of CN101119179A publication Critical patent/CN101119179A/en
Application granted granted Critical
Publication of CN101119179B publication Critical patent/CN101119179B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

A transmission system includes a receiving device and a transmitting device. The transmitting device is used for transmitting a first data and a second data to the receiving device and comprises a buffer unit, a storage unit and a transmission unit. The buffer unit is used for storing a stop value. The storage unit stores a first data and a second data. The transmission unit collects the first data and transmits the first data to a receiving device, and then collects the second data and transmits the second data to the receiving device after waiting for a preset time according to the stop value.

Description

传输系统 Transmission system

技术领域technical field

本发明是有关于一种传输系统,特别是有关于一种可编程(programmable)延迟时间的传输系统。The present invention relates to a transmission system, in particular to a transmission system with programmable delay time.

背景技术Background technique

在系统芯片(system on chip)中,通常都会附加传送装置,以进行系统通信。一般常见的传送装置为通用异步收发器(Universal AsynchrorousReceiver/Transmitter;以下简称UART)。在机顶盒(Set Top Box;STB)的系统芯片中,UART常被应用在条件接收(Conditional Access;CA)系统中,作为智能卡(smart card、IC card、7816 card)的控制器。In a system on chip (system on chip), a transmission device is usually attached for system communication. A common transmission device is a Universal Asynchronous Receiver/Transmitter (hereinafter referred to as UART). In the system chip of the set-top box (Set Top Box; STB), UART is often used in the conditional access (Conditional Access; CA) system as the controller of the smart card (smart card, IC card, 7816 card).

在此系统中,若使用非先入先出(First-In First-Out;FIFO)模式进行数据传输时,很容易发生系统数据消耗大、中断多等缺点。若使用先入先出模式时,智能卡通常要求在UART在发送数据时,需在两字节之间具有一固定的间隔时间。In this system, if the non-First-In First-Out (FIFO) mode is used for data transmission, it is easy to cause the disadvantages of large system data consumption and many interruptions. If the first-in-first-out mode is used, the smart card usually requires a fixed interval between two bytes when the UART sends data.

然而在公知的字节中,每一字节可具有一个或二个停止位。因此在字节之间的间隔时间为一个或二个停止位的持续时间。智能卡要求的间隔时间通常大于二个停止位的持续时间。However, in known bytes, each byte can have one or two stop bits. The interval between bytes is therefore the duration of one or two stop bits. The interval time required by smart cards is usually greater than the duration of two stop bits.

公知的解决方式是利用软件来控制两位组之间的间隔时间。然而,当中央处理器(CPU)为繁忙的状态,或是在发送的数据特别多的状况下,很容易造成两字节之间的间隔时间过长,使得智能卡发生超时(timeout),因而导致解错误等问题。A known solution is to use software to control the interval between two bit groups. However, when the central processing unit (CPU) is in a busy state, or in the case of sending a large amount of data, it is easy to cause the interval between two bytes to be too long, causing the smart card to timeout (timeout), thus causing Troubleshoot errors etc.

发明内容Contents of the invention

为解决目前现有技术中存在的上述问题,本发明提供一种传输系统,包括一接收装置以及一传送装置。传送装置用以传送一第一及第二数据传送给接收装置,并包括一缓存单元、一储存单元以及一传输单元。缓存单元用以储存一停止值。储存单元储存一第一数据以及一第二数据。传输单元采集第一数据传送给一接收装置,并且根据停止值,等待一预设时间后,再采集第二数据传送给接收装置。In order to solve the above-mentioned problems existing in the prior art, the present invention provides a transmission system, which includes a receiving device and a transmitting device. The transmitting device is used for transmitting a first and a second data to the receiving device, and includes a buffer unit, a storage unit and a transmission unit. The cache unit is used for storing a stop value. The storage unit stores a first data and a second data. The transmission unit collects the first data and sends it to a receiving device, and waits for a preset time according to the stop value, and then collects the second data and sends it to the receiving device.

附图说明Description of drawings

图1为本发明的传输系统示意图。Fig. 1 is a schematic diagram of the transmission system of the present invention.

图2为数据D1及D2的传输格式。FIG. 2 is the transmission format of data D1 and D2 .

图3为传输单元的一可能实施例。Fig. 3 is a possible embodiment of the transmission unit.

符号说明:Symbol Description:

12:接收装置;      14:传送装置;12: receiving device; 14: transmitting device;

142:缓存单元;     144:储存单元;142: cache unit; 144: storage unit;

146:传输单元;     148:时钟产生器;146: transmission unit; 148: clock generator;

20:启始位;        21~28:数据位;20: start bit; 21~28: data bit;

29:同位位;        32:位计数器;29: parity bit; 32: bit counter;

34:字节计数器;    36:延迟计数器;34: byte counter; 36: delay counter;

38:控制器。38: Controller.

具体实施方式Detailed ways

为让本发明的上述和其它目的、特征、和优点能更明显易懂,下文特举出较佳实施例,并配合所附图式,作详细说明如下:In order to make the above-mentioned and other purposes, features, and advantages of the present invention more clearly understood, the preferred embodiments are specifically listed below, together with the accompanying drawings, and are described in detail as follows:

图1为本发明的传输系统示意图。如图所示,传输系统10包括接收装置12以及传送装置14。传送装置14传送数据给接收装置12,并可控制两数据之间的间隔时间。在本实施例中,传送装置14为一通用异步收发器,以异步方式传送数据D1及D2给接收装置12,其中数据D1及D2间的间隔时间是可被控制的。Fig. 1 is a schematic diagram of the transmission system of the present invention. As shown in the figure, the transmission system 10 includes a receiving device 12 and a transmitting device 14 . The transmitting device 14 transmits data to the receiving device 12, and can control the interval time between two data. In this embodiment, the transmitting device 14 is a UART, which transmits the data D1 and D2 to the receiving device 12 in an asynchronous manner, wherein the interval time between the data D1 and D2 can be controlled.

传送装置14包括缓存单元142、储存单元144以及传输单元146。缓存单元142储存一停止值SS。储存单元144储存数据D1及D2。传输单元146采集数据D1传送给接收装置12,并且根据停止值SS,等待一预设时间后,再采集数据D2传送给接收装置12。The transmission device 14 includes a cache unit 142 , a storage unit 144 and a transmission unit 146 . The buffer unit 142 stores a stop value S S . The storage unit 144 stores data D 1 and D 2 . The transmitting unit 146 collects the data D 1 and transmits it to the receiving device 12 , and waits for a preset time according to the stop value SS before collecting the data D 2 and transmitting it to the receiving device 12 .

图2为数据D1及D2的传输格式。数据D1及D2均包括一启始位(startbit)20、数据位(data bits)21~28以及一同位位(parity bit)29。本发明并不限制数据位的数量,在本实施例中,数据D1及D2的数据位均为八个位。在数据D1及D2中,每一位的持续时间T均相同。FIG. 2 is the transmission format of data D1 and D2 . The data D 1 and D 2 both include a start bit (start bit) 20 , data bits (data bits) 21 - 28 and a parity bit (parity bit) 29 . The present invention does not limit the number of data bits. In this embodiment, the data bits of the data D 1 and D 2 are both eight bits. In the data D1 and D2 , the duration T of each bit is the same.

图3为传输单元的一可能实施例。传输单元146包括,位计数器32、字节计数器34、延迟计数器36以及控制器38。Fig. 3 is a possible embodiment of the transmission unit. The transmission unit 146 includes a bit counter 32 , a byte counter 34 , a delay counter 36 and a controller 38 .

位计数器32根据时钟信号SCLK开始计数。在本实施例中,时钟信号SCLK是由一时钟产生器148所产生。当位计数器32计数至一第一默认值时,则输出位触发信号ST1给字节计数器34以及控制器38。当控制器38接收到位触发信号ST1时,则开始接收数据D1的启始位20。The bit counter 32 starts counting according to the clock signal S CLK . In this embodiment, the clock signal S CLK is generated by a clock generator 148 . When the bit counter 32 counts to a first default value, the bit trigger signal ST1 is output to the byte counter 34 and the controller 38 . When the controller 38 receives the bit trigger signal ST1 , it starts to receive the start bit 20 of the data D1 .

在本实施例中,位计数器32计数至第一默认值的时间等于数据D1的单一位的持续时间T。因此,当控制器38接收完数据D1的启始位20时,位计数器32会再次输出位触发信号ST1,使得控制器38继续采集数据D1的数据位21,并将数据D1的启始位20输出至接收装置14。In this embodiment, the time for the bit counter 32 to count up to the first default value is equal to the duration T of a single bit of the data D1 . Therefore, when the controller 38 has received the start bit 20 of the data D 1 , the bit counter 32 will output the bit trigger signal S T1 again, so that the controller 38 continues to collect the data bit 21 of the data D 1 , and the data D 1 The start bit 20 is output to the receiving device 14 .

在位计数器32输出位触发信号ST1时,字节计数器34根据位触发信号ST1开始计数。当字节计数器34计数至一第二默认值时,则输出字节触发信号ST2,用以触发延迟计数器36,并使控制器38停止采集储存单元144中的数据。When the bit counter 32 outputs the bit trigger signal S T1 , the byte counter 34 starts counting according to the bit trigger signal S T1 . When the byte counter 34 counts to a second default value, the byte trigger signal S T2 is output to trigger the delay counter 36 and make the controller 38 stop collecting data in the storage unit 144 .

在本实施例中,字节计数器34计数到第二默认值的时间等于数据D1的总时间10T。当字节计数器34计数到第二默认值时,由于控制器38已采集完数据D1的所有位,并已将数据D1传送至接收装置12,因此暂停控制器38的采集动作。In this embodiment, the time for counting up to the second default value by the byte counter 34 is equal to the total time 10T of the data D1 . When the byte counter 34 counts to the second default value, since the controller 38 has collected all bits of the data D 1 and transmitted the data D 1 to the receiving device 12 , the collection action of the controller 38 is suspended.

在字节计数器34输出字节触发信号ST2后,延迟计数器36开始计数。当延迟计数器36计数至一第三默认值时,则输出延迟触发信号ST3,使得控制器38开始采集储存单元144中的数据D2After the byte counter 34 outputs the byte trigger signal ST2 , the delay counter 36 starts counting. When the delay counter 36 counts to a third default value, the delay trigger signal ST3 is output, so that the controller 38 starts to collect the data D 2 in the storage unit 144 .

在本实施例中,当控制器38接收到字节触发信号ST2时,则会暂存采集储存单元144;当控制器38接收到延迟触发信号ST3时,则会开始采集储存单元144。因此,延迟计数器36计数至第三默认值的时间等于控制器38暂停的时间。In this embodiment, when the controller 38 receives the byte trigger signal ST2 , it will temporarily store the acquisition and storage unit 144; when the controller 38 receives the delay trigger signal ST3 , it will start to acquire the storage unit 144. Thus, the delay counter 36 counts to the third default value for a time equal to the time the controller 38 pauses.

由于传输单元146可编程两数据之间的间隔时间,以符合智能卡的要求,并且无需软件计时,因而降低系统的资源消耗,同时也避免了中央处理器因繁忙而来不及将数据发送至传送装置14,而造成智能卡超时的问题。Since the transmission unit 146 can program the interval between two data to meet the requirements of the smart card, and does not need software timing, thereby reducing the resource consumption of the system, and also avoiding that the central processing unit is too busy to send the data to the transmission device 14 , resulting in the smart card timeout problem.

虽然本发明已以较佳实施例揭露如上,然其并非用以限定本发明,任何熟习此技艺者,在不脱离本发明的精神和范围内,当可作少许的更动与润饰,因此本发明的保护范围当视申请专利范围所界定者为准。Although the present invention has been disclosed above with preferred embodiments, it is not intended to limit the present invention. Anyone skilled in this art can make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, this The scope of protection of an invention shall be determined by the scope of the patent application.

Claims (9)

1. hardware transmission system comprises:
One receiving system; And
One conveyer, in order to send first and second data to this receiving system, this conveyer comprises:
One buffer unit stops value in order to store one;
One storage element stores this first and second data; And
One transmission unit is gathered these first data and is sent this receiving system to, and according to this value of stopping, waiting for a Preset Time after, gather these second data again and send this receiving system to.
2. hardware transmission system as claimed in claim 1, wherein these first and second data all have ten.
3. hardware transmission system as claimed in claim 2, wherein ten of these first and second data comprise, one opens beginning position, eight data bit and a coordination position.
4. hardware transmission system as claimed in claim 2 also comprises a clock generator, in order to produce a clock signal.
5. hardware transmission system as claimed in claim 4, this transmission unit wherein comprises:
One controller is gathered these ten of these first data earlier and is sent this receiving system to;
One digit counter, when this controller collects of this first data, then begin counting according to this clock signal, when counting up to one first default value, then export a triggering signal, wherein this digit counter time of counting up to this first default value equals the duration of the single position of these first data;
One byte counter, begin counting according to this triggering signal, when counting up to one second default value, then export a byte triggering signal, make this controller stop to gather the data in this storage element, and this byte counter time of counting up to this second default value equal the total time of these first data; And
One delay counter, begin counting according to this byte triggering signal, when counting up to this value of stopping, then export a delayed trigger signal and send this controller to, make its described a plurality of positions that begin to gather these second data, wherein this delay counter time of counting down to this value of stopping equals the time that this controller suspends.
6. hardware transmission system as claimed in claim 5, wherein this controller is to transmit this first and second data with an asynchronous system.
7. hardware transmission system as claimed in claim 6, wherein when this digit counter was exported this triggering signal, then this controller provided this position of these first data that collected to send this receiving system to.
8. hardware transmission system as claimed in claim 6, wherein this conveyer is a UART Universal Asynchronous Receiver Transmitter.
9. hardware transmission system as claimed in claim 6, wherein this delay counter time of counting up to this value of stopping equals this Preset Time.
CN2006101083524A 2006-08-02 2006-08-02 Transmission system Expired - Fee Related CN101119179B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2006101083524A CN101119179B (en) 2006-08-02 2006-08-02 Transmission system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006101083524A CN101119179B (en) 2006-08-02 2006-08-02 Transmission system

Publications (2)

Publication Number Publication Date
CN101119179A CN101119179A (en) 2008-02-06
CN101119179B true CN101119179B (en) 2010-06-09

Family

ID=39055135

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006101083524A Expired - Fee Related CN101119179B (en) 2006-08-02 2006-08-02 Transmission system

Country Status (1)

Country Link
CN (1) CN101119179B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1226773A (en) * 1997-12-31 1999-08-25 深圳市华为技术有限公司 System communication control device in synchronous digital transmission equipment
EP1139590A2 (en) * 2000-03-01 2001-10-04 Matsushita Electric Industrial Co., Ltd. Apparatus for receiving and storing reproduction programs with a high probability of being used for reproduction of audiovisual data
CN1380749A (en) * 2001-04-10 2002-11-20 日本电气株式会社 Phase-lock detecting circuit
CN2716845Y (en) * 2003-09-27 2005-08-10 深圳市东阳光化成箔股份有限公司 Apparatus for waveform detection of power supply

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1226773A (en) * 1997-12-31 1999-08-25 深圳市华为技术有限公司 System communication control device in synchronous digital transmission equipment
EP1139590A2 (en) * 2000-03-01 2001-10-04 Matsushita Electric Industrial Co., Ltd. Apparatus for receiving and storing reproduction programs with a high probability of being used for reproduction of audiovisual data
CN1380749A (en) * 2001-04-10 2002-11-20 日本电气株式会社 Phase-lock detecting circuit
CN2716845Y (en) * 2003-09-27 2005-08-10 深圳市东阳光化成箔股份有限公司 Apparatus for waveform detection of power supply

Also Published As

Publication number Publication date
CN101119179A (en) 2008-02-06

Similar Documents

Publication Publication Date Title
US7418524B2 (en) Universal serial bus (USB) extension
CN103064805B (en) SPI controller and communication means
CN101689209B (en) Method and system for reducing triggering latency in universal serial bus data acquisition
US8051222B2 (en) Concatenating secure digital input output (SDIO) interface
CN101399654A (en) Serial communication method and apparatus
Mahat Design of a 9-bit UART module based on Verilog HDL
CN102567260A (en) Device with multiple UART (universal asynchronous receiver/transmitter) interfaces and method using same
CN104484306A (en) Master-slave synchronous serial communication bus based on differential signal and realization method of master-slave synchronous serial communication bus
CN107153412B (en) A kind of CAN controller circuit with transmission FIFO
CN107771331B (en) Independent UARK BRK detection
CN104427232A (en) Method, device and system for realizing image acquisition
CN103425614B (en) Synchronous serial data dispensing device and method thereof for Single Chip Microcomputer (SCM) system
CN103107862B (en) Logical device and MDIO data transmission method for uplink thereof
US20060184708A1 (en) Host controller device and method
CN202676907U (en) Multichannel weather radar data collecting device
CN101119179B (en) Transmission system
US9319296B2 (en) Methods for embedding an out-of-band signal into a communication protocol capture stream
CN108509365B (en) DBI data transmission method and system
CN202632782U (en) Multi-channel SSI (Small Scale Integration) data acquisition module based on MicroBlaze soft core
CN116418889A (en) USB3.0 data transmission system and method based on FPGA
EP1895426A1 (en) Transmitter and transmitting system utilizing the same
CN115794701A (en) BMC chip and method of DMA function virtual serial port
CN103631740A (en) Method and circuit for achieving self-adaptation byte alignment transmission of SD card under SPI mode
CN102759952B (en) Embedded system
CN103106162B (en) Logical device and MDIO interface communication method thereof

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
EE01 Entry into force of recordation of patent licensing contract

Assignee: ALi (Zhuhai) Corp.

Assignor: ALI CORPORATION

Contract record no.: 2012990000112

Denomination of invention: Collinear phonetic and digital information transmitting system

Granted publication date: 20100609

License type: Exclusive License

Open date: 20080206

Record date: 20120316

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

Granted publication date: 20100609