GLCD Font Creator Software can use for GLCD T6963C ?
-
- Posts: 39
- Joined: 06 May 2012 04:30
GLCD Font Creator Software can use for GLCD T6963C ?
hi, I used glcd font creator software for T6369c but it isn't working, i did many way but it isn't happen, which way to help me?
Re: GLCD Font Creator Software can use for GLCD T6963C ?
Hi,
Please, can you explain to me how did you generated the font code and how did you use it in your project ?
You can attach the project here.
Regards,
Filip.
Please, can you explain to me how did you generated the font code and how did you use it in your project ?
You can attach the project here.
Regards,
Filip.
-
- Posts: 39
- Joined: 06 May 2012 04:30
Re: GLCD Font Creator Software can use for GLCD T6963C ?
Thank for your answer me, this is my code and i use proteus to simulation but it is not ok
#include "__SPIT6963C.h"
//Font Generated by MikroElektronika GLCD Font Creator 1.2.0.0
//MikroElektrnika 2011
//http://www.mikroe.com
//GLCD FontName : Tahoma24x29
//GLCD FontSize : 24 x 29
const unsigned short Tahoma24x29[] = {
0x00,
0x00,
0x41,0x00,
0x42,0x00,
0x1D,
0x00,
0x18,0x10,0x00,0x00,
0x17,0x67,0x00,0x00,
0x00,0x7E,0x00,0x00,0x7E,0x00,0x00,0x7E,0x00,0x00,0xFF,0x00,0x00,0xFF,0x00,0x00,0xFF,0x00,0x80,0xE7,0x01,0x80,0xE7,0x01,0x80,0xE7,0x01,0xC0,0xC3,0x03,0xC0,0xC3,0x03,0xC0,0xC3,0x03,0xE0,0xC3,0x07,0xE0,0x81,0x07,0xE0,0x81,0x07,0xF0,0x81,0x0F,0xF0,0x00,0x0F,0xF0,0x00,0x0F,0xF8,0xFF,0x1F,0xF8,0xFF,0x1F,0xF8,0xFF,0x1F,0x7C,0x00,0x3E,0x3C,0x00,0x3C,0x3C,0x00,0x3C,0x3E,0x00,0x7C,0x1E,0x00,0x78,0x1E,0x00,0x78,0x1F,0x00,0xF8,0x0F,0x00,0xF0, // Code for char num 65
0xF8,0xFF,0x01,0xF8,0xFF,0x07,0xF8,0xFF,0x1F,0x78,0x00,0x1F,0x78,0x00,0x3E,0x78,0x00,0x3C,0x78,0x00,0x3C,0x78,0x00,0x3C,0x78,0x00,0x3C,0x78,0x00,0x1C,0x78,0x00,0x1E,0x78,0x80,0x0F,0xF8,0xFF,0x07,0xF8,0xFF,0x07,0xF8,0xFF,0x1F,0x78,0x00,0x3F,0x78,0x00,0x3C,0x78,0x00,0x7C,0x78,0x00,0x78,0x78,0x00,0x78,0x78,0x00,0x78,0x78,0x00,0x78,0x78,0x00,0x78,0x78,0x00,0x3C,0x78,0x00,0x3E,0x78,0x80,0x1F,0xF8,0xFF,0x0F,0xF8,0xFF,0x07,0xF8,0xFF,0x00 // Code for char num 66
};
// Port Expander module connections
sbit SPExpanderRST at RC0_bit;
sbit SPExpanderCS at RC1_bit;
sbit SPExpanderRST_Direction at TRISC0_bit;
sbit SPExpanderCS_Direction at TRISC1_bit;
// End Port Expander module connections
void main() {
char txt1[] = "A";
char txt[] = "B";
unsigned char panel; // Current panel
unsigned int i; // General purpose register
unsigned char curs; // Cursor visibility
unsigned int cposx, cposy; // Cursor x-y position
//#define COMPLETE_EXAMPLE // comment this line to make simpler/smaller example
ANSEL = 0; // Configure AN pins as digital I/O
ANSELH = 0;
C1ON_bit = 0; // Disable comparators
C2ON_bit = 0;
TRISB0_bit = 1; // Set RB0 as input
TRISB1_bit = 1; // Set RB1 as input
TRISB2_bit = 1; // Set RB2 as input
TRISB3_bit = 1; // Set RB3 as input
TRISB4_bit = 1; // Set RB4 as input
// If Port Exp0ander Library uses SPI1 module
SPI1_Init(); // Initialize SPI module used with PortExpander
SPI_T6963C_Config(240, 128,200, 0, 2, 1, 0, 4);
Delay_ms(500);
/*
* Enable both graphics and text display at the same time
*/
SPI_T6963C_graphics(1);
SPI_T6963C_text(1);
panel = 0;
i = 0;
curs = 0;
cposx = cposy = 0;
/*
* Text messages
*/
SPI_T6963C_Set_Font_Adv(&Tahoma24x29, 1, 0);
SPI_T6963C_Write_text_Adv(txt, 150, 20);
SPI_T6963C_Write_text_Adv(txt1, 150, 90);
delay_ms(500);
}
[img][img]http://nr5.upanh.com/b5.s35.d2/400186d636b3d353a3c36f4d67ff1466_49994325.untitled.png[/img][/img]
#include "__SPIT6963C.h"
//Font Generated by MikroElektronika GLCD Font Creator 1.2.0.0
//MikroElektrnika 2011
//http://www.mikroe.com
//GLCD FontName : Tahoma24x29
//GLCD FontSize : 24 x 29
const unsigned short Tahoma24x29[] = {
0x00,
0x00,
0x41,0x00,
0x42,0x00,
0x1D,
0x00,
0x18,0x10,0x00,0x00,
0x17,0x67,0x00,0x00,
0x00,0x7E,0x00,0x00,0x7E,0x00,0x00,0x7E,0x00,0x00,0xFF,0x00,0x00,0xFF,0x00,0x00,0xFF,0x00,0x80,0xE7,0x01,0x80,0xE7,0x01,0x80,0xE7,0x01,0xC0,0xC3,0x03,0xC0,0xC3,0x03,0xC0,0xC3,0x03,0xE0,0xC3,0x07,0xE0,0x81,0x07,0xE0,0x81,0x07,0xF0,0x81,0x0F,0xF0,0x00,0x0F,0xF0,0x00,0x0F,0xF8,0xFF,0x1F,0xF8,0xFF,0x1F,0xF8,0xFF,0x1F,0x7C,0x00,0x3E,0x3C,0x00,0x3C,0x3C,0x00,0x3C,0x3E,0x00,0x7C,0x1E,0x00,0x78,0x1E,0x00,0x78,0x1F,0x00,0xF8,0x0F,0x00,0xF0, // Code for char num 65
0xF8,0xFF,0x01,0xF8,0xFF,0x07,0xF8,0xFF,0x1F,0x78,0x00,0x1F,0x78,0x00,0x3E,0x78,0x00,0x3C,0x78,0x00,0x3C,0x78,0x00,0x3C,0x78,0x00,0x3C,0x78,0x00,0x1C,0x78,0x00,0x1E,0x78,0x80,0x0F,0xF8,0xFF,0x07,0xF8,0xFF,0x07,0xF8,0xFF,0x1F,0x78,0x00,0x3F,0x78,0x00,0x3C,0x78,0x00,0x7C,0x78,0x00,0x78,0x78,0x00,0x78,0x78,0x00,0x78,0x78,0x00,0x78,0x78,0x00,0x78,0x78,0x00,0x3C,0x78,0x00,0x3E,0x78,0x80,0x1F,0xF8,0xFF,0x0F,0xF8,0xFF,0x07,0xF8,0xFF,0x00 // Code for char num 66
};
// Port Expander module connections
sbit SPExpanderRST at RC0_bit;
sbit SPExpanderCS at RC1_bit;
sbit SPExpanderRST_Direction at TRISC0_bit;
sbit SPExpanderCS_Direction at TRISC1_bit;
// End Port Expander module connections
void main() {
char txt1[] = "A";
char txt[] = "B";
unsigned char panel; // Current panel
unsigned int i; // General purpose register
unsigned char curs; // Cursor visibility
unsigned int cposx, cposy; // Cursor x-y position
//#define COMPLETE_EXAMPLE // comment this line to make simpler/smaller example
ANSEL = 0; // Configure AN pins as digital I/O
ANSELH = 0;
C1ON_bit = 0; // Disable comparators
C2ON_bit = 0;
TRISB0_bit = 1; // Set RB0 as input
TRISB1_bit = 1; // Set RB1 as input
TRISB2_bit = 1; // Set RB2 as input
TRISB3_bit = 1; // Set RB3 as input
TRISB4_bit = 1; // Set RB4 as input
// If Port Exp0ander Library uses SPI1 module
SPI1_Init(); // Initialize SPI module used with PortExpander
SPI_T6963C_Config(240, 128,200, 0, 2, 1, 0, 4);
Delay_ms(500);
/*
* Enable both graphics and text display at the same time
*/
SPI_T6963C_graphics(1);
SPI_T6963C_text(1);
panel = 0;
i = 0;
curs = 0;
cposx = cposy = 0;
/*
* Text messages
*/
SPI_T6963C_Set_Font_Adv(&Tahoma24x29, 1, 0);
SPI_T6963C_Write_text_Adv(txt, 150, 20);
SPI_T6963C_Write_text_Adv(txt1, 150, 90);
delay_ms(500);
}
[img][img]http://nr5.upanh.com/b5.s35.d2/400186d636b3d353a3c36f4d67ff1466_49994325.untitled.png[/img][/img]
-
- Posts: 39
- Joined: 06 May 2012 04:30
Re: GLCD Font Creator Software can use for GLCD T6963C ?
Anybody to help me? this is the topic in my university, everything having delayed because this problem, i had founding many way to do it but it not ok (
Re: GLCD Font Creator Software can use for GLCD T6963C ?
Hi,
Well, first of all Proteus is really not supported mikroElektronika certified environment on which your test can be performed.
Did you try this on the real hardware ?
Did you generate the font for the new GLCD library from the GLCD Font Creator Software ?
Regards,
Filip.
Well, first of all Proteus is really not supported mikroElektronika certified environment on which your test can be performed.
Did you try this on the real hardware ?
Did you generate the font for the new GLCD library from the GLCD Font Creator Software ?
Regards,
Filip.
-
- Posts: 39
- Joined: 06 May 2012 04:30
Re: GLCD Font Creator Software can use for GLCD T6963C ?
yes i did, but it is working not ok, i using proteus to simmulator, i used example code of glcd or lcd in Mikroc pro for pic to running by Proteus , it is working ok. The example that i used is SPI_GLCD T6963C.
So , have you got any font example code of SPI_GLCDT6963C in mikroc pro for pic ?
if u had, please up it to me , thanks first!
So , have you got any font example code of SPI_GLCDT6963C in mikroc pro for pic ?
if u had, please up it to me , thanks first!
-
- Posts: 39
- Joined: 06 May 2012 04:30
Re: GLCD Font Creator Software can use for GLCD T6963C ?
No one to help me ? (
Re: GLCD Font Creator Software can use for GLCD T6963C ?
Hi,
Try setting the font like this :
Regards,
Filip.
Try setting the font like this :
Code: Select all
SPI_T6963C_Set_Font_Adv(&Tahoma24x29, T6963C_WHITE, 0);
Filip.
-
- Posts: 39
- Joined: 06 May 2012 04:30