CN201590076U - An interface expansion circuit and a mobile terminal with the circuit - Google Patents

An interface expansion circuit and a mobile terminal with the circuit Download PDF

Info

Publication number
CN201590076U
CN201590076U CN2010201164203U CN201020116420U CN201590076U CN 201590076 U CN201590076 U CN 201590076U CN 2010201164203 U CN2010201164203 U CN 2010201164203U CN 201020116420 U CN201020116420 U CN 201020116420U CN 201590076 U CN201590076 U CN 201590076U
Authority
CN
China
Prior art keywords
interface
module
main processor
keyboard
gpio
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
CN2010201164203U
Other languages
Chinese (zh)
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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN2010201164203U priority Critical patent/CN201590076U/en
Application granted granted Critical
Publication of CN201590076U publication Critical patent/CN201590076U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

The utility model discloses an interface extending circuit and mobile terminal with the circuit, comprising a main processor and an interface extending module with GPIO ports, wherein the interface extending module is connected with a parallel interface of the main processor by a parallel bus to receive the interface configuration command and data sent from the main processor and connected with a perimeter circuit by the GPIO ports of the interface extending module. The required interface configuration command and data transmission communication are realized between the main processor and the interface configuration command by the parallel communication way and the reading-writing speed is quick and the interface extending circuit and mobile terminal can be flexibly extended according to the requirement of the perimeter circuit for the number of the GPIC interface. When the interface extending circuit and mobile terminal are used in the mobile terminal system such the telephones, not only the required enough GPIC interface resources are provided for continuously increased perimeter circuits, but also the interface extending circuit and mobile terminal respond the operation in good time, such as quick press-key switch performed by the user, thereby improving the work performance of the mobile terminal.

Description

一种接口扩展电路及具有所述电路的移动终端 An interface expansion circuit and a mobile terminal with the circuit

技术领域technical field

本实用新型属于接口扩展技术领域,具体地说,是涉及一种可以对芯片的GPIO接口进行扩展的电路结构以及采用所述接口扩展电路设计的移动终端。The utility model belongs to the technical field of interface expansion, in particular relates to a circuit structure capable of expanding the GPIO interface of a chip and a mobile terminal designed by adopting the interface expansion circuit.

背景技术Background technique

随着手机功能的日益多样化,在进行手机系统电路设计时,需要在手机主处理器外围连接的功能电路越来越多,而且绝大部分外围电路往往需要连接主处理器的GPIO接口来实现与主处理器的协同工作。比如一部包含有16个按键的手机,其键盘扫描电路即需要占用主处理器的8路GPIO接口。但是,一般的手机主处理器所能提供的GPIO接口往往不够用,在智能手机设计时更是如此。这样就需要扩展GPIO接口或者键盘扫描电路来满足日益增多的外围电路的连接需要。而目前可实现GPIO接口扩展的方法有两种:一种是使用专用的扩展芯片,另外一种就是采用可编程逻辑器件如CPLD来实现。With the increasing diversification of mobile phone functions, when designing mobile phone system circuits, more and more functional circuits need to be connected to the periphery of the main processor of the mobile phone, and most of the peripheral circuits often need to be connected to the GPIO interface of the main processor to realize Cooperative work with the main processor. For example, a mobile phone with 16 keys needs to occupy 8 GPIO interfaces of the main processor for its keyboard scanning circuit. However, the GPIO interfaces provided by the general mobile phone main processor are often not enough, especially in the design of smart phones. In this way, it is necessary to expand the GPIO interface or the keyboard scanning circuit to meet the connection needs of an increasing number of peripheral circuits. At present, there are two ways to realize GPIO interface expansion: one is to use a dedicated expansion chip, and the other is to use programmable logic devices such as CPLD to achieve.

但是,目前市场上专用的GPIO接口扩展芯片和可编程逻辑器件,基本上都是基于I2C总线接口的,即通过I2C总线来实现主处理器与接口扩展芯片的连接通信。由于受I2C接口速度的限制,在手机用户快速按键或者玩游戏的时候,就会出现按键反应慢的问题。而且专用扩展芯片使用不灵活,每此设计都需要根据系统所要完成的实际功能,选用不同的扩展芯片,这就造成了电路设计的不延续性。However, the dedicated GPIO interface expansion chips and programmable logic devices currently on the market are basically based on the I 2 C bus interface, that is, the connection and communication between the main processor and the interface expansion chip is realized through the I 2 C bus. Due to the limitation of the speed of the I 2 C interface, when the mobile phone user presses the key quickly or plays a game, there will be a problem of slow key response. Moreover, the use of dedicated expansion chips is inflexible, and each design needs to select different expansion chips according to the actual functions to be completed by the system, which causes discontinuity in circuit design.

