36809 Mensajes en 36772 Temas - por 3499 Usuarios - Último usuario: NobleRuthe

* Chat Sentinela

Refresh History

Autor Tema: The serial interface schemes of MSP430 and liquid crystal display Dave Ross Blo  (Leído 54 veces)

jingwxs04

  • Jr. Member
  • **
  • Mensajes: 71
    • Ver Perfil
Summary: To utilizing the microcontroller MCU Control the liquid crystal display driver LCD Application and development embodiment,last a design by serial mode microcontroller and scheme of interface between liquid crystal display driver. This scheme is to add one MCU on the existing lattice liquid crystal display, utilize I/O port of MCU to imitate I2C I2C through the programming, thus realize the purpose of utilizing MCU to go for control LCD; Recommend a to reveal technology and implement method of the dynamic curve in the icon liquid crystal display system at the same time.
Keyword: I2C serial total line MSP430 of driving device of liquid crystal display
A summary
The lattice liquid crystal interfaces with external hardware simply, can demonstrate various information by way of dot matrix or figure, so is used widely in the electronic design. However, the interface design of it must follow certain hardware and sequence norm, different liquid crystal display drivers, may need to adopt different interface ways and control commands and can realize the display of required information. Some liquid crystal display drivers and external interface must adopt the serial mode, its serial interface is not often canonial serial interface, this brings the difficulty for design of this kind of liquid crystal display driver.
To the above-mentioned problem, this text proposes one kind utilizes the microcontroller MCU I/O port,what has been in conformity with liquid crystal display driver norms used software design simulationed design philosophies collinears totals serial, realize MCU control on liquid crystal display driver, thus set up one setting not only can reveal various characters, and the display system of visitor in the all right curve of dynamic display.
2 system design
The liquid crystal display system set up of this text, choose Texas Instruments TI MSP430F149 microcontroller of the company comes to control the liquid crystal display driver uPD16682A, thus realize the display of different information.
2.1 Brief introduction of MSP430F14X microcontroller
MSP430F14X microcontroller of TI Company is the same as other MSP430 series microcontrollers, even a genuine orthogonality and 16 RISC CPU kernels: Have 16 but the intersection of monocycle and the whole 16 bit register of addressing, 27 string simplify instruction set and 7 adopt double the intersection of data fetch and technology DDFT only Conformance address mode. DDFT technology carries on accessing operation of data two times with each clock pulse pair memorizer. Thus no longer need complicated clock multiplication and instruction pipeline scheme.
MSP430F14X series MCU not only includes Flash of more than 60 KBs on-chip, RAM of 2KB, daily resources such as a watchdog’s clock, 12 16 passways of analog to digital converters, timer, high-accuracy comparator, PWM and high-speed USART control device,etc., integrated LCD control device in some types yet. Its I/O resource is abundant, and each I/O I/O Having all offered the look-at-me function of the vector on the pins, each peripheral device supports the complicated incident driving type to be operated. With other microcontroller lookses, the microcontroller with Flash on-chip can reduce the system power consumption by 5 times, and reduced the breadboard space of hardware, and modern programming technique such as calculating branch and the high level language such as language C Use in conjunction, make the architecture of MSP430 more high-efficient.
MSP430F14X can adopt an Integrated digital controlkled oscillator DCO Or external high-speed Jingzhen carries on timing to the system, his voltage range of job is 1.8- 3.6V, and can offer and up to 8MIPS depending upon need ‘ Million instructions per second Operating performance,as to employing, it can work and need outside Jingzhen by DCO this devices serial, fast the intersection of order and execute cycle mix with less than 6ms starting time of waiting for etc., make the total power consumption of the system 10 times lower than the competition device, lengthen for example the life time of battery in the project application system of measuring, testing and intellectual detection of portable apparatus of the public utility,etc. greatly.
The MSP430F14X series microcontroller allows users to use standard language C to carry on the programming of procedure, and offer efficient language C to compile the environment; The ones that mix, in order to support to carry on the abundant fast real-time emulation tool FET and fine debugging environment that fetched to the quick flashing products with imitative zero function, make the MSP430F14X series microcontroller used widely in the engineering.
2.2 Brief introduction of liquid crystal display driver uPD16682A
UPD16682 is the liquid crystal display driver that NEC Company introduced at the beginning of 2001, the built-in high capacity of this product revealed RAM memory, and can offer the revealing a bit more completely of 132* 65 dot matrix, especially suitable to be used in 16* 16 or 12* 12 dot matrix, Japanese alphanumeric display. This product adopts 3V form power to supply power, and the built-in boost-up circuit has 3 voltage doubling and 4 voltage doubling and two kinds of work patterns, support 8 bit serial or run side by side machine format input, the circuit and bias circuit which the procedure can programmable takes place in the built-in clock.
Summary: To utilizing the microcontroller MCU Control the liquid crystal display driver LCD Application and development embodiment,last lasting microcontrollering a and scheme of interface between liquid crystal display driver. This scheme is to add one MCU on the existing lattice liquid crystal display, utilize I/O port of MCU to imitate I2C I2C through the programming, thus realize the purpose of utilizing MCU to go for control LCD; Recommend a to reveal technology and implement method of the dynamic curve in the icon liquid crystal display system at the same time.
Keyword: I2C serial total line MSP430 of driving device of liquid crystal display
A summary
The lattice liquid crystal interfaces with external hardware simply, can demonstrate various information by way of dot matrix or figure, so is used widely in the electronic design. However, the interface design of it must follow certain hardware and sequence norm, different liquid crystal display drivers, may need to adopt different interface ways and control commands and can realize the display of required information. Some liquid crystal display drivers and external interface must adopt the serial mode, its serial interface is not often canonial serial interface, this brings the difficulty for design of this kind of liquid crystal display driver.
To the above-mentioned problem, this text proposes one kind utilizes the microcontroller MCU I/O port,through design philosophies collinears totals serials that software design simulation in conformity with liquid crystal display driver norms used, realize MCU control on liquid crystal display driver, thus set up one setting not only can reveal various characters, and the display system of visitor in the all right curve of dynamic display.
2 system design
The liquid crystal display system set up of this text, choose Texas Instruments TI MSP430F149 microcontroller of the company comes to control the liquid crystal display driver uPD16682A, thus realize the display of different information.
2.1 Brief introduction of MSP430F14X microcontroller
MSP430F14X microcontroller of TI Company is the same as other MSP430 series microcontrollers, even a genuine orthogonality and 16 RISC CPU kernels: Have 16 but the intersection of monocycle and the whole 16 bit register of addressing, 27 string simplify instruction set and 7 adopt double the intersection of data fetch and technology DDFT only Conformance address mode. DDFT technology carries on accessing operation of data two times with each clock pulse pair memorizer. Thus no longer need complicated clock multiplication and instruction pipeline scheme.
MSP430F14X series MCU not only includes Flash of more than 60 KBs on-chip, RAM of 2KB, daily resources such as a watchdog’s clock, 12 16 passways of analog to digital converters, timer, high-accuracy comparator, PWM and high-speed USART control device,etc., integrated LCD control device in some types yet. Its I/O resource is abundant, and each I/O I/O Having all offered the look-at-me function of the vector on the pins, each peripheral device supports the complicated incident driving type to be operated. With other microcontroller lookses, the microcontroller with Flash on-chip can reduce the system power consumption by 5 times, and reduced the breadboard space of hardware, and modern programming technique such as calculating branch and the high level language such as language C Use in conjunction, make the architecture of MSP430 more high-efficient.
MSP430F14X can adopt an Integrated digital controlkled oscillator DCO Or external high-speed Jingzhen carries on timing to the system, his voltage range of job is 1.8- 3.6V, and can offer and up to 8MIPS depending upon need ‘ Million instructions per second Operating performance,as to getting more responsive for cost very employ,can work and need outside Jingzhen this devices serial by DCO, fast the intersection of order and execute cycle mix with less than 6ms starting time of waiting for etc., make the total power consumption of the system 10 times lower than the competition device, lengthen if the life time of battery in the project application system of measuring, testing and intellectual detection of portable apparatus of the public utility,etc. greatly.
The MSP430F14X series microcontroller allows users to use standard language C to carry on the programming of procedure, and offer efficient language C to compile the environment; The ones that mix, in order to support to carry on the abundant fast real-time emulation tool FET and fine debugging environment that fetched to the quick flashing products with imitative zero function, make the MSP430F14X series microcontroller used widely in the engineering.
2.2 Brief introduction of liquid crystal display driver uPD16682A
UPD16682 is the liquid crystal display driver that NEC Company introduced at the beginning of 2001, the built-in high capacity of this product revealed RAM memory, and can offer the revealing a bit more completely of 132* 65 dot matrix, especially suitable to be used in 16* 16 or 12* 12 dot matrix, Japanese alphanumeric display. This product adopts 3V form power to supply power, and the built-in boost-up circuit has 3 voltage doubling and 4 voltage doubling and two kinds of work patterns, support 8 bit serial or run side by side machine format input, the circuit and bias circuit which the procedure can programmable takes place in the built-in clock.
: 0px; MARGIN: 0px 0px 20px; WORD-SPACING: 0px; FONT: 14px/24px Song Ti, arial; TEXT-TRANSFORM: none; COLOR: rgb0,0,0 ; TEXT-INDENT: 30px; PADDING-TOP: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb255,255,255 ; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px” > 1 Display memory of uPD16682A
The display RAM memory of uPD16682A is kept the dot matrix information which reveals the content. Reveal a point on every corresponding display screen of RAM, can store the information at 132* 65 o’clock altogether; Through choosing correspondent RAM page address and column address, the microcontroller can visit any point among them. The read/write operation of the display RAM to uPD16682A of the microcontroller goes on one bunch of row modes lower uPD16682A does not support to study in operating through I/O dashpot of uPD16682A ,And it is independent that this one that reads operating and liquid crystal display driving signal reads the fetch operation, so, when revealing the data of the memory are visited by both sides at the same time, will not present the shaking etc. of display information. Correspond to order one one of row of the liquid crystal display from the view data which the microcontroller reads in according to the data bit order of D7- D0, it reveals the relation to pursue to be shown as in Fig. 1 correspondingly. If has used lamellar uPD16682A in the system, users will have very large degree of freedom while it is machine format to partial discharge detector reveal to shift and reveal a pattern for one sharp among one.
 2 Interface of uPD16682A and microcontroller
