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?