Digital Power Starter Kit 3 Firmware
dsPIC33C Buck Converter Voltage Mode Control Example
LC Display Interface Declarations

LC display SPI interface GPIO declarations. More...

+ Collaboration diagram for LC Display Interface Declarations:
#define LCD_SCL_SetHigh()   _LATC5 = 1
 LC Display Interface Declarations. More...
 
#define LCD_SCL_SetLow()   _LATC5 = 0
 
#define LCD_SCL_Toggle()   _LATC5 ^= 1
 
#define LCD_SCL_GetValue()   _RC5
 
#define LCD_SCL_SetDigitalInput()   _TRISC5 = 1
 
#define LCD_SCL_SetDigitalOutput()   _TRISC5 = 0
 
#define LCD_SDI_SetHigh()   _LATC4 = 1
 
#define LCD_SDI_SetLow()   _LATC4 = 0
 
#define LCD_SDI_Toggle()   _LATC4 ^= 1
 
#define LCD_SDI_GetValue()   _RC4
 
#define LCD_SDI_SetDigitalInput()   _TRISC4 = 1
 
#define LCD_SDI_SetDigitalOutput()   _TRISC4 = 0
 
#define LCD_CS_SetHigh()   _LATD8 = 1
 
#define LCD_CS_SetLow()   _LATD8 = 0
 
#define LCD_CS_Toggle()   _LATD8 ^= 1
 
#define LCD_CS_GetValue()   _RD8
 
#define LCD_CS_SetDigitalInput()   _TRISD8 = 1
 
#define LCD_CS_SetDigitalOutput()   _TRISD8 = 0
 
#define LCD_RST_SetHigh()   _LATC8 = 1
 
#define LCD_RST_SetLow()   _LATC8 = 0
 
#define LCD_RST_Toggle()   _LATC8 ^= 1
 
#define LCD_RST_GetValue()   _RC8
 
#define LCD_RST_SetDigitalInput()   _TRISC8 = 1
 
#define LCD_RST_SetDigitalOutput()   _TRISC8 = 0
 
#define LCD_RS_SetHigh()   _LATC9 = 1
 
#define LCD_RS_SetLow()   _LATC9 = 0
 
#define LCD_RS_Toggle()   _LATC9 ^= 1
 
#define LCD_RS_GetValue()   _RC9
 
#define LCD_RS_SetDigitalInput()   _TRISC9 = 1
 
#define LCD_RS_SetDigitalOutput()   _TRISC9 = 0
 

Detailed Description

LC display SPI interface GPIO declarations.

Macro Definition Documentation

◆ LCD_CS_GetValue

#define LCD_CS_GetValue ( )    _RD8

Definition at line 1616 of file dpsk3_hwdescr.h.

◆ LCD_CS_SetDigitalInput

#define LCD_CS_SetDigitalInput ( )    _TRISD8 = 1

Definition at line 1617 of file dpsk3_hwdescr.h.

◆ LCD_CS_SetDigitalOutput

#define LCD_CS_SetDigitalOutput ( )    _TRISD8 = 0

Definition at line 1618 of file dpsk3_hwdescr.h.

◆ LCD_CS_SetHigh

#define LCD_CS_SetHigh ( )    _LATD8 = 1

Definition at line 1613 of file dpsk3_hwdescr.h.

◆ LCD_CS_SetLow

#define LCD_CS_SetLow ( )    _LATD8 = 0

Definition at line 1614 of file dpsk3_hwdescr.h.

◆ LCD_CS_Toggle

#define LCD_CS_Toggle ( )    _LATD8 ^= 1

Definition at line 1615 of file dpsk3_hwdescr.h.

◆ LCD_RS_GetValue

#define LCD_RS_GetValue ( )    _RC9

Definition at line 1630 of file dpsk3_hwdescr.h.

◆ LCD_RS_SetDigitalInput

#define LCD_RS_SetDigitalInput ( )    _TRISC9 = 1

Definition at line 1631 of file dpsk3_hwdescr.h.

◆ LCD_RS_SetDigitalOutput

