You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WriteCommandLCD(0x38); //Command to select 8 bit interface
LCDDelay1600();
WriteCommandLCD(0x38); //Command to select 8 bit interface
LCDDelay(); //Small delay
WriteCommandLCD(0x38); //Command to select 8 bit interface
LCDDelay();
WriteCommandLCD(0x08); //Command to off cursor,display off
WriteCommandLCD(0x01); //Command to Clear LCD
LCDDelay1600();
WriteCommandLCD(0x06); //Command for setting entry mode
WriteCommandLCD(0x0f); //Command to on cursor,blink cursor
WriteCommandLCD(0x02); //Command return the cursor to home
LCDDelay1600();
}
/* Writes a command byte to LCD */
void WriteCommandLCD(unsigned char CommandByte)
{
GPIO_setLow(myGpio, RS); //Clear RS pin to write command
SendByte(CommandByte);
LCDDelay(); //Small delay
}
/* Send a byte of data to LCD */
void SendByte(unsigned char Value)
{
unsigned char temp;
/* Writes a Data byte to LCD */
void WriteDataLCD(unsigned char DataByte)
{
GPIO_setHigh(myGpio, RS); //Set RS pin to 1 to write Data
SendByte(DataByte);
LCDDelay(); //Small delay
}
/* Small delay */
void LCDDelay(void)
{
DELAY_US(50);
}
/* Big delay */
void LCDDelay1600(void)
{
DELAY_US(1600);
}
/* Makes cursor visible */
void CursorON(void)
{
WriteCommandLCD(0x0f); //Command to switch on cursor
}
/* Makes cursor invisible */
void CursorOFF(void)
{
WriteCommandLCD(0x0c); //Command to switch off cursor
}
/* Displays a message on LCD */
void DisplayLCD(char LineNumber,char *Message)
{
int a;
if(LineNumber ==1)
{ //First Line
WriteCommandLCD(0x80); //Select the first line
}
else
{ //Second line
WriteCommandLCD(0xc0); //Select the second line
}
for(a=0;a<16;a++)
{
WriteDataLCD(*Message); //Display a character
Message++; //Increment pointer
}
return;
}
i want to interface LCD to f28027 microcontroller and i am facing issues debugging the errors.
the errors are:
**** Build of configuration Debug for project lcd ****
"C:\ti\ccs1281\ccs\utils\bin\gmake" -k -j 8 all -O
//
/ LCD Interface - 8 bit mode /
/ /
/ LCD Connection:- /
/ ---------------- /
/ D0 -> GPIO0 /
/ D1 -> GPIO1 /
/ D2 -> GPIO2 /
/ D3 -> GPIO3 /
/ D4 -> GPIO4 /
/ D5 -> GPIO5 /
/ D6 -> GPIO6 /
/ D7 -> GPIO7 /
/ /
/ RS -> GPIO12 /
/ RW -> GND /
/ E -> GPIO19 /
/ /
/ /
//
#include "DSP28x_Project.h" // Device Headerfile and Examples Include File
#include "gpio.h"
#include "pie.h"
#include "piccolo_lcd.h"
void WriteCommandLCD(unsigned char CommandByte);
void WriteDataLCD(unsigned char DataByte);
void LCDDelay(void);
void LCDDelay1600(void);
void SendByte(unsigned char Value);
#define RS GPIO_Number_12
#define E GPIO_Number_19
#define D0 GPIO_Number_0
#define D1 GPIO_Number_1
#define D2 GPIO_Number_2
#define D3 GPIO_Number_3
#define D4 GPIO_Number_4
#define D5 GPIO_Number_5
#define D6 GPIO_Number_6
#define D7 GPIO_Number_7
GPIO_Handle myGpio;
/* Initializes LCD */
void InitializeLCD(void)
{
GPIO_setHigh(myGpio, E);
LCDDelay1600();
LCDDelay1600();
LCDDelay1600();
LCDDelay1600();
}
/* Writes a command byte to LCD */
void WriteCommandLCD(unsigned char CommandByte)
{
GPIO_setLow(myGpio, RS); //Clear RS pin to write command
SendByte(CommandByte);
LCDDelay(); //Small delay
}
/* Send a byte of data to LCD */
void SendByte(unsigned char Value)
{
unsigned char temp;
}
/* Writes a Data byte to LCD */
void WriteDataLCD(unsigned char DataByte)
{
GPIO_setHigh(myGpio, RS); //Set RS pin to 1 to write Data
SendByte(DataByte);
LCDDelay(); //Small delay
}
/* Small delay */
void LCDDelay(void)
{
DELAY_US(50);
}
/* Big delay */
void LCDDelay1600(void)
{
DELAY_US(1600);
}
/* Makes cursor visible */
void CursorON(void)
{
WriteCommandLCD(0x0f); //Command to switch on cursor
}
/* Makes cursor invisible */
void CursorOFF(void)
{
WriteCommandLCD(0x0c); //Command to switch off cursor
}
/* Displays a message on LCD */
void DisplayLCD(char LineNumber,char *Message)
{
int a;
if(LineNumber ==1)
{ //First Line
WriteCommandLCD(0x80); //Select the first line
}
else
{ //Second line
WriteCommandLCD(0xc0); //Select the second line
}
for(a=0;a<16;a++)
{
WriteDataLCD(*Message); //Display a character
Message++; //Increment pointer
}
return;
}
i want to interface LCD to f28027 microcontroller and i am facing issues debugging the errors.
the errors are:
**** Build of configuration Debug for project lcd ****
"C:\ti\ccs1281\ccs\utils\bin\gmake" -k -j 8 all -O
Building file: "../main.c"
Invoking: C2000 Compiler
"C:/ti/ccs1281/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --include_path="C:/Users/91860/OneDrive/Desktop/ccs/lcd" --include_path="C:/Users/91860/OneDrive/Desktop/ccs/lcd" --include_path="C:/ti/ccs1281/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c"
Finished building: "../main.c"
Building target: "lcd.out"
Invoking: C2000 Linker
"C:/ti/ccs1281/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi -z -m"lcd.map" --stack_size=0x300 --warn_sections -i"C:/ti/ccs1281/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib" -i"C:/Users/91860/OneDrive/Desktop/ccs/lcd" -i"C:/ti/ccs1281/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" -i"C:/ti/ccs1281/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib" -i"C:/ti/ccs1281/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="lcd_linkInfo.xml" --rom_model -o "lcd.out" "./main.obj" "../28027_RAM_lnk.cmd" "../rts2800_ml.lib" -l"C:/ti/ccs1281/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib" -llibc.a
fatal error #6001: cannot open file "C:/ti/ccs1281/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/lib": Permission denied
**** Build Finished ****
![Screenshot 2024-10-16 235045](https://private-user-images.githubusercontent.com/185260860/377181856-96c1b228-4b8e-4c90-8b25-9fcff1acdc3e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1NTkxMTAsIm5iZiI6MTczOTU1ODgxMCwicGF0aCI6Ii8xODUyNjA4NjAvMzc3MTgxODU2LTk2YzFiMjI4LTRiOGUtNGM5MC04YjI1LTlmY2ZmMWFjZGMzZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQxODQ2NTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mMDE1MjMxZTcyZGQ2ZWExYTJkOWYzYjRjN2ZlM2FkNGRhNDlhZGI4ZjQ5ODQzM2JhZTQ2MjI0NjQ2MDE2OTQxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.491fTHsvSFBntJUi2Or6A2vykiI5xYbeoxATGPVMY90)
![Screenshot 2024-10-16 235059](https://private-user-images.githubusercontent.com/185260860/377181870-942217ad-51bf-4e72-9633-991e4183e14e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSI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QmWC1BbXotRGF0ZT0yMDI1MDIxNFQxODQ2NTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kNGQ4MWZkN2I0M2JlN2JjZDFjNTk5M2JmOGRiNTE3YWQ0ZjJjMzJjY2Q2M2QxMjc1YmY5YWM1NmJmOGNhOTJiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.P_iYLqNFVtsuZ3oUqCkRmtmpmrnYptUEaHS4y2yQ2TU)
The text was updated successfully, but these errors were encountered: