3998 views|7 replies

437

Posts

3

Resources
The OP

MPLAB Harmony Learning Part 9 - Creating a Graphics Development Project [Copy link]

This article is reproduced from Microchip Wheatfield Forum - Author: Brother Cannon Fodder
[align =left]
[font =Arial]
[align=left ] Graphics development is a very important Application, Harmony, as an important software architecture of PIC32, of course needs to support graphics development.
[font =Arial]This article will introduce how Harmony integrates a series of graphics development tools to allow users to develop their own graphics more conveniently and quickly.
[font =Arial]Steps to Create a Graphic Development Project
[color=rgb (0, 0, 0)]The first step is to prepare the hardware and software platform[ /font]
[size =3]A, integrated development platform MPLAB X 0)]Download address: http://www.microchip.com/mplab/mplab-x-ide[/color ]
Note: This example is based on MPLAB X V3.25 version, users can use the latest MPLAB X version on the official website.
[font =Arial]
B, compiler: XC32
[color= rgb(0, 0, 0)]Download address: http://www.microchip.com/mplab/compilers[ /font]
Note :The examples in this article are based on XC32 V1.40 version. Users can use the latest XC32 version on the official website.
[font =Arial]
C, software library: Harmony
[color= rgb(0, 0, 0)]Download address: http://www.microchip.com/mplab/mplab-harmony
Note: The examples in this article are based on Harmony V1.07. Users can use the latest Harmony version on the official website.
D, Hardware: PIC32 USB Starter Kit II+LCC Graphic PICtailPlus Daughter Board + Graphic Display Truly 320x240 Board.
The following figures show several boards used in the examples in this article. If you need the schematics and other detailed information of these boards, please log in to Microchip's official website to download them.
i. PIC32USB Starter Kit II
ii. LCC Graphic PICtail Plus Daughter Board
iii. GraphicDisplay Truly 320x240 Board
The second step is to create a Harmony project
A. Configure Device Configuration
[/ color]
B, select BSP, note that the BSP file options define some hardware-related configurations, but only the development board officially released by Microchip If the hardware of the project is different from the development board officially provided by Microchip, you still need to manually configure the hardware.
The third step is to set upLCC ControllerDriver
[ /align]
Note that the Memory Mode in this step is hardware-dependent. You need to set the jumpers J4~J19 on the LCC Graphic PICtail Plus Daughter Board to select internal and external RAM. 1J9: Pin1-Pin2 is External RAM, Pin3-Pin2 is Internal RAM. 0, 0)]The following figure shows the location of the jumper selections on the LCC Graphic PICtail Plus Daughter Board.
Step 4. Use GraphicLibrary to add the content to be displayed [/ A. Select MHC's Graphic Library and click "Execute ”You can enter MHGC and start Harmony-based graphical programming.
B. Introduction to the Basic Functions of MHGC Graphical Programming
ToolBox: Contains all applicable controls.
ComposerManagement Window: Allows the user to edit resources, styles, pages and display objects. ScreenWindow: Allows the user to edit the actual displayed page. PropertiesWindow: Allows the user to adjust the parameters of pages and display objects.
C. Edit the page properties and set the background color
sans-serif]
D. Add some resources that need to be used. The pictures and fonts we use in graphic development are all resources.
E. Set the display style Scheme.
F.Add different display pages Screen.
GSelect the control to be displayed from the control toolbox and drag it to the editing page Screen. , 0)]
H. Set the properties of the physical object.
So far, you have built a Harmony-based graphics project that displays a "Hello World!"
Summary A, graphics development based onHarmony is more integrated
Harmony integrates the functions of GDD X and GRC, so that engineers can develop graphics on the same platform after setting up the hardware. B, the general steps for adding relevant display content in the Graphic Library are: Plan the display page Screen -> Add the required resources Asset -> Define the display style Scheme -> Drag the control to the page -> Define some properties of the control.
Click to download the sample program: mhgc_basicproject.zip (94.81 KB)

This post is from Microchip MCU
Add and join groups EEWorld service account EEWorld subscription account Automotive development circle

Latest reply

MPLAB X is a graphical development software for PIC microcontrollers. It has a relatively convenient development method and a beautiful environment, and the parameters can be configured as required. However, the development board in the example seems to be quite expensive. . .  Details Published on 2016-12-29 23:45

1700

Posts

4

Resources
2
:tongue:, for chips developed with graphical interfaces, the most important feature is convenience. You can get started directly without understanding the configuration of the underlying registers, and you can apply the chip in the fastest way. The graphical interface development of PIC32 is simple, convenient and easy to use by dragging controls, which is very good; Harmony is also good;
This post is from Microchip MCU

418

Posts

0

Resources
3
Graphical programming is indeed convenient, but in actual operation, it always feels awkward (mainly modifying layout parameters, etc.), I don't know why. I don't know how this works for PIC32 :)
This post is from Microchip MCU

114

Posts

0

Resources
4
The combination of the development board and the actual software can better reflect the realism of the graphics, and the user can modify the parameters at will, making the operation more convenient. {:1_103:}Awesome my song
This post is from Microchip MCU

1741

Posts

1

Resources
5
The introduction is very detailed, but relatively speaking, it is better to use a standard development board, otherwise it requires a certain amount of skill to match the software in parameter setting. Otherwise, it will be inconvenient to use if the matching is not good. Mastering graphics development is still very important for practical application development. Harmony is an important software architecture of PIC32, and its support for graphics development is indispensable.
This post is from Microchip MCU

479

Posts

0

Resources
6
The PIC graphics development introduced by the host is very detailed. I downloaded the data and development board routines to study them carefully. This direction is very good. It simplifies the development process. You don't need to pay too much attention to the underlying register setting issues, and you can quickly complete the graphics development. For the BSP configuration designed according to the development board mode, do you still need to configure it manually? Can it be quickly set up through files? I learned a good method for graphics development.
This post is from Microchip MCU

344

Posts

1

Resources
7
Graphic visualization programming development is a trend of future development. Combining the PIC32 development board, using the MPLAB Harmony integrated graphics development environment, and combining simple practical examples, this article gives the basic steps of the development process. Specific problems still need to be analyzed specifically, but the foundation is still the construction of the software and hardware platform. Once the foundation is built, as the development environment becomes more familiar, the development speed will be faster, and the difficulty of the graphics development project will be higher. You can explain a slightly more difficult project in combination with practical problems, such as developing a visual animation.
This post is from Microchip MCU

56

Posts

0

Resources
8
MPLAB X is a graphical development software for PIC microcontrollers. It has a relatively convenient development method and a beautiful environment, and the parameters can be configured as required. However, the development board in the example seems to be quite expensive. . .
This post is from Microchip MCU

Guess Your Favourite
Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

    EEWorld
    subscription
    account

    EEWorld
    service
    account

    Automotive
    development
    circle

    Robot
    development
    community

    Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
    快速回复 返回顶部 Return list