实用新型内容Utility model content

本实用新型为了解决现有基于I2C总线的接口扩展电路反应速度慢的问题,提供了一种基于并口通信的接口扩展电路,以提高系统电路的反应速度。In order to solve the problem of slow response speed of the existing I 2 C bus-based interface expansion circuit, the utility model provides an interface expansion circuit based on parallel port communication to improve the response speed of the system circuit.

为解决上述技术问题,本实用新型采用以下技术方案予以实现:In order to solve the above-mentioned technical problems, the utility model adopts the following technical solutions to achieve:

一种接口扩展电路,包括主处理器和具有多路GPIO口的接口扩展模块,所述接口扩展模块通过并行总线连接主处理器的并行接口,接收主处理器发出的接口配置命令和数据,并通过接口扩展模块的GPIO口连接外围电路。An interface expansion circuit, comprising a main processor and an interface expansion module with multiple GPIO ports, the interface expansion module is connected to the parallel interface of the main processor through a parallel bus, receives interface configuration commands and data sent by the main processor, and Connect the peripheral circuit through the GPIO port of the interface expansion module.

进一步的,在所述接口扩展模块中包含有主处理器接口单元、GPIO功能逻辑单元和GPIO配置寄存器、GPIO电平状态寄存器;所述主处理器接口单元通过并行总线连接主处理器的并行接口,根据接收到的接口配置命令和数据向相应的GPIO配置寄存器或者GPIO电平状态寄存器写入数据;所述GPIO功能逻辑单元根据GPIO配置寄存器和GPIO电平状态寄存器中的数据配置相应GPIO口的状态。Further, the interface expansion module includes a main processor interface unit, a GPIO functional logic unit, a GPIO configuration register, and a GPIO level status register; the main processor interface unit is connected to the parallel interface of the main processor through a parallel bus , write data to the corresponding GPIO configuration register or GPIO level status register according to the received interface configuration command and data; the GPIO function logic unit configures the corresponding GPIO port according to the data in the GPIO configuration register and the GPIO level status register state.

又进一步的,所述主处理器接口单元使用检测电平方式的状态机创建并行从接口。Still further, the master processor interface unit uses a state machine in a level detection mode to create a parallel slave interface.

优选的,所述主处理器优选采用其I8080接口作为与接口扩展模块连接通信的并行接口。Preferably, the main processor preferably adopts its I8080 interface as a parallel interface for connecting and communicating with the interface expansion module.

再进一步的,在所述接口扩展模块中包含有键盘扫描逻辑单元和键盘扫描码寄存器,所述键盘扫描逻辑单元连接接口扩展模块上用于连接矩阵键盘电路的GPIO口,在检测到有按键按下时,将按键扫描码传输至所述的键盘扫描码寄存器进行保存,并产生中断信号传输至主处理器的中断接口。Still further, the keyboard scanning logic unit and the keyboard scanning code register are included in the interface expansion module, the keyboard scanning logic unit is connected to the GPIO port of the interface expansion module for connecting the matrix keyboard circuit, and when a key is detected When pressing down, the key scan code is transmitted to the keyboard scan code register for storage, and an interrupt signal is generated and transmitted to the interrupt interface of the main processor.

其中,所述键盘扫描逻辑单元连接主处理器接口单元,将产生的中断信号传输至主处理器接口单元,通过主处理器接口单元连接主处理器的中断接口。Wherein, the keyboard scanning logic unit is connected to the main processor interface unit, transmits the interrupt signal generated to the main processor interface unit, and is connected to the interrupt interface of the main processor through the main processor interface unit.

更进一步的,在所述键盘扫描逻辑单元中包含有行扫描计数器模块、去抖时钟分频模块、去抖动逻辑模块和键盘矩阵扫描模块;所述去抖时钟分频模块接收系统时钟,进行分频后传输至所述去抖动逻辑模块产生去抖同步时钟,进而输出至所述的键盘矩阵扫描模块;所述行扫描计数器模块接收系统时钟,产生计数时钟传输至所述的键盘矩阵扫描模块;所述键盘矩阵扫描模块连接所述接口扩展模块上用于连接矩阵键盘电路的GPIO口,对按键状态进行检测,并在检测到有按键按下时,生成按键扫描码保存到所述的键盘扫描码寄存器,并产生中断信号输出至所述的主处理器。Furthermore, the keyboard scan logic unit includes a row scan counter module, a debounce clock frequency division module, a debounce logic module, and a keyboard matrix scan module; the debounce clock frequency divider module receives the system clock and performs division After frequency transmission to the de-jitter logic module to generate a de-jitter synchronous clock, and then output to the keyboard matrix scanning module; the row scan counter module receives the system clock, generates a count clock and transmits it to the keyboard matrix scanning module; The keyboard matrix scanning module is connected to the GPIO port on the interface expansion module for connecting to the matrix keyboard circuit, detects the key state, and when it is detected that a key is pressed, generates a key scanning code and saves it to the keyboard scanning code register, and generate an interrupt signal output to the main processor.

优选的,所述去抖动逻辑模块由3组同步触发器组成的移位寄存器组成。Preferably, the de-jitter logic module is composed of a shift register composed of 3 groups of synchronous flip-flops.

可选的,所述接口扩展模块可以采用CPLD等可编程逻辑器件实现。Optionally, the interface expansion module can be implemented by using programmable logic devices such as CPLD.

基于上述接口扩展电路结构,本实用新型又提供了一种采用所述接口扩展电路设计的移动终端,通过在主处理器与接口扩展模块之间采用并行总线进行连接,以实现接口配置命令和数据的并行传输,从而提高了系统电路的反应速度。Based on the above-mentioned interface expansion circuit structure, the utility model also provides a mobile terminal adopting the design of the interface expansion circuit, through connecting the main processor and the interface expansion module with a parallel bus to realize interface configuration commands and data Parallel transmission, thus improving the response speed of the system circuit.

与现有技术相比,本实用新型的优点和积极效果是:本实用新型的接口扩展电路采用并行通信方式实现主处理器与接口扩展模块之间所需接口配置命令和数据的传输通信,读写速度快,可以根据外围电路对GPIO接口数量的要求进行灵活扩展,从而提高了系统电路设计的通用性。将其应用于手机等移动终端系统中,不仅可以为不断增多的外围电路提供连接所需的足量的GPIO接口资源,而且还可以对用户执行的快速切换按键等操作进行及时地响应,从而改善了移动终端的工作性能。Compared with the prior art, the advantages and positive effects of the utility model are: the interface expansion circuit of the utility model adopts a parallel communication mode to realize the transmission and communication of the required interface configuration commands and data between the main processor and the interface expansion module, read The writing speed is fast, and it can be flexibly expanded according to the requirements of the peripheral circuit on the number of GPIO interfaces, thereby improving the versatility of the system circuit design. Applying it to mobile terminal systems such as mobile phones can not only provide sufficient GPIO interface resources required for connection to the increasing number of peripheral circuits, but also respond in a timely manner to operations such as fast switching keys performed by users, thereby improving performance of the mobile terminal.

结合附图阅读本实用新型实施方式的详细描述后,本实用新型的其他特点和优点将变得更加清楚。After reading the detailed description of the embodiments of the utility model in conjunction with the accompanying drawings, other features and advantages of the utility model will become clearer.

附图说明Description of drawings

图1是本实用新型所提出的接口扩展电路的一种实施例的电路原理框图;Fig. 1 is the circuit block diagram of a kind of embodiment of the interface expansion circuit proposed by the utility model;

图2是图1中键盘扫描逻辑单元内部电路的一种实施例的原理框图。FIG. 2 is a functional block diagram of an embodiment of the internal circuit of the keyboard scanning logic unit in FIG. 1 .

具体实施方式Detailed ways

下面结合附图对本实用新型的具体实施方式进行详细地描述。Specific embodiments of the present utility model are described in detail below in conjunction with the accompanying drawings.

本实用新型的接口扩展电路摒弃传统基于I2C总线的电路设计模式,在主处理器与接口扩展模块之间采用并行总线连接通信,利用并行接口数据读写速度快的特点来加快主处理器与接口扩展模块之间接口配置命令和数据的传输速度,从而在满足对系统GPIO口资源进行灵活扩展的前提下,实现了系统电路对快速操作的迅速响应。The interface expansion circuit of the utility model abandons the traditional circuit design mode based on the I 2 C bus, uses a parallel bus to connect and communicate between the main processor and the interface expansion module, and uses the characteristics of fast data reading and writing speed of the parallel interface to speed up the main processor The interface with the interface expansion module configures the transmission speed of commands and data, so as to meet the flexible expansion of the system GPIO port resources, and realize the rapid response of the system circuit to the fast operation.

