CuVoodoo STM32F1 firmware template
|
library to drive vacuum fluorescent display using supertex HV518 shift register VFD drivers (code) More...
Go to the source code of this file.
Macros | |
#define | VFD_PORT GPIOA |
GPIO port. | |
#define | VFD_PORT_RCC RCC_GPIOA |
GPIO port peripheral clock. | |
#define | VFD_STR GPIO6 |
strobe pin to enable high voltage output, high voltage is output on low | |
#define | VFD_NLE GPIO4 |
latch enable pin, stores the shifted data on low, output the parallel data on high | |
#define | VFD_SPI_RCC RCC_SPI1 |
SPI peripheral. | |
#define | VFD_SPI_PORT GPIOA |
GPIO port. | |
#define | VFD_SPI_PORT_RCC RCC_GPIOA |
GPIO port peripheral clock. | |
#define | VFD_SPI_IRQ NVIC_SPI1_IRQ |
SPI peripheral interrupt signal. | |
#define | VFD_SPI_ISR spi1_isr |
SPI interrupt service routine. | |
#define | VFD_CLK GPIO_SPI1_SCK |
clock signal | |
#define | VFD_DIN GPIO_SPI1_MOSI |
data input, where the data is shifted to | |
#define | VFD_TIMER_RCC RCC_TIM2 |
timer peripheral clock | |
#define | VFD_TIMER_IRQ NVIC_TIM2_IRQ |
timer interrupt signal | |
#define | VFD_TIMER_ISR tim2_isr |
timer interrupt service routine | |
Functions | |
void | vfd_digit (uint8_t nb, char c) |
set character to digit block More... | |
void | vfd_matrix (uint8_t nb, char c) |
set character to matrix block More... | |
void | vfd_clear (void) |
clear VFD display | |
void | vfd_test (void) |
test VFD display (light up all segments) | |
void | vfd_on (void) |
switch VFD on | |
void | vfd_off (void) |
switch VFD display off | |
void | vfd_setup (void) |
setup VFD | |
void | VFD_SPI_ISR (void) |
SPI interrupt service routine called when data has been transmitted. | |
void | VFD_TIMER_ISR (void) |
timer interrupt service routine called time passed | |
Variables | |
static const uint8_t | ascii_7segments [] |
ASCII characters encoded for the 7 segments digit block. More... | |
static const uint8_t | font5x7 [][5] |
font for the 5x7 dot matrix block More... | |
static const uint8_t | pict5x7 [][5] |
pictures for the 5x7 dot matrix block More... | |
static uint16_t | driver_data [VFD_MATRIX][VFD_DRIVERS *2] = {0} |
the 32 bits values to be shifted out to the VFD driver More... | |
static volatile uint8_t | spi_i = 0 |
which driver data is being transmitted | |
static volatile uint8_t | vfd_grid = 0 |
which grid/part to activate More... | |
static const uint32_t | digit_mask = 0x00fffff0 |
the bits used for selecting then digit and 7 segment anodes More... | |
library to drive vacuum fluorescent display using supertex HV518 shift register VFD drivers (code)
the current configuration is for a VFD extracted from a Samsung SER-6500 cash register
Definition in file vfd_hv518.c.
void vfd_digit | ( | uint8_t | nb, |
char | c | ||
) |
set character to digit block
[in] | nb | digit block to set |
[in] | c | ASCII character to set |
nb
to enable the dot Definition at line 305 of file vfd_hv518.c.
void vfd_matrix | ( | uint8_t | nb, |
char | c | ||
) |
set character to matrix block
[in] | nb | matrix block to set |
[in] | c | ASCII character to set |
Definition at line 345 of file vfd_hv518.c.
|
static |
ASCII characters encoded for the 7 segments digit block.
Definition at line 68 of file vfd_hv518.c.
|
static |
the bits used for selecting then digit and 7 segment anodes
Definition at line 303 of file vfd_hv518.c.
|
static |
the 32 bits values to be shifted out to the VFD driver
Definition at line 293 of file vfd_hv518.c.
|
static |
font for the 5x7 dot matrix block
first value is left-most line, LSB is top dot, MSB is not used
Definition at line 170 of file vfd_hv518.c.
|
static |
pictures for the 5x7 dot matrix block
first value is left-most line, LSB is top dot, MSB is not used
Definition at line 271 of file vfd_hv518.c.
|
static |
which grid/part to activate
Definition at line 299 of file vfd_hv518.c.