#define LCD_RS_SetDigitalOutput ( )    _TRISC9 = 0

Definition at line 1632 of file dpsk3_hwdescr.h.

◆ LCD_RS_SetHigh

#define LCD_RS_SetHigh ( )    _LATC9 = 1

Definition at line 1627 of file dpsk3_hwdescr.h.

◆ LCD_RS_SetLow

#define LCD_RS_SetLow ( )    _LATC9 = 0

Definition at line 1628 of file dpsk3_hwdescr.h.

◆ LCD_RS_Toggle

#define LCD_RS_Toggle ( )    _LATC9 ^= 1

Definition at line 1629 of file dpsk3_hwdescr.h.

◆ LCD_RST_GetValue

#define LCD_RST_GetValue ( )    _RC8

Definition at line 1623 of file dpsk3_hwdescr.h.

◆ LCD_RST_SetDigitalInput

#define LCD_RST_SetDigitalInput ( )    _TRISC8 = 1

Definition at line 1624 of file dpsk3_hwdescr.h.

◆ LCD_RST_SetDigitalOutput

#define LCD_RST_SetDigitalOutput ( )    _TRISC8 = 0

Definition at line 1625 of file dpsk3_hwdescr.h.

◆ LCD_RST_SetHigh

#define LCD_RST_SetHigh ( )    _LATC8 = 1

Definition at line 1620 of file dpsk3_hwdescr.h.

◆ LCD_RST_SetLow

#define LCD_RST_SetLow ( )    _LATC8 = 0

Definition at line 1621 of file dpsk3_hwdescr.h.

◆ LCD_RST_Toggle

#define LCD_RST_Toggle ( )    _LATC8 ^= 1

Definition at line 1622 of file dpsk3_hwdescr.h.

◆ LCD_SCL_GetValue

#define LCD_SCL_GetValue ( )    _RC5

Definition at line 1602 of file dpsk3_hwdescr.h.

◆ LCD_SCL_SetDigitalInput

#define LCD_SCL_SetDigitalInput ( )    _TRISC5 = 1

Definition at line 1603 of file dpsk3_hwdescr.h.

◆ LCD_SCL_SetDigitalOutput

#define LCD_SCL_SetDigitalOutput ( )    _TRISC5 = 0

Definition at line 1604 of file dpsk3_hwdescr.h.

◆ LCD_SCL_SetHigh

#define LCD_SCL_SetHigh ( )    _LATC5 = 1

LC Display Interface Declarations.

The LCD device driver is controlling the on-board LC display via a SPI interface. The required SPI interface device pin assignments are declared here.

Definition at line 1599 of file dpsk3_hwdescr.h.

◆ LCD_SCL_SetLow

#define LCD_SCL_SetLow ( )    _LATC5 = 0

Definition at line 1600 of file dpsk3_hwdescr.h.

◆ LCD_SCL_Toggle

#define LCD_SCL_Toggle ( )    _LATC5 ^= 1

Definition at line 1601 of file dpsk3_hwdescr.h.

◆ LCD_SDI_GetValue

#define LCD_SDI_GetValue ( )    _RC4

Definition at line 1609 of file dpsk3_hwdescr.h.

◆ LCD_SDI_SetDigitalInput

#define LCD_SDI_SetDigitalInput ( )    _TRISC4 = 1

Definition at line 1610 of file dpsk3_hwdescr.h.

◆ LCD_SDI_SetDigitalOutput

#define LCD_SDI_SetDigitalOutput ( )    _TRISC4 = 0

Definition at line 1611 of file dpsk3_hwdescr.h.

◆ LCD_SDI_SetHigh

#define LCD_SDI_SetHigh ( )    _LATC4 = 1

Definition at line 1606 of file dpsk3_hwdescr.h.

◆ LCD_SDI_SetLow

#define LCD_SDI_SetLow ( )    _LATC4 = 0

Definition at line 1607 of file dpsk3_hwdescr.h.

◆ LCD_SDI_Toggle

#define LCD_SDI_Toggle ( )    _LATC4 ^= 1

Definition at line 1608 of file dpsk3_hwdescr.h.