Noritake itron CU24043-Y1A Скачать руководство пользователя страница 13

 

DOCUMENT NUMBER :E-M-0001-00

 

C++ Sample Code                                                                                                       Y-Series  

 

                                                                                             13/18                                                                        E2

5008

00 

4.6 

User-Definable Font – Flash ROM 

 
 

 

 

 
 
 
 
 
 

 
DEFINING FONTS (Fig. 4-9 and Fig. 4-10) 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

DISPLAYING CHARACTERS (Fig. 4-8) 

 
 
 
 
 
 

 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 

 

B7 

(MSB) 

B6 B5 B4 B3 B2 B1 B0 

(LSB) 

BYTE 1 

P8  P7 P6 P5 P4 P3 P2 

P1 

BYTE 2 

P16 P15 

P14 

P13 

P12 

P11 

P10  P9 

BYTE 3 

P24  P23 P22 P21 P20 P19 P18 

P17 

BYTE 4 

P32  P31 P30 P29 P28 P27 P26 

P25 

BYTE 5 

P40  P39 P38 P37 P36 P35 P34 

P33 

Each bit value is logic level one, in Fig. 4-9, Fig. 4-10 and Table 4-2, if a 
pixel is ON, whereas the value is logic level zero if a pixel is OFF. The 
character code address location of Fig. 4-9 and Fig. 4-10 are 20h and 
21h respectively in this example.  

Fig. 4-9 

Fig. 4-10 

Table 4-2 

Fig. 4-8 

void defining_rom_user_font( ) 

   const int command_set [1137] = { 
    0x1F, 0x28, 0x65, 0x01, 0x49, 0x4E, //User Setup Mode 
    0x1F, 0x28, 0x65, 0x14, 

//Define ROM User Font 

    0x00, 

 

 

 

//BYTE 1 DATA 

    0x62, 

 

 

 

//BYTE 2 DATA 

    0xCE, 

 

 

 

//BYTE 3 DATA 

    0x31, 

 

 

 

//BYTE 4 DATA 

    0x04, 

 

 

 

//BYTE 5 DATA 

    0x82, 

 

 

 

//BYTE 1 DATA 

    0x24, 

 

 

 

//BYTE 2 DATA 

    0xA5, 

 

 

 

//BYTE 3 DATA 

Example 4-7 

User-definable font – Flash ROM is stored (224 characters: 
20h ~ FFh) and displayed in a horizontal orientation. All 
224 character data has to be defined at once, so dummy 
blank data is stored in the unused memory space. Example 
4-7 defines two symbols (Fig. 4-9 and Fig. 4-10), and 
Example 4-8 displays the symbols and some characters 
(Fig. 4-8). An initialization of the module does not clear 
defined ROM user fonts. 

    0x12, 

 

 

 

//BYTE 4 DATA 

    0x11, 

 

 

 

//BYTE 5 DATA 

    0x00, 0x00, 0x00, 0x00, 0x00, 

//Dummy Blank Data

    ·····Input 5×220 = 1,100 0x00s as dummy blank data····· 
    0x00, 0x00, 0x00, 0x00, 0x00, 

//Dummy Blank Data

    0x1F, 0x28, 0x65, 0x02, 0x4F, 0x55, 0x54}; 
     //User 

Setup 

Mode 

   for(n = 0; n < 1137; n++)    
   { 
      data = command_set [n]; 
      parallel_out (data); 
   } 

void displaying_rom_user_font( ) 

const int command_set [42] = { 
 0x1F, 0x24, 0x05, 0x00, 0x00, 0x00, //Cursor Position 
 0x53, 0x50, 0x45, 0x41, 0x4B, 0x45, 0x52, 0x20, 0x56, 
 0x4F, 0x4C, 0x55, 0x4D, 0x45, 

//Character Code 

 0x1B, 0x74, 0xFF,   

 

//Select Font Type 

 0x1F, 0x24, 0x0A, 0x00, 0x02, 0x00, //Cursor Position 
 

0x20, 

0x21, 

   //Character 

Code 

Example 4-8 

 0x1B, 0x74, 0x00,   

 

//Select Font Type 

 0x1F, 0x24, 0x0D, 0x00, 0x02, 0x00  //Cursor Position 
 

0x34, 

0x35}; 

   //Character 

Code 

   for(n = 0; n < 42; n++)    
   { 
      data = command_set [n]; 
      parallel_out (data); 
   } 

Содержание itron CU24043-Y1A

Страница 1: ...e Code Control VFD Module with Host System DOCMENT NO E M 0001 00 DATE OF ISSUE Jan 29 2009 REVISION Jan 29 2009 Noritake Co Inc 2635 Clearbrook Drive Arlington Height IL 60005 www noritake elec com T...

