martes, 14 de junio de 2011

Exercise using the PIC18F4550 LCD Graphic

The following exercise shows how to use a graphic LCD LGM12641BS1R specifically. To control the LCD usethe PIC18F4550. To program the PIC will use the C language using the PCWHD CSS Compiler. Once programmed the ride thereon Proteus designing the circuit to simulate and another with the PCB design tomanufacture the plate.




 The first thing is to make the main code to load into the PIC. First use the library of the 18F4550. After I declare that I will use the PIC's internal crystal and operating at a frequency of 8MHz. Subsequently declared the library that controls the LCD Graphic and then the library that contains the commands necessary to write to the LCD.

Declare an array's number of char to write the name, date and name of the center. Must take these variablesas the Graphic LCD can not write directly on it like a normal LCD. Once written, drawing 2 lines to highlight the name and last name. Using the option to fill circle and created a circle within a circle without filling and the white border. Repeating this in different heights and sizes, helping to create 3 circles. To complete a circle together with two lines.






Once the source code step by designing the plate to emulate in Proteus. To avoid blurring the design much always use tags. We feed the PIC Vcc and Vss. We put a circuit to control and power MRCL PIC reset manually. Finally she gets the Graphic LCD.

 Dowload:
https://sites.google.com/site/franbc0100/nuevalcddeluis.rar?attredirects=0&d=1 

No hay comentarios:

Publicar un comentario