getting started with mplab and matrix development board

7
E-blocks Getting Started with MPLAB and Matrix development board Requirements - MPLAB – available from Microchips website (do we link this?) - XC8 Compiler - EB006 Multiprogrammer board - EB083 Development board - PICKit 2 or 3 - ~9V Powersupply for the E-blocks hardware Setting up the hardware Page 1 / 7 (c) 2022 DavidA <[email protected]> | 2022-02-13 11:01 URL: https://www.matrixtsl.com/faq/index.php?action=artikel&cat=2&id=74&artlang=en

Upload: others

Post on 13-Feb-2022

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Getting Started with MPLAB and Matrix development board

E-blocksGetting Started with MPLAB and Matrix

development boardRequirements

- MPLAB – available from Microchips website (do we link this?)

- XC8 Compiler

- EB006 Multiprogrammer board

- EB083 Development board

- PICKit 2 or 3

- ~9V Powersupply for the E-blocks hardware

Setting up the hardware

Page 1 / 7(c) 2022 DavidA <[email protected]> | 2022-02-13 11:01

URL: https://www.matrixtsl.com/faq/index.php?action=artikel&cat=2&id=74&artlang=en

Page 2: Getting Started with MPLAB and Matrix development board

E-blocks

- Connect the EB083 to the EB006 at Ports A + B

Page 2 / 7(c) 2022 DavidA <[email protected]> | 2022-02-13 11:01

URL: https://www.matrixtsl.com/faq/index.php?action=artikel&cat=2&id=74&artlang=en

Page 3: Getting Started with MPLAB and Matrix development board

E-blocks- Connect a wire from +V on the EB006 to the +V on the EB083 board

- Power the EB006 via a 12V PSU

- Ensure the Jumper (J12 J13 J14) is in the ICSP position

- Ensure J15 is in the 5V location

- Ensure J11 is in the PSU location

- Plug the PICKit 2 or 3 into the ICSP header on the board ensure the arrowpoints to pin1 and plug the PICKit into your computers USB ports.

Page 3 / 7(c) 2022 DavidA <[email protected]> | 2022-02-13 11:01

URL: https://www.matrixtsl.com/faq/index.php?action=artikel&cat=2&id=74&artlang=en

Page 4: Getting Started with MPLAB and Matrix development board

E-blocks

Creating a project

For MPLAB X + XC8 Compiler

1. Go to File >> New Project2. Select a “Standalone Project”3. Choose the family and device you are using – for the example we are using

the 16F19374. No supported debug header5. Choose your programming device, (PICKit 2 or 3 are recommended).6. Choose the XC8 Compiler7. Create a project name and select the folder where the files will go

Now we need to create a source file which we can write our code into, use the NewFile button in MPLAB to create a blank document we can write in.

Page 4 / 7(c) 2022 DavidA <[email protected]> | 2022-02-13 11:01

URL: https://www.matrixtsl.com/faq/index.php?action=artikel&cat=2&id=74&artlang=en

Page 5: Getting Started with MPLAB and Matrix development board

E-blocks

In the popup wizard, select a C file and a C ‘Source File’, then click next and finallyfinish.

Page 5 / 7(c) 2022 DavidA <[email protected]> | 2022-02-13 11:01

URL: https://www.matrixtsl.com/faq/index.php?action=artikel&cat=2&id=74&artlang=en

Page 6: Getting Started with MPLAB and Matrix development board

E-blocks

We now have a blank file which we can write our code into. For some example codewhich lights a single LED on port A see this example code:

http://www.matrixtsl.com/resources/files/misc/test.c

NOTE: Since this example uses the digital ports on port A, if you are using thedevelopment board EB083 then you will need to ensure that the Jumper J14 is in theDigital position rather than the Analogue position.

Page 6 / 7(c) 2022 DavidA <[email protected]> | 2022-02-13 11:01

URL: https://www.matrixtsl.com/faq/index.php?action=artikel&cat=2&id=74&artlang=en

Page 7: Getting Started with MPLAB and Matrix development board

E-blocks

Finally to program the device select the “Make and Program device” button fromthe toolbar of MPLAB.

If all goes well then this should download the program to your chip through thePICKit.

Unique solution ID: #1073Author: DavidALast update: 2015-12-18 14:46

Powered by TCPDF (www.tcpdf.org)

Page 7 / 7(c) 2022 DavidA <[email protected]> | 2022-02-13 11:01

URL: https://www.matrixtsl.com/faq/index.php?action=artikel&cat=2&id=74&artlang=en