Drivers for LCD on Dev Board

Discussion to talk about software related topics only.
Post Reply
v8dave
Posts: 333
Joined: Thu Dec 31, 2009 8:31 pm

Drivers for LCD on Dev Board

Post 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...
Ridgeglider
Posts: 513
Joined: Sat Apr 26, 2008 7:14 am

Re: Drivers for LCD on Dev Board

Post 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
v8dave
Posts: 333
Joined: Thu Dec 31, 2009 8:31 pm

Re: Drivers for LCD on Dev Board

Post 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...
Ridgeglider
Posts: 513
Joined: Sat Apr 26, 2008 7:14 am

Re: Drivers for LCD on Dev Board

Post 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.
erikhj
Posts: 1
Joined: Mon Mar 01, 2010 8:06 am

Re: Drivers for LCD on Dev Board

Post by erikhj »

I found the code for putdisp() in c:/nburn/MODxxxx/system/ioboard.cpp
Post Reply