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...
Drivers for LCD on Dev Board
-
- Posts: 513
- Joined: Sat Apr 26, 2008 7:14 am
Re: Drivers for LCD on Dev Board
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
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
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...
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...
-
- Posts: 513
- Joined: Sat Apr 26, 2008 7:14 am
Re: Drivers for LCD on Dev Board
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
I found the code for putdisp() in c:/nburn/MODxxxx/system/ioboard.cpp