下面通过一个具体的实施例来详细阐述所述接口扩展电路的具体组建结构及其工作过程。The specific building structure and working process of the interface expansion circuit will be described in detail below through a specific embodiment.

实施例一,参见图1所示,在本实施例的接口扩展模块中包括主处理器接口单元、GPIO功能逻辑单元、GPIO配置寄存器、GPIO电平状态寄存器和可提供多路GPIO接口的引脚复用单元等主要组成部分。Embodiment one, referring to shown in Fig. 1, in the interface extension module of the present embodiment, comprise main processor interface unit, GPIO function logic unit, GPIO configuration register, GPIO level state register and can provide the pin of multi-channel GPIO interface Multiplexing unit and other main components.

主处理器接口单元作为系统主处理器与接口扩展模块之间的通信接口,通过并行总线与主处理器的I8080并行接口相连接,接收主处理器发出的配置命令,比如系统时钟信号CLK、片选信号CS、地址信号RS、读使能信号RE、写使能信号WE和复位信号Reset,并与主处理器通过并行总线中的16位数据总线Data_bus实现数据的双向传输。在本实施例中,所述的主处理器接口单元可以使用检测电平方式的状态机来实现I8080从接口的设计,根据接收到的配置命令的电平状态,将主处理器发出的配置数据写入相应的寄存器,比如将需要配置的GPIO接口所对应的地址信息写入GPIO配置寄存器;将该接口所要配置成的具体状态(比如输入/输出/中断等)写入GPIO电平状态寄存器等等。The main processor interface unit is used as the communication interface between the main processor of the system and the interface expansion module. Select signal CS, address signal RS, read enable signal RE, write enable signal WE and reset signal Reset, and realize bidirectional data transmission with the main processor through the 16-bit data bus Data_bus in the parallel bus. In this embodiment, the main processor interface unit can use the state machine of the detection level mode to realize the design of the I8080 slave interface, according to the level state of the configuration command received, the configuration data sent by the main processor Write the corresponding register, for example, write the address information corresponding to the GPIO interface to be configured into the GPIO configuration register; write the specific state (such as input/output/interrupt, etc.) to be configured by the interface into the GPIO level status register, etc. wait.

将I8080从接口采用状态机来实现,不仅安全可靠,而且实现起来也非常简单。当然,除了状态机以外,也可以根据主处理器所提供的并行接口的具体类型选择采用其它多种接口实现形式来设计所述的主处理器接口单元,本实施例并不仅限于以上举例。Implementing the I8080 slave interface with a state machine is not only safe and reliable, but also very simple to implement. Of course, in addition to the state machine, the main processor interface unit can also be designed in various other interface implementation forms according to the specific type of the parallel interface provided by the main processor. This embodiment is not limited to the above examples.

GPIO功能逻辑单元用于实现对GPIO接口的具体配置功能,连接所述的GPIO配置寄存器、GPIO电平状态寄存器和GPIO引脚复用单元,根据GPIO配置寄存器和GPIO电平状态寄存器中所保存的数值来具体配置所需要的GPIO接口的状态,比如将一部分GPIO接口配置成输入状态或者输出状态,将另外一部分接口配置成中断状态等等。The GPIO function logic unit is used to realize the specific configuration function of the GPIO interface, connects the GPIO configuration register, the GPIO level status register and the GPIO pin multiplexing unit, according to the GPIO configuration register and the GPIO level status register. The value is used to configure the state of the required GPIO interface, such as configuring a part of the GPIO interface as an input state or an output state, configuring another part of the interface as an interrupt state, and so on.

