[abstract] the article selected the S3C44B0x processor to take the controller essence, the development completes agreed the keyboard, the menu operation and the LCD display sequence data acquisition and processing realizes the software PC communication protocol and realizes the software, completed the data under its control to gather and to process and realizes to broadcast transmitter’s active status carries on the monitoring, simultaneously had the man-machine interaction the function.
Key word: Embedded; S3C44B0x; Man-machine connection; Correspondence
1. foreword
On the ships uses the signal transmitter is the continuous working, therefore needs a controller to carry on the monitoring to transmitter’s active status, what is common is makes controller’s essence with the monolithic integrated circuit, but because 32 microprocessors have a better precision and the reliability and low cost low power loss, therefore is day by day widespread in the industrial control domain’s application. Will use embedded 32 micro to process ARMS3C44B0x to take controller’s essence, the design controller compared to will use the monolithic integrated circuit to make the essence the processor to have a more comprehensive function and the better operational performance.
The transmitter controller’s major function is monitors transmitter’s active status to the multi-channel simulation quantities and the switch quantity data acquisition and processing; At the same time the controller control transmitter the controller receives the superior machine control, it must be able to prepare to receive the data which frequently willfully from the superior machine serial port, the net mouth sends, between them relative relational like chart:

Figure 1 Controller system structure drawing
Superior machine to controller transmission data, thus realizes to the controller the control, the first superior machine sends out the serial number, delivers the order character again; The controller must complete the communication to the superior machine upload data to reply, it first analyzes the serial number to be whether consistent with own serial number, if again analyzes the order character identically, sends out the upload according to the order character the data to complete the reply; If no longer makes the further data analysis not identically. Their communication way has the serial port communication and the ethernet communication two kinds; The controller and transmitter’s data transmission mainly has simulation quantity gathering and the switch quantity input output; Moreover, the man-machine interface module realizes in the transmitter work process parameter real time display and the parameter revision and the inquiry. The real-time gathering data is obtains by the AD sampling, what needs to pay attention is S3c44B0 does not have the sampling maintains the electric circuit, therefore channel’s switch frequence cannot surpass 100Hz, when ADC opening road needs a time delay, uses this period of time to come to the previous group to carry on the filter to enhance the procedure the efficiency. The entire sampling’s process may describe for the opening current channel, then filter previous sampling channel (position value average filtering).
2. opens the close-down description and the software design

Figure 2 passes on the mouth communication flow chart
The project development must first complete the close-down function, the man-machine interface function module, the communication module programming and the debugging, discusses the close-down the first programming; The user requests on the controller key’s function is can edit namely each key’s function not to be fixed, may through the PC machine revision; Starting when must output a series of movements from high to low according to the priority order, each movement has the priority which may edit (through the PC machine edition), after a movement output, possibly will cause other identical priority horizontal movement occurrence, this will be the movement connection. When opens the current priority movement must examine the higher priority movement the condition, meets the breakdown to need to carry on the failure processing. In view of the above complex demand design following construction of data: www.51kaifa.com

Figure 3 starting flow
typedef struct {
char *pName; // acts the name
char FunctionID; // acts (function) the serial number
char Priority; // acts the priority
short KeepTime1; // waits for the preceding output action stable need the time
short DelayTime1; before // next movement execution time delay
short DelayTime2; when // the examination simulation quantity or the switch quantity are not normal needs to duplicate the time delay which examines
short RepeatNum; // has the number of times which the breakdown examines
} OutputAction;
Numbers in turn all functions, bestowed on this serial number for some key this has this function, the function edition through revised OutputAction.FunctionID the value to realize; Each key most has 16 functions, most little does not have the function; Are the wheel follow effectively in each key’s all functions, deposits the function serial number with a circulation chain table, is throughout is in the meter position serial number correspondence the function to be effective, each function (movement) can only belong to a key, when each time starting first has defined by the serial port the good key function to deliver the controller and the fever writes the stationary position in ROM; Acts the priority edition is the OutputAction.Priority value realizes through the revision syntagma in; Starting when reads again from ROM these data, if the superior machine has not carried on the key function edition to press the default form to carry on, what needs to point out when is the close-down, according to and starting closes all output action in turn to the counter-order. Starting when acts according to stationary position ROM the content or according to the default definition gain movement attribute,①First searches the priority highest movement serial number, then the basis different time delay sends out in turn these movements;②Falls the priority first-level, examines compared to current priority higher all inputs, the output condition whether normal, if normal, then sends out the current priority the movement, is again redundant②Process, otherwise enters the exception handles, if the processing damage succeeds continues to be redundant②Process, otherwise closes down and returns to the starting defeat information. Starting flow chart as shown in Figure 3. www.51kaifa.com
Is simulates the IIC main line in a software design’s characteristic using the I/O port to read the key value, its overall mentality is simulates IIC with two port one clock signal, another simulates IIC the data line. What needs to pay attention is when compounds the I/O port, the clock line beginning corresponds the port is an outlet finally, but the data line port is indefinite. Through gives the port setting and the reset union time delay simulates IIC the data transmission protocol. Discovered in the debugging process that this method can very good complete the key value the gain and visit to CPLD component’s.
3. man-machine interface module design
Must monitor the transmitter active status to have the good man-machine connection, needs to give the controller match appropriate graphic display device, selects 7.8 inch 640×480 picture element STN colored liquid crystal display monitor in this project (LCD), selects 8 bit data list scanning method, in the practical application demonstrated that not only the effect is very good the cost low and the elegant appearance, STN the LCD screen and the 44B0x connection is quite simple, but needs to pay attention is the 18th pin (Vcom) is connected through a rheostat and the power source, adjusts on this pin the voltage to be possible to adjust the LCD screen the contrast gradient. In software design’s key is the menu design and the pressed key response and processing, because in this project’s contact surface are many, and exists turns the screen, therefore designs a unification processing suitably the algorithm, for this reason, numbers WndID each contact surface unification, takes message handling MessageFun the pressed key (); Each time presses a key to transfer MessageFun (), finds the contact surface which and on LCD needs to demonstrate demonstrated. LCD turns the screen the method is each time records the demonstration the content in the entire menu array displacement, otherwise if the current line surpasses the displacement to need to turn the screen not to turn the screen. Makes following processing regarding the menu design: Seals completely with a syntagma a menu’s attribute, its attribute including menu name, coordinate, parameter symbol, parameter.
typedef struct {www.51kaifa.com
UINT8T Menu_ID; // menu serial number
UINT8T *Text; // menu name
UINT16T xPos; // menu x coordinate
UINT16T yPos; // menu y coordinate
UINT8T ParaFlag; // parameter symbol
UINT8T pData[7]; // parameter
} Menu;