UPD16682A can pass 8 bidirectional data buses ‘ Under the parallel simulation Or receive the data from microcontroller through the I2C, these two kinds of modes can be through putting its P/S pin high or putting low and choosing. When the work is under the import schema runs side by siding, the chip selection signal terminal, reading and writing the signal terminal and controlling the signal terminal A0 of uPD16682A And data link D0- D7 Should all connect with the corresponding port of the microcontroller. Reveal within uPD16682A the data of RAM can read the content which reveals the memory through the data bus too in order to break the expicity content of the liquid crystal at this moment. When the work is in one bunch of row modes, uPD16682A only uses the data link D6 to input the serial data, namely serial total collinear data input terminus SI ,The data link D7 is used as clock input SCL End, signal and control signal A0 slice Connect with the little controller bus, put high or earth and read and write signals. Reveal access to data of RAM unidirectional, namely microcontroller can to reveal RAM write data by breaking the expicity content of the liquid crystal only inside the uPD16682A at this moment, but can not read the content which reveal RAM.
 3 Serial interface of uPD16682A
Serial interface of uPD16682A the intersection of TTL and level, canonial serial interface, to serial to receive, have concrete baud rate, the intersection of data and requirement of interface protocol while being machine format, inside includes the counter of 3 of shift register and 1 of 8 for 1. UPD16682A catch get shift register of inside their serial data in each serial rising edge of clock, counter auto-increment at the same time. After the serial data are caught to sequentially according to the order of D7- D0, in the periodic rising edge of 8th clock, have already 8 parallel data that serial data are converted to 8 for one received; At the same time, uPD16682A reads and controls the level on the signal line A0, and judge according to A0 signal whether it is a view data or a control command 8 serial data instrument transformer of the load at present or not. To controlling reading operation of signal line A0 to be controlled by the internal timer of uPD16682A, once of automatic operation after every 8 serial clocks.
 4 Control command of uPD16682A
