-
Notifications
You must be signed in to change notification settings - Fork 0
PT6311
The PT6311 is a VDF driver IC. To control the display we have to send different commands from the Arduino to the IC. The topics below cover the commands used in this library, for more in depth information about the PT6311 please read the datasheet: http://www.princeton.com.tw/Portals/0/Product/PT6311_10.pdf
This command is used for setting the matrix size for the display, the PT6311 can handle different matrix sizes from 8 by 20 segments to 16 by 12 segments. For the M11BT222A we need 11 by 17 segments. The command for this is: 00xx 1010, the value of the x position are not relevant, the command in hexadecimal is: 0x0A.
The data setting commands are for getting or setting specific data from the IC. In my library we only use one data setting command, this is used for sending incremental data to the IC. The command for this is: 01xx 0000, the value of the x position are not relevant, the command in hexadecimal is: 0x40.
This is used for setting a RAM address, the address range is from 0 (0x00) to 47 (0x2F). The command for this is: 11xx xxxx, the value of the x makes up the desired address.
The PT6311 uses PWM to increase or decrease the brightness. The brightness ranges from 1 of 16 pulses to 14 of 16 pulses on. This command can also be used to turn of the display completely. The command for this is: 10xx y zzz value of the x position are not relevant, the value of y is to enable (1) or disable (0) the display and the value of the z position is setting the PWM.
The brightness table is:
| Code | Value |
|---|---|
| 000 | 1/16 |
| 001 | 2/16 |
| 010 | 4/16 |
| 011 | 10/16 |
| 100 | 11/16 |
| 101 | 12/16 |
| 110 | 13/16 |
| 111 | 14/16 |