为了使本实施例的接口扩展电路能够实现矩阵键盘扫描功能,本实施例在所述接口扩展模块中还设计了键盘扫描逻辑单元,连接键盘扫描码寄存器、主处理器接口单元和GPIO引脚复用单元,如图1所示。其中,所述的键盘扫描逻辑单元对GPIO引脚复用单元中用于连接矩阵键盘电路的GPIO接口的电平状态进行扫描,以对键盘的触发状态进行检测。当有按键按下时,将该按键所对应的按键扫描码写入到键盘扫描码寄存器,并产生中断信号Host_irq通过主处理器接口单元传输至系统主处理器的中断接口,以通知主处理器读取按键扫描码,进而对用户执行的操作能够做出及时地响应。In order to enable the interface expansion circuit of this embodiment to realize the matrix keyboard scanning function, this embodiment also designs a keyboard scanning logic unit in the interface expansion module to connect the keyboard scanning code register, the main processor interface unit and the GPIO pin complex Use the unit, as shown in Figure 1. Wherein, the keyboard scanning logic unit scans the level state of the GPIO interface used to connect the matrix keyboard circuit in the GPIO pin multiplexing unit, so as to detect the trigger state of the keyboard. When a key is pressed, the key scan code corresponding to the key is written into the keyboard scan code register, and the interrupt signal Host_irq is transmitted to the interrupt interface of the system main processor through the main processor interface unit to notify the main processor Read the key scan code, and then respond to the operations performed by the user in a timely manner.

本实施例的键盘扫描逻辑单元可以采用行扫描计数器模块、去抖时钟分频模块、去抖动逻辑模块和键盘矩阵扫描模块等部分组建形成,如图2所示。首先,系统时钟CLK一路用来给行扫描计数器模块提供计数时钟,并通过行扫描计数器模块将产生的计数时钟提供给键盘矩阵扫描模块;另一路经过去抖时钟分频模块对系统时钟CLK进行分频处理后,输出至去抖动逻辑模块以产生去抖同步时钟,传输至所述的键盘矩阵扫描模块。其中,去抖动逻辑模块可以由3组同步触发器组成的移位寄存器设计实现。矩阵键盘的行输入电平状态可以由键盘矩阵扫描模块对所述移位寄存器的3个输出相“位或”后确定。键盘矩阵扫描模块的列输入则在去抖同步时钟的作用下,对矩阵键盘进行周期扫描获得。最终的按键扫描码则由矩阵键盘的行输入电平状态和列扫描输出状态进行判定。当键盘矩阵扫描模块确定有按键按下时,将生成的按键扫描码保存到键盘扫描码寄存器中,并产生中断信号Host_irq来通知主处理器访问键盘扫描码寄存器,以读取其中的按键扫描码。The keyboard scan logic unit of this embodiment can be formed by using a row scan counter module, a debounce clock frequency division module, a debounce logic module, and a keyboard matrix scan module, as shown in FIG. 2 . First, the system clock CLK is used to provide the count clock to the row scan counter module, and the generated count clock is provided to the keyboard matrix scan module through the row scan counter module; After the frequency processing, it is output to the de-jitter logic module to generate a de-jitter synchronous clock, which is transmitted to the keyboard matrix scanning module. Among them, the de-jitter logic module can be designed and implemented by a shift register composed of three groups of synchronous flip-flops. The row input level state of the matrix keyboard can be determined by the keyboard matrix scanning module after "bit ORing" the three output phases of the shift register. The column input of the keyboard matrix scanning module is obtained by periodically scanning the matrix keyboard under the action of the debounced synchronous clock. The final key scan code is determined by the row input level state and column scan output state of the matrix keyboard. When the keyboard matrix scanning module determines that a key is pressed, the generated key scan code is saved in the keyboard scan code register, and an interrupt signal Host_irq is generated to notify the main processor to access the keyboard scan code register to read the key scan code therein .

本实施例的GPIO引脚复用单元可以采用一组逻辑开关设计实现,根据GPIO配置寄存器的数值,打开相应的逻辑开关来实现键盘扫描或者GPIO接口功能。The GPIO pin multiplexing unit of this embodiment can be designed and implemented by a group of logic switches. According to the value of the GPIO configuration register, the corresponding logic switch is turned on to realize the keyboard scanning or GPIO interface function.

本实施例的接口扩展模块可以采用分立的功能模块电路连接实现,也可以采用低功耗的可编程逻辑器件,比如CPLD器件等,利用硬件描述语言编程实现,以简化系统电路设计,本实施例对此不进行具体限制。The interface expansion module of this embodiment can be implemented by using discrete functional module circuit connections, and can also be implemented by using low-power programmable logic devices, such as CPLD devices, etc., using hardware description language programming to simplify system circuit design. There is no specific limitation on this.

