This article shares the method of fpga control vga display pictures.
1: black and white picture rgb getIf it is a black and white picture, use image2LCD to convert to bmp format image, and then convert it into rom's imported data mif file through BMPtoMIF software. But this is just rgb3, the color is relatively simple.
RGB = 000 black RGB = 100 red = 001 blue = 101 purple = 010 green = 110 yellow = 011 cyan = 111 white
2: Convert to 8-bit display r[2:0]g[2:0]b[1:0]If(rom_data==3'd7) vga_rgb <= 8'b111_111_11;
Else if(rom_data==3'd6) vga_rgb <= 8'b111_111_00;
Else if(rom_data==3'd5) vga_rgb <= 8'b111_000_11;
Else if(rom_data==3'd4) vga_rgb <= 8'b111_000_00;
Else if(rom_data==3'd3) vga_rgb <= 8'b000_111_11;
Else if(rom_data==3'd2) vga_rgb <= 8'b000_111_00;
Else if(rom_data==3'd1) vga_rgb <= 8'b000_000_11;
Else if(rom_data==3'd0) vga_rgb <= 8'b000_000_00;
This can be converted into an 8-bit display r[2:0]g[2:0]b[1:0]
3: Color image acquisitionThe information of the picture is obtained by the winhex software, wherein the first 54 bytes are picture information, the latter 1024 bytes are the color table, the latter is the picture data (giving the position in the color table), and the color table is displayed through the picture data.
When processing the information, we discard the first 54 bytes, copy the data into a c array and save it to a txt file, then open it with excel, pass =OFFSET($A$1,(ROW(A1)-1)/16, MOD( The ROW(A1)-1,16)) formula arranges the data into a column and finally converts it into a mif according to the mif file format. Import into rom
4: Overall engineeringIs to store the data (color table and image data) into the rom, and then convert the color table into 256 kinds of color data, save it to the ram, and then display the rgb display of the color when the table is displayed.
2'd0: rr_din[7:6] <= rom_data[7:6]; //2blue--2blue
2'd1: rr_din[5:3] <= rom_data[7:5]; //3green--3green
2'd2: rr_din[2:0] <= rom_data[7:5]; //3red--3red
5: AttentionNote that when ram and rom store data, there will be a delay of 2 clocks when reading data after entering and leaving the address.
The ultra-thin precision cutting of the Anti-Peep Screen Protector means that you can enjoy a perfect touch screen experience without allowing anything on the screen to be peeped. Whether you place your phone horizontally or vertically, Privacy Screen Protector can protect your personal Information and sensitive information are protected from harm by strangers. People around you cannot see the contents of your phone, so your details are safe.
The use of soft TPU material can really cover the entire screen.
With self-healing function, it can automatically repair bubbles and scratches within 24 hours.
The 0.14mm Ultra-Thin Protective Film can maintain the sensitivity of the touch screen to accurately respond to your touch.
The oleophobic and waterproof coating prevents fingerprints, oil stains and other substances from adhering to it and keeps the screen clean.
If you want to know more about Privacy Screen Protector products, please click Product Details to view the parameters, models, pictures, prices and other information about Privacy Screen Protector products.
Whether you are a group or an individual, we will try our best to provide you with accurate and comprehensive information about Privacy Screen Protector!
Anti-Spy Hydrogel Screen Protector, Privacy Protection Film, Protection Film, Privacy Film, Privacy Screen Protective Film, Soft Film
Shenzhen Jianjiantong Technology Co., Ltd. , https://www.jjthydrogelmachine.com