UPD16682A controls level of the signal line A0 to judge whether data that the apparatus receives are a view data or control command outside slice at present through reading it. When A0 level is high, think what is received is a view data; But when A0 level is low, think what is received is that one reveals control command. Can realize most control that operated to uPD16682A with the control command of uPD16682A.
2.3 Hardware interface design of uPD16682A and MSP430F149
Fig. 2 is the system uPD16682A synoptic diagram of interfacing with hardware of MSP430F149. Adopt the intersection of 4MHz and Jingzhen systematically in the picture, set up used clock receive other, by the intersection of system clock and frequency demultiplication. I/O mouth that MSP430F149 links with uPD16682A is defined as exporting, MSP430F149 utilizes 12 A/Ds to gather the voltage signal after the sensor is varied on-chip. After program manipulation, convey to uPD16682A and carry on information display through the mouth of above-mentioned I/O. Because it needs more than ten V to drive the expicity voltage of the liquid crystal, if the system board adopts 3V form to supply power, then the liquid crystal display driver must adopt the boost-up circuit on-chip. UPD16682A adopts 4 internal voltage doubling connection modes in the picture.
2.4 Software design
MSP420F149 allows users standard C to carry on programming, and offer efficient C to compile the environment. If the requirements for run time of procedure are not carried on one’s shoulder or back and carved very much, it should be programming personnel at first to adopt language C to carry on the program development. Main introduction the following about self-defining the intersection of serial port and total collinear programming, recommend one some picture under uPD16682A and draw line function at the same time, offer in quarrel agreeing with the display screen reveal implement method of curve, thus it is possible to offer for the fact that the procedure realized the dynamic display waveform.
2.4.1 Control procedure of the serial port
The microcontroller sends the data of uPD16682A to have two kinds of view datas or display orders. The differentiation of the two is by uPD16692A attribute of controlling the state of the signal line A0, so put Port2.2 port level of MSP430F149 high or can control the state of uPD16682A when putting low.
ACING: 0px; FONT: 14px/24px Song Ti, arial; TEXT-TRANSFORM: none; COLOR: rgb0,0,0 ; TEXT-INDENT: 30px; PADDING-TOP: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb255,255,255 ; orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px” >Listen to the principle according to uPD16682A serial interface, in order that to one load 8 or 16 data of its, must produce a clock to export to uPD16682A through the programming at first. There can be two ways while emerging in the clock. First, utilize the microcontroller timer to cut off, timing exports the high, low level from I/O port sequentially. Second, utilize order producing and synchronous clock pulse of data, uPD16682A through producing a jump transfer of level along sending the location data, then through the displacement one by one, can write a piece of 8 data into the data latch of uPD16682A inside. In the pulsing rising edge of 8th clock, the parallel data of 8 for one of roast meat of data in the latch, reveal icons or carry out the corresponding control command according to Pi’s level of A0 signal line at the same time. Though there are no concrete baud rate and requirement for the data interface protocol in the serial machine format sending here, but during writer, must consider the sequence of each signal under the serial mode conscientiously. The following is to 8 procedures of control command of uPD16682A one load:
void Set_Addressunsigned char column,unsigned char page {
unsigned char ColH,ColL;
//Set up the page address
ColH =page 0xB0;
Write_CommandColH ;
//Set up the column address
ColH =column
相关的主题文章:
 
 
   http://smkbhinus.net/bhinux/index.php?p=blogs/viewstory/39659
 
   http://cosplay123.com/bbs/forum.php?mod=viewthread&tid=20874

 

SimplePortal 2.3.4 © 2008-2011, SimplePortal