本实用新型的接口扩展电路采用主处理器的并行接口来扩展GPIO接口和键盘扫描功能,数据读写速度快,适合应用在手机、掌上电脑等移动终端的系统电路设计中,以便用户在快速按键时,系统能够及时地做出响应。The interface expansion circuit of the utility model adopts the parallel interface of the main processor to expand the GPIO interface and the keyboard scanning function, and the data reading and writing speed is fast, which is suitable for application in the system circuit design of mobile terminals such as mobile phones and palmtop computers, so that users can press keys quickly , the system can respond in a timely manner.

当然,以上所述仅是本实用新型的一种优选实施方式,应当指出的是,对于本技术领域的普通技术人员来说,在不脱离本实用新型原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本实用新型的保护范围。Of course, the above description is only a preferred embodiment of the utility model, and it should be pointed out that for those of ordinary skill in the art, some improvements can also be made without departing from the principle of the utility model and retouching, these improvements and retouching should also be regarded as the protection scope of the present utility model.

Claims (10)

1.一种接口扩展电路,其特征在于:包括主处理器和具有多路GPIO口的接口扩展模块,所述接口扩展模块通过并行总线连接主处理器的并行接口,接收主处理器发出的接口配置命令和数据,并通过接口扩展模块的GPIO口连接外围电路。1. A kind of interface expansion circuit, it is characterized in that: comprise main processor and have the interface expansion module of multi-channel GPIO mouth, described interface expansion module connects the parallel interface of main processor by parallel bus, receives the interface that main processor sends Configure commands and data, and connect peripheral circuits through the GPIO port of the interface expansion module. 2.根据权利要求1所述的接口扩展电路,其特征在于:在所述接口扩展模块中包含有主处理器接口单元、GPIO功能逻辑单元和GPIO配置寄存器、GPIO电平状态寄存器;所述主处理器接口单元通过并行总线连接主处理器的并行接口,根据接收到的接口配置命令和数据向相应的GPIO配置寄存器或者GPIO电平状态寄存器写入数据;所述GPIO功能逻辑单元根据GPIO配置寄存器和GPIO电平状态寄存器中的数据配置相应GPIO口的状态。2. The interface expansion circuit according to claim 1, characterized in that: in the interface expansion module, a main processor interface unit, a GPIO functional logic unit, a GPIO configuration register, and a GPIO level status register are included; The processor interface unit is connected to the parallel interface of the main processor through the parallel bus, and writes data to the corresponding GPIO configuration register or GPIO level status register according to the interface configuration command and data received; Configure the state of the corresponding GPIO port with the data in the GPIO level status register. 3.根据权利要求2所述的接口扩展电路,其特征在于:所述主处理器接口单元使用检测电平方式的状态机创建并行从接口。3. The interface expansion circuit according to claim 2, characterized in that: the master processor interface unit uses a state machine in a level detection mode to create a parallel slave interface. 4.根据权利要求3所述的接口扩展电路,其特征在于:所述主处理器的并行接口为I8080接口。4. The interface expansion circuit according to claim 3, characterized in that: the parallel interface of the main processor is an I8080 interface. 5.根据权利要求1所述的接口扩展电路,其特征在于:在所述接口扩展模块中包含有键盘扫描逻辑单元和键盘扫描码寄存器,所述键盘扫描逻辑单元连接接口扩展模块上用于连接矩阵键盘电路的GPIO口,在检测到有按键按下时,将按键扫描码传输至所述的键盘扫描码寄存器进行保存,并产生中断信号传输至主处理器的中断接口。5. The interface expansion circuit according to claim 1, characterized in that: a keyboard scanning logic unit and a keyboard scanning code register are included in the interface expansion module, and the keyboard scanning logic unit is connected to the interface expansion module for connecting When the GPIO port of the matrix keyboard circuit detects that a key is pressed, the key scan code is transmitted to the keyboard scan code register for storage, and an interrupt signal is generated and transmitted to the interrupt interface of the main processor. 6.根据权利要求5所述的接口扩展电路,其特征在于:所述键盘扫描逻辑单元连接主处理器接口单元,将产生的中断信号传输至主处理器接口单元,通过主处理器接口单元连接主处理器的中断接口。6. The interface expansion circuit according to claim 5, characterized in that: the keyboard scanning logic unit is connected to the main processor interface unit, and the generated interrupt signal is transmitted to the main processor interface unit, and is connected to the main processor interface unit. Interrupt interface to the host processor. 7.根据权利要求5所述的接口扩展电路,其特征在于:在所述键盘扫描逻辑单元中包含有行扫描计数器模块、去抖时钟分频模块、去抖动逻辑模块和键盘矩阵扫描模块;所述去抖时钟分频模块接收系统时钟,进行分频后传输至所述去抖动逻辑模块产生去抖同步时钟,进而输出至所述的键盘矩阵扫描模块;所述行扫描计数器模块接收系统时钟,产生计数时钟传输至所述的键盘矩阵扫描模块;所述键盘矩阵扫描模块连接所述接口扩展模块上用于连接矩阵键盘电路的GPIO口,对按键状态进行检测,并在检测到有按键按下时,生成按键扫描码保存到所述的键盘扫描码寄存器,并产生中断信号输出至所述的主处理器。7. The interface extension circuit according to claim 5, characterized in that: a line scan counter module, a debounce clock frequency division module, a debounce logic module and a keyboard matrix scan module are included in the keyboard scan logic unit; The debounce clock frequency division module receives the system clock, transmits it to the debounce logic module to generate the debounce synchronous clock after frequency division, and then outputs it to the keyboard matrix scanning module; the row scan counter module receives the system clock, Generate the counting clock and transmit it to the keyboard matrix scanning module; the keyboard matrix scanning module is connected to the GPIO port on the interface expansion module for connecting the matrix keyboard circuit, detects the state of the key, and presses the key when it is detected At this time, the key scan code is generated and stored in the keyboard scan code register, and an interrupt signal is generated and output to the main processor. 8.根据权利要求7所述的接口扩展电路,其特征在于:所述去抖动逻辑模块由3组同步触发器组成的移位寄存器组成。8 . The interface expansion circuit according to claim 7 , wherein the debounce logic module is composed of a shift register composed of three groups of synchronous flip-flops. 9.根据权利要求1所述的接口扩展电路,其特征在于:所述接口扩展模块为可编程逻辑器件CPLD。9. The interface expansion circuit according to claim 1, wherein the interface expansion module is a programmable logic device (CPLD). 10.一种移动终端,其特征在于:包含有如权利要求1至9中任一项权利要求所述的接口扩展电路。10. A mobile terminal, characterized in that it includes the interface expansion circuit according to any one of claims 1 to 9.
CN2010201164203U 2010-02-10 2010-02-10 An interface expansion circuit and a mobile terminal with the circuit Expired - Fee Related CN201590076U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010201164203U CN201590076U (en) 2010-02-10 2010-02-10 An interface expansion circuit and a mobile terminal with the circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010201164203U CN201590076U (en) 2010-02-10 2010-02-10 An interface expansion circuit and a mobile terminal with the circuit

