CN101119179B - Transmission system - Google Patents
Transmission system Download PDFInfo
- 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
Links
Images
Landscapes
- Communication Control (AREA)
Abstract
Description
技术领域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
传送装置14包括缓存单元142、储存单元144以及传输单元146。缓存单元142储存一停止值SS。储存单元144储存数据D1及D2。传输单元146采集数据D1传送给接收装置12,并且根据停止值SS,等待一预设时间后,再采集数据D2传送给接收装置12。The
图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
位计数器32根据时钟信号SCLK开始计数。在本实施例中,时钟信号SCLK是由一时钟产生器148所产生。当位计数器32计数至一第一默认值时,则输出位触发信号ST1给字节计数器34以及控制器38。当控制器38接收到位触发信号ST1时,则开始接收数据D1的启始位20。The
在本实施例中,位计数器32计数至第一默认值的时间等于数据D1的单一位的持续时间T。因此,当控制器38接收完数据D1的启始位20时,位计数器32会再次输出位触发信号ST1,使得控制器38继续采集数据D1的数据位21,并将数据D1的启始位20输出至接收装置14。In this embodiment, the time for the
在位计数器32输出位触发信号ST1时,字节计数器34根据位触发信号ST1开始计数。当字节计数器34计数至一第二默认值时,则输出字节触发信号ST2,用以触发延迟计数器36,并使控制器38停止采集储存单元144中的数据。When the
在本实施例中,字节计数器34计数到第二默认值的时间等于数据D1的总时间10T。当字节计数器34计数到第二默认值时,由于控制器38已采集完数据D1的所有位,并已将数据D1传送至接收装置12,因此暂停控制器38的采集动作。In this embodiment, the time for counting up to the second default value by the
在字节计数器34输出字节触发信号ST2后,延迟计数器36开始计数。当延迟计数器36计数至一第三默认值时,则输出延迟触发信号ST3,使得控制器38开始采集储存单元144中的数据D2。After the byte counter 34 outputs the byte trigger signal ST2 , the
在本实施例中,当控制器38接收到字节触发信号ST2时,则会暂存采集储存单元144;当控制器38接收到延迟触发信号ST3时,则会开始采集储存单元144。因此,延迟计数器36计数至第三默认值的时间等于控制器38暂停的时间。In this embodiment, when the
由于传输单元146可编程两数据之间的间隔时间,以符合智能卡的要求,并且无需软件计时,因而降低系统的资源消耗,同时也避免了中央处理器因繁忙而来不及将数据发送至传送装置14,而造成智能卡超时的问题。Since the
虽然本发明已以较佳实施例揭露如上,然其并非用以限定本发明,任何熟习此技艺者,在不脱离本发明的精神和范围内,当可作少许的更动与润饰,因此本发明的保护范围当视申请专利范围所界定者为准。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)
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)
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 |
-
2006
- 2006-08-02 CN CN2006101083524A patent/CN101119179B/en not_active Expired - Fee Related
Patent Citations (4)
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 |