Page 1 of 1
Drivers for LCD on Dev Board
Posted: Fri Feb 26, 2010 12:57 am
by v8dave
Hi there,
I have searched all the documents and I can't find anything on the use of the LED display (7 segment) on the dev board. I can see that it is connected via the databus but no reference to how to drive it. I can't find any examples for it either.
I was also wondering if the CPLD code for the Xilinx device was available to play around with on this board?
Cheers,
Dave...
Re: Drivers for LCD on Dev Board
Posted: Fri Feb 26, 2010 7:29 am
by Ridgeglider
See C:\nburn\include\utils.h
Some of the functions include putdisp()
I don't think there is a way to drive the decimal point...?
BOOL OnModDev70( void ); // Return TRUE if on MOD-DEV-70, otherwise FALSE
void putleds( unsigned char c ); // Set the LEDs on the MOD-DEV-70/100
unsigned char getleds( ); // Get the LEDs state from CPLD, MOD-DEV-100 only
void putdisp( unsigned short w ); // Set the 7-segment LEDs on the MOD-DEV-100, BCD input, CPLD controls segmnet switching
unsigned short getdisp( ); // Get the 7-segment LEDs on the MOD-DEV-100, BCD
unsigned char getdipsw(); // Read the DIP switch values on the MOD-DEV-70/100
Re: Drivers for LCD on Dev Board
Posted: Fri Feb 26, 2010 9:39 am
by v8dave
Thanks RG.
This is handy but there seems to be a lack of documention for these functions. I would also like to see the code for the CPLD as it would be nice to expand on this too if need be. I am currently looking to interface a low end Xilinx FPGA to the Netburner to add some specialised interfacing.
Cheers,
Dave...
Re: Drivers for LCD on Dev Board
Posted: Fri Feb 26, 2010 12:12 pm
by Ridgeglider
I agree access to the functions themselves and to the CPLD would be constructive. I notice the latest reease supports access to the segments and decimal point on the newer Dev boards as well as allowing a query for the CPLD version and rev.
Re: Drivers for LCD on Dev Board
Posted: Mon Mar 15, 2010 10:14 am
by erikhj
I found the code for putdisp() in c:/nburn/MODxxxx/system/ioboard.cpp