Figure 4 menu demonstration
Seals using the syntagma each menu’s attribute puts again to an array inside, like this to menu integer limit, and easy to manage, each menu’s information is very clear, programs is not easy to make a mistake.
The man-machine contact surface operation’s core work is the contact surface cut, the main menu and the sub-menu operation. According to the pressed key determined that the base address which corresponding the contact surface ID number, the cut contact surface’s method usually has two kind of changes obviously to save the content which and the change obviously saves, the base address which change obviously saves needs to define very in a big way obviously saves, does the merit is causes the refurbishing speed which using the hardware source the LCD screen demonstrated to be very high, the contact surface to cut quickly, the shortcoming has wasted the system resources very greatly; If changes obviously saves the content to need to use software’s method to renew obviously saves the content, this method’s advantage saved the system resources, but increases software design order of complexity; This project uses is the renewal obviously saves the content the method the discovery to be able to satisfy the request well in the actual debugging. Has designed one kind of centralized dispatcher algorithm about the main menu and the sub-menu’s operation, its thought is according to the gain key information determined that the main menu the ID number and the sub-menu’s ID number, the use focal point mark current menu’s ID number, by these two ID number may determine the corresponding host, the sub-menu simultaneously enter corresponding the function disposal procedure. www.51kaifa.com
4. ethernet connection module design
When hardware design chooses the RTL8019AS network control chip, it may work under 8/16 main line width the transmission speed is 10Mbps, follows the IEEE 802.3 agreements. The interior had 16KB SRAM to integrate the MAC receiving and dispatching buffer and the physical level function, it used for to receive and to transmit ethernet’s physical transmission data, when after RTL8019AS received the network data package, the RTL8019AS interior certain controlled register’s condition to change, read these register’s condition judgment data through the establishment interrupt or the inquiry method whether to receive; When transmits the data, puts in the data after the RTL8019AS internal data buffer, through controls the internal register, transmits the buffer network data to the network comes up. This chip has three kind of working patterns: Jumps the line pattern, namely inserts namely uses the pattern, passes the line pattern. Network card chip RTL8019AS is in jumps under the line pattern in the project to work. Mainly includes the following several steps to this chip’s actuation: Replacement, initialization, receiving and dispatching data. RTL8019 replacement pin RSTDRV is the high level is effective, effective maintains the time is bigger than 800ns suitably, and after cuts from high to low 100ms only then to chip operation. Before chip initialization needs to assign in good internal RAM the space is in advance the receive and the transmission buffer size, in all establishment parameter in initialization time reads in RTL8019 the register to complete the initialization together.
5. conclusion
In the project development debugging’s process has many softwares and the hardware aspect difficulty, but the question is finally is solving unceasingly, like the system the serial port, the LCD, AD sampling, Flash operation’s work as well as the controller and so on debugging must have and the man-machine interaction function’s programming must debug passes. Adds to the project after the ethernet module, its physical level chip’s driver must further debug, joins the module the TCP/IP agreement, refers to the successful case, completes system’s debugging task. At the same time, this article has following innovation spot:
(1) develops applies 32 micro to process ARMS3C44B0x to take controller’s essence, causes the controller compared to use the monolithic integrated circuit to make the essence the processor to have a more comprehensive function and the better operational performance.
(2) in the menu design, seals completely with a syntagma a menu’s attribute, its attribute including menu name, coordinate, parameter symbol, parameter.
(3) solved this network card chip to cause the RTL8019AS normal work the question, in before chip initialization needed to assign in good internal RAM the space is in advance the receive and the transmission buffer size, in all establishment parameter in initialization time read in RTL8019 the register to complete the initialization together.
[reference]
[1] Tian Ze. Embedded system development and application experiment course [M]. Beijing: Beijing University of Aeronautics and Astronautics Publishing house, 2005.
[2] Jia Zhiping, Zhang Ruihua. Embedded principle and connection technology [M]. Beijing: Tsinghua University publishing house, 2005.
[3] Wang Tianmiao. The embedded system design and the example develop the [M]. Tsinghua University publishing house, 2003.
[4] Cui Deng will, Dai Xuefeng, Liu Shudong, and so on. Controls CAMD wireless Modem with ARM to transmit the short information [J]. micro computer information, 2006,11-2:136-138.
[5] Xu is great, Tan fosters talent, Huang Haoliang. Based on AT91RM9200 image gathering system design [J]. Micro computer information, 2006,11-2:120-122.
[6] Yang Zhanhua, raises the swallow. Data mining in intelligent search engine’s application [J]. micro computer information, 2006 (4) under: 244-245.