altera


C to Fpga error with LCD under Altera DE2-70 board


I tried to display ASCII on the LCD, I am using a DE2-70 board and Handel-C using the Altera DE2 function library. This is the code I am compiling:
set clock = external "N2";
#include "DE2.hch"
void main(void) {
DE2_LCD_LINE line;
line = hex2ascii(0x1<-4) # sp # H # e # l # l # o # sp # w # o # r # l # d # blank_line<-152;
DE2LCDDriver(line);
}
I followed all the steps on the documentation and always get this error:
undefined width for all used variables sp# H#e .....etc
I found the answer, this library is no more supported in the new DK5 the best way to use it is to convert to hex then display it as following:
/* Convert to HEX*/
y =5;
Unsigned 8 decode_to_hex(unsigned 4 x)
{
}
/*Then display using */
Line = (decode_to_hex(y)<-8) #0;
DE2LCDDriver(Line);

Related Links

Altera Monitor programm unable to acces jarfile
How can I debug Schematic File separately from my project file in Quartus?
Altera Cyclone V baremetal app fail
How to calculate lut mask for Arria10 LUT for arithmetic mode
How to compile drivers on 3.0.32-yocto-standard
How to use new component created in Qsys to vectorize/group together many signals
How to increase the address in ROM-1Port
C to Fpga error with LCD under Altera DE2-70 board
File Operation issue while porting to Altera NIOS II
How to find system library properties in Nios 2 IDE v12?

Categories

HOME
batch-file
xml
themes
jelastic
composite-primary-key
sublimetext
nuget
pdfbox
bitbucket-api
switch-statement
alsa
spring-session
azure-container-service
retrofit2
gson
comsol
enterprise-architect
docx
searchview
mvc-mini-profiler
template-engine
apache2.4
exit
aggregation
definitelytyped
interbase
fragment-backstack
uitapgesturerecognizer
constexpr
scatter3d
autolisp
wacom
code-snippets
github3.py
navigator
apic
google-data-api
skylink
plr
ssrs-2014
puredata
textsum
ntvs
openal
proget
linter
static-cast
semantic-logging
java-bytecode-asm
java-6
edit
jqchart
cpu-cache
restore
cudd
microstation
latin
dotnetnuke-7
windows-azure-queues
firebase-security
respondcms
android-wake-lock
riot
data-protection
libav
concept-insights
microsoft-reporting
atoi
aspectj-maven-plugin
matlab-deployment
uvc
actionfilterattribute
adehabitathr
teaspoon
entry-point
tweenlite
rmysql
nsmenu
insight.database
template-deduction
winginx
tinyxml
bin
artemis
light
fb.ui
pyunit
appjs
azman
hibernateexception
luabind
user-tracking
ruby-1.8
hbm2java
silverlight-oob

Resources

Encrypt Message