Altera DE2-115 User's Guide Page 103

  • Download
  • Add to my manuals
  • Print
  • Page
    / 107
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 102
SFSU - Embedded Systems Tutorial Nano- Electronics & Computing Research Lab
102
// FLASH_RY,
///////////////////////////////////////////
// LCD config
assign LCD_BLON = 0; // not supported
assign LCD_ON = 1'b1; // alwasy on
This code should be copied and pasted in the main Verilog (shown previously) under REG/WIRE
declarations section.
With this step our hardware configuration is done.
After this step, open Nios II IDE Eclipse and write software to configure software of the demonstration.
Software Setup
Basic Algorithm:
1) Display is initialized.
display_global = alt_video_display_init( "/dev/sgdma_pixel", // Name of video controller
WIDTH, // Width of display
HEIGHT, // Height of display
32, // Color depth (32 or 16)
SDRAM_BASE+SDRAM_SPAN/2, // Where we want our frame buffers
DESCRIPTOR_MEM_BASE, // Where we want our descriptors
NUM_FRAME );
if( display_global )
2) Touch Panel is initialized.
hTouch = Touch_Init(TOUCH_PANEL_SPI_BASE, TOUCH_PANEL_PEN_IRQ_N_BASE,
TOUCH_PANEL_PEN_IRQ_N_IRQ);
3) Welcome screen is displayed . The following commands are used to display characters on
the screen.
sprintf(szText,"\nCalculator ");
vid_print_string_alpha(400, 2, COLOR_WHITE, COLOR_BLACK, tahomabold_20, display_global, szText);
sprintf(szText,"\nTouch Anywhere to Begin");
vid_print_string_alpha(220, 200, COLOR_WHITE, COLOR_BLACK, tahomabold_20, display_global, szText);
Page view 102
1 2 ... 98 99 100 101 102 103 104 105 106 107

Comments to this Manuals

No comments