Publications (1)

Publication Number Publication Date
CN201590076U true CN201590076U (en) 2010-09-22

Family

ID=42749865

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010201164203U Expired - Fee Related CN201590076U (en) 2010-02-10 2010-02-10 An interface expansion circuit and a mobile terminal with the circuit

Country Status (1)

Country Link
CN (1) CN201590076U (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102522976A (en) * 2011-11-30 2012-06-27 青岛海信移动通信技术股份有限公司 Key expansion circuit, expansion method and mobile terminal
CN103226537A (en) * 2013-05-09 2013-07-31 上海斐讯数据通信技术有限公司 Programmable logic device for implementing hardware interface of mobile phone
CN103268302A (en) * 2013-04-19 2013-08-28 华为技术有限公司 Interface expanding circuit, interface expanding connecting method and embedded system
CN104182274A (en) * 2014-08-19 2014-12-03 Tcl通讯(宁波)有限公司 Interrupt detection device and interrupt detection method for mobile terminals
CN106649159A (en) * 2016-12-23 2017-05-10 中国电子科技集团公司第五十四研究所 Radio-frequency assembly and special SPI data transmission method thereof
CN108415863A (en) * 2018-02-01 2018-08-17 广东欧珀移动通信有限公司 Hardware compatible implementation method of electronic device and related product
CN109491946A (en) * 2018-11-12 2019-03-19 郑州云海信息技术有限公司 A kind of chip and method for I2C bus extension
CN110750394A (en) * 2019-09-25 2020-02-04 深圳震有科技股份有限公司 Control method and terminal for realizing main and standby single boards based on GPIO pins
WO2020155545A1 (en) * 2019-01-28 2020-08-06 山东华芯半导体有限公司 Programmable gpio device and time sequence implementation method based on the device
CN114619425A (en) * 2020-12-08 2022-06-14 山东新松工业软件研究院股份有限公司 Demonstrator main control board and novel clean robot demonstrator

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102522976A (en) * 2011-11-30 2012-06-27 青岛海信移动通信技术股份有限公司 Key expansion circuit, expansion method and mobile terminal
CN103268302A (en) * 2013-04-19 2013-08-28 华为技术有限公司 Interface expanding circuit, interface expanding connecting method and embedded system
CN103268302B (en) * 2013-04-19 2016-08-03 华为技术有限公司 A kind of Interface Expanding circuit, Interface Expanding method of attachment and embedded system
CN103226537B (en) * 2013-05-09 2017-09-19 上海斐讯数据通信技术有限公司 A kind of PLD for realizing hardware interface of mobile phone
CN103226537A (en) * 2013-05-09 2013-07-31 上海斐讯数据通信技术有限公司 Programmable logic device for implementing hardware interface of mobile phone
CN104182274A (en) * 2014-08-19 2014-12-03 Tcl通讯(宁波)有限公司 Interrupt detection device and interrupt detection method for mobile terminals
CN104182274B (en) * 2014-08-19 2018-02-23 深圳市Tcl云创科技有限公司 The interrupt detection apparatus and its method of a kind of mobile terminal
CN106649159A (en) * 2016-12-23 2017-05-10 中国电子科技集团公司第五十四研究所 Radio-frequency assembly and special SPI data transmission method thereof
CN106649159B (en) * 2016-12-23 2019-03-15 中国电子科技集团公司第五十四研究所 A kind of radio frequency component and its dedicated SPI data transmission method
CN108415863A (en) * 2018-02-01 2018-08-17 广东欧珀移动通信有限公司 Hardware compatible implementation method of electronic device and related product
CN109491946A (en) * 2018-11-12 2019-03-19 郑州云海信息技术有限公司 A kind of chip and method for I2C bus extension
WO2020155545A1 (en) * 2019-01-28 2020-08-06 山东华芯半导体有限公司 Programmable gpio device and time sequence implementation method based on the device
CN110750394A (en) * 2019-09-25 2020-02-04 深圳震有科技股份有限公司 Control method and terminal for realizing main and standby single boards based on GPIO pins
CN114619425A (en) * 2020-12-08 2022-06-14 山东新松工业软件研究院股份有限公司 Demonstrator main control board and novel clean robot demonstrator

Similar Documents

Publication Publication Date Title
CN201590076U (en) An interface expansion circuit and a mobile terminal with the circuit
CN108228492B (en) Multi-channel DDR interleaving control method and device
CN105700732B (en) Apparatus, system and method for transmitting touch sensor information
CN104915303B (en) High speed digital I based on PXIe buses/O systems
CN102141971A (en) 1553B hardware timed communication module with high-capacity storage function
CN101478840B (en) SIM card control circuit of single-chip dual-mode mobile terminal
CN101035343B (en) Multi-mode mobile phone
CN110377543A (en) A kind of display board USB peripheral connection system
TW201941034A (en) Electronic system, touch sensitive processing apparatus and method thereof, and host and method thereof
CN111948971A (en) A smart card management device and data transfer method thereof
CN105468549A (en) Chip device and electronic system thereof
CN203746067U (en) A Multi-channel ARINC429 Data Transceiver Circuit Structure Developed Based on DSP and CPLD
CN207473575U (en) Tactile signal processing system
CN110516486A (en) A wireless time-sharing RFID terminal for the Internet of Things
CN201812253U (en) Keyboard/mouse device capable of switching PS/2 (Personal System/2) to USB (Universal Serial Bus)
CN103226531B (en) A kind of dual-port peripheral configuration interface circuit
CN105955919A (en) Implementation method of reading-writing NANDFlash by multiple MCUs based on FPGA (Field Programmable Gate Array)
CN108153485A (en) A kind of more equipment collaborations access the method and system of SRAM
CN207780738U (en) Tactile signal processing system
CN210295083U (en) Display board card USB peripheral hardware connecting system
WO2012009996A1 (en) Memory device and smart-phone system
CN203606818U (en) Capacitor and electromagnetic dual-mode touch control system
CN203149568U (en) USB switching sharer
CN206946469U (en) A kind of equipment for the user's debugging mode for realizing MCU chip
CN208190652U (en) A kind of mainboard of full duplex Universal Synchronous Asynchronous serial transceiver

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100922

Termination date: 20130210