Страница 2: ...2 Synchronous Serial Communications 8 3 2 1 Sample Circuit 8 3 2 2 Accessories 8 3 2 3 Sample Code 9 4 Sample Command Sets 10 4 1 Displaying Characters 10 4 2 Blinking Characters 10 4 3 Underlining C...

Страница 3: ...cause a VFD module uses high voltage exceeding 30 50 volts Do not unplug the power and or data cables of a VFD module during operating condition because unrecoverable damage may result A VFD module ne...

Страница 4: ...Pin 5 Pin 3 Pin 1 Host System VFD Module PBUSY WR D0 D7 Fig 2 2 Fig 2 1 Fig 2 2 shows a sample circuit containing the PIC microcontroller PIC16F877 Noritake provides these parallel interface accessori...

Страница 5: ..._ms 1000 warm up delay set_tris_b 0x00 B0 B7 output set_tris_c 0x40 C6 input C7 output output_b 0x00 B0 B7 0 output_high WR WR 1 parallel_out 0x1B display initialization parallel_out 0x40 Execute a de...

Страница 6: ...rial 5VDC CMOS level interface Either the asynchronous or synchronous mode is selectable by the jumper setting The CUXXXXX Y100 model has an asynchronous serial RS232 level interface Pin 1 Pin 2 Pin 3...

Страница 7: ...delay clock 20000000 for 20MHz clock use EUSART module baud rate 38 400bps format Start 1bit Data 8bit Stop 1bit use rs232 BAUD 38400 XMIT PIN_C6 RCV PIN_C7 use fast_io D use D port fast I O define ou...

Страница 8: ...n 4 Pin 5 Pin 6 Host System VFD Module SBUSY SCK SIN Fig 3 7 Fig 3 8 Noritake provides these serial interface accessories For further information please contact your local sales representative Fig 3 9...

Страница 9: ...ecuting_demo for data 0x20 data 0x7F data synchro_out data void synchro_out int data if SBUSY 1 wait until SBUSY 0 while input SBUSY 1 output_low CLK CLK 0 if data 0x01 0x01 if bit_0 LSB 1 D0 1 output...

Страница 10: ...t 60 0x31 0x78 0x31 Character Code 0x1F 0x28 0x67 0x40 0x01 0x02 Character Size 0x31 0x78 0x32 Character Code 0x1F 0x28 0x67 0x40 0x02 0x02 Character Size 0x32 0x78 0x32 Character Code 0x1F 0x24 0x0C...

Страница 11: ...d_set 123 0x1F 0x58 0x08 Display Brightness 0x1F 0x24 0x07 0x00 0x00 0x00 Cursor Position 0x1F 0x28 0x67 0x50 0x03 0x00 0x00 Character Brightness 0x4D 0x41 0x49 0x4E Character Code 0x1F 0x24 0x0D 0x00...

Страница 12: ...cation of Fig 4 6 and Fig 4 7 are 50h and 51h respectively in this example 0x05 The Number of bytes for a Character 0x82 BYTE 1 DATA 0x24 BYTE 2 DATA 0xA5 BYTE 3 DATA 0x12 BYTE 4 DATA 0x11 BYTE 5 DATA...

Страница 13: ...DATA Example 4 7 User definable font Flash ROM is stored 224 characters 20h FFh and displayed in a horizontal orientation All 224 character data has to be defined at once so dummy blank data is store...

Страница 14: ...02 Alternative 5 7 Matrix Font Fig 4 12 void alternative_magnified_font const int command_set 36 0x1F 0x28 0x67 0x40 0x02 0x02 Character Size 0x21 0x31 0x3F 0x59 0x66 0x69 0x74 Character Code 0x1F 0x2...

Страница 15: ...on 0x1B 0x74 0x01 Character Type Code 0x80 0x81 0x82 0x83 0x84 0x85 0x94 0x8F 0x8E 0x8D 0x8C Character Code 0x1F 0x24 0x08 0x00 0x01 0x00 Cursor Position 0x97 0x98 0x99 0x9A 0xE8 0xE9 0xEA 0xEB Charac...

Страница 16: ...Power Save Mode minimizes the standby power The mode is cancelled when the next command is received void displaying_firmware_version const int command_set 17 0x1F 0x28 0x65 0x01 0x49 0x4E User Setup M...

Страница 17: ...Green Filter Fig 5 3 With Blue Filter The original color of illumination is blue green Fig 5 1 and it has a wide range of the color spectrum Therefore the color can be changed with optional color fil...

Страница 18: ...DOCUMENT NUMBER E M 0001 00 C Sample Code Y Series 18 18 E2 5008 00 6 Revision History Version Date Revision Description Prepared Approved 00 01 29 09 Initial Issued M S A N...

Отзывы: