Interested?

* Indicates a required field

- from

How to create the menu using the highlight effect

In this tutorial, we will show you how to create the menu using the highlight effect on the CU-Y Series modules CU24063-Y1A. The menu using the highlight effect will look like the image below:

Step 1 – Initialization

Send the following codes to the Y Series module CU24063-Y1A:

//Initialize display
1Bh 40h
//Turn off the cursor
14h
//Increase the screen brightness to 200%
1Fh 58h 08h
//Reduce the character brightness to 29% of the screen brightness
1Fh 28h 67h 50h 03h 00h 00h

Codes breakdown

Line #2

1Bh 40h
1

Line #4

14h
2

Line #6

1Fh 58h
3
08h
4

Line #6

1Fh 28h 67h 50h
5
03h
6
00h 00h
7
  1. Set the display to default settings.
  2. Turns off cursor.
  3. Set the screen brightness.
  4. Parameter for the screen brightness.
    08h: 200%
    Default value is 04h: 100%.
  5. Set the character brightness.
  6. Parameter for the character brightness.
    03h: 29% of the screen brightness.
    Default value is 08h: 100%.
  7. Reserved

Step 2 – Display the menu content

We will display the menu content.

Y Series CU24063-Y1A VFD (vacuum fluorescent display) module with the menu

Exception of moving the cursor, all codes used below to create the menu are ASCII-based.
Send the following codes to the Y Series module CU24063-Y1A:

//Set cursor to x=7, y=0
1Fh 24h 07h 00h 00h 00h
//MAIN MENU
4Dh 41h 49h 4Eh 20h 20h 4Dh 45h 4Eh 55h
//Line feed + Carriage return
0Ah 0Dh
//CHANNELS
43h 48h 41h 4Eh 4Eh 45h 4Ch 53h
//Set cursor to x=16, y=1
1Fh 24h 0Fh 00h 01h 00h
//SWITCHES
53h 57h 49h 54h 43h 48h 45h 53h 20h
//AMPLITUDE
41h 4Dh 50h 4Ch 49h 54h 55h 44h 45h
//Set cursor to x=16, y=2
1Fh 24h 0Fh 00h 02h 00h
//FREQUENCY
46h 52h 45h 51h 55h 45h 4Eh 43h 59h
//PRESSURE
50h 52h 45h 53h 53h 55h 52h 45h
//Set cursor to x=16, y=3
1Fh 24h 0Fh 00h 03h 00h
//SIGNALS
53h 49h 47h 4Eh 41h 4Ch 53h
//Line feed + Carriage return
0Ah 0Dh
//PUMPS
50h 55h 4Dh 50h 53h
//Set cursor to x=16, y=4
1Fh 24h 0Fh 00h 04h 00h
//FLOW
46h 4Ch 4Fh 57h
//Line feed + Carriage return
0Ah 0Dh
//OPTIONS
4Fh 50h 54h 49h 4Fh 4Eh 53h
//Set cursor to x=16, y=5
1Fh 24h 0Fh 00h 05h 00h
//EXIT
45h 58h 49h 54h

Codes breakdown

Line #10

1Fh 24h
1
07h
2
00h
3
00h
4
00h
5
  1. Set cursor position from the parameter 2 and 4.
  2. Sets the horizontal character position.
  3. 00h: required.
  4. Sets the vertical character position.
  5. 00h: required.

Step 3 – Add the highlight effect

We will now add the highlight effect to the word “FREQUENCY”.

Y Series CU24063-Y1A VFD (vacuum fluorescent display) module with highlight effect applied to the menuY Series CU24063-Y1A VFD (vacuum fluorescent display) module close up with highlight effect applied to the menu

Send the following codes to the Y Series module CU24063-Y1A:

//Set cursor to x=16, y=2
1Fh 24h 0Fh 00h 02h 00h
//Change the character brightness to 100% of the screen brightness
1Fh 28h 67h 50h 08h 00h 00h
//FREQUENCY
46h 52h 45h 51h 55h 45h 4Eh 43h 59h

Codes breakdown

Line #52

1Fh 28h 67h 50h
1
08h
2
00h 00h
2

Line #54

46h 52h 45h 51h 55h 45h 4Eh 43h 59h
4
  1. Set the character brightness.
  2. Parameter for the character brightness.
    08h: 100% of the screen brightness.
  3. Reserved
  4. ASCII-based codes for “FREQUENCY”.

Step 4 – Move the highlighted area

In this example we will remove the highlight from the word “FREQUENCY” and highlight the word “AMPLITUDE”.

Y Series CU24063-Y1A VFD (vacuum fluorescent display) module with highlight effect applied to the menuY Series CU24063-Y1A VFD (vacuum fluorescent display) module close up with highlight effect applied to the menu

Send the following codes to the Y Series module CU24063-Y1A:

//Set cursor to x=16, y=2
1Fh 24h 0Fh 00h 02h 00h
//Change the character brightness to 29% of the screen brightness
1Fh 28h 67h 50h 03h 00h 00h
//FREQUENCY
46h 52h 45h 51h 55h 45h 4Eh 43h 59h
//Set cursor to x=0, y=2
1Fh 24h 00h 00h 02h 00h
//Change the character brightness to 100% of the screen brightness
1Fh 28h 67h 50h 08h 00h 00h
//AMPLITUDE
41h 4Dh 50h 4Ch 49h 54h 55h 44h 45h

Codes breakdown

Line #52

1Fh 28h 67h 50h
1
08h
2
00h 00h
3

Line #54

46h 52h 45h 51h 55h 45h 4Eh 43h 59h
4