Microchip LAN8670 Handleiding


Lees hieronder de 📖 handleiding in het Nederlandse voor Microchip LAN8670 (48 pagina's) in de categorie Niet gecategoriseerd. Deze handleiding was nuttig voor 88 personen en werd door 2 gebruikers gemiddeld met 4.5 sterren beoordeeld

Pagina 1/48
 2021-2023 Microchip Technology Inc. and its subsidiaries DS00004131D-page 1
1.0 INTRODUCTION
The LAN867x is a high-performance 10BASE-T1S single-pair Ethernet PHY transceiver that is targeted for 10 Mbit/s
half-duplex networking over a single pair of conductors.
This document guides you in creating a sample TCP/IP Client node (bare-metal or FreeRTOS™ based), using the
LAN867x PHY. It describes how to configure the PHY in either Physical Layer Collision Avoidance (PLCA) or Carrier-
Sense Multiple Access/Collision Detection (CSMA/CD) mode.
The description in this document is based on an ATSAME54P20A running on a SAM E54 Curiosity Ultra Development
Board [4]. However, it can also be applied to other infrastructures; for example, to an ATSAME70Q21B running on a
SAM E70 Xplained Ultra Evaluation Kit [5].
1.1 Audience
This document is written for developers who want to create a sample TCP/IP Client node, using the LAN867x PHY.
Developers should be familiar with the infrastructure of MPLAB
ÂŽ X IDE and its plug-ins [1].
1.2 Prerequisites
The following software components are required for getting started and to configure the example described in this doc-
ument:
• MPLAB X IDE
https://www.microchip.com/en-us/tools-resources/develop/mplab-x-ide
• MPLAB XC32
https://www.microchip.com/en-us/tools-resources/develop/mplab-xc-compilers
• MPLAB Code Configurator (MCC)
https://www.microchip.com/en-us/tools-resources/configure/mplab-code-configurator
1.3 References
The following sources should be referenced when using this application note.
[1] MPLAB Code Configurator
https://www.microchip.com/en-us/tools-resources/configure/mplab-code-configurator
[2] MPLAB Code Configurator Getting Started
https://microchipdeveloper.com/mcc:start
[3] MPLAB XC Compiler Documentation
https://www.microchip.com/en-us/tools-resources/develop/mplab-xc-compilers/downloads-documentation#XC32
[4] SAM E54 Curiosity Ultra Development Board
https://www.microchip.com/Developmenttools/ProductDetails/DM320210
[5] SAM E70 Xplained Ultra Evaluation Kit
https://www.microchip.com/Developmenttools/ProductDetails/DM320113
AN4131
MPLABÂŽ Harmony v3 LAN867x Driver Example
AN4131
DS00004131D-page 2  2021-2023 Microchip Technology Inc. and its subsidiaries
1.4 Abbreviations
Abbreviation Definition
CSMA/CD Carrier-Sense Multiple Access/Collision Detection
EDBG Embedded Debugger
MCC MPLAB Code Configurator
NVIC Nested Vectored Interrupt Controller
PLCA Physical Layer Collision Avoidance
 2021-2023 Microchip Technology Inc. and its subsidiaries DS00004131D-page 3
AN4131
2.0 CREATE A NEW MCC HARMONY PROJECT
2.1 Create a New Project
1. Open MPLAB X IDE.
2. Create a new project by either
a) clicking the new project icon or
b) by selecting File > New Project.
3. In the “New Project” window:
a) Select “32-bit MCC Harmony Project”.
b) Click Next.
AN4131
DS00004131D-page 4  2021-2023 Microchip Technology Inc. and its subsidiaries
4. In the “Framework Path”:
a) Enter the path of the folder to which the MCC Harmony packages are downloaded.
b) Click Next.
5. In the “Project Setting” dialog window:
a) Fill in or select the information needed as follows:
• Location:
First, create a “tcpip_iperf_lan867x” folder in the location of your choice (for example, create the appli-
cation project inside the C:\Projects folder)
Note: Use an appropriate project name.
Then enter the path in this field.
• Folder:
Enter a project folder name (for example, “tcpip_iperf_10base_t1s”).
(If you have a FreeRTOS project, you can enter as project folder name
“tcpip_iperf_10base_t1s_freertos”.)
• Name:
The information entered in the above field auto populates the Name.
• Path:
The information entered in the above fields auto populates the Path.
b) Click Next.
 2021-2023 Microchip Technology Inc. and its subsidiaries DS00004131D-page 5
AN4131
6. In the “Configuration Settings” dialog window:
a) Fill in or select the information needed as follows:
• Name:
Enter the configuration name (for example, “default”).
• Device Filter:
Enter “same54” in device filter to find SAME54 board variants.
• Target Device:
Select “ATSAME54P20A” (the target device is running on a SAM E54 Curiosity Ultra Development
Board [4]).
b) Click Finish.
When you create an MCC project, the Content Manager page opens and you can select the MCC flavor, based
on the project.
7. In the “MCC Content Manager Wizard”, click the Select MPLAB Harmony button.
 2021-2023 Microchip Technology Inc. and its subsidiaries DS00004131D-page 7
AN4131
If the “MCC Content Manager Wizard” window does not appear, the MCC can be launched under Tools > Embed-
ded, by selecting “MPLAB Code Configurator v5”.
The default MCC looks as shown below.
The different parts of the MCC are:
• Resource Management
• Project Resources
• Device Resources
• Project Graph
• Configuration Options
Depending upon application needs, the necessary components can be added from the “Device Resources”.
Basic components needed for creating a project are ct Graph” by default. available in the “Proje
 2021-2023 Microchip Technology Inc. and its subsidiaries DS00004131D-page 9
AN4131
2.3 Application Layer Configuration
1. Click the Application button to select the application layer.
This step also creates a hierarchy of groups as Root >TCP/IP STACK >APPLICATION LAYER.
Different application protocols supported by the MPLAB Harmony TCP/IP stack are listed in the “Available Com-
ponents” area.
Start selecting the required TCP/IP application layer protocols from the “Available Components” on the right-hand
side.
2. Drag and drop “DNS CLIENT” into the “Active Components” area.
The following steps auto-activate all dependent components.
a) Click Yes to add the “Harmony Core” component.
 2021-2023 Microchip Technology Inc. and its subsidiaries DS00004131D-page 11
AN4131
3. Drag and drop “IPERF” into the “Active Components” area.
This adds the “IPERF” component to the “Active Components” and “Project Graph”.
AN4131
DS00004131D-page 16  2021-2023 Microchip Technology Inc. and its subsidiaries
3. Add a MAC component to this demo.
a) Drag and drop “GMAC” from “Available Components” (“MAC Components”) into the MAC block in the
“Active Components” area.
b) Connect “NETCONFIG-0” with “GMAC” by dragging the orange diamond from “NETCONFIG-0” to the
orange square on “GMAC”.
The two orange indicators then become green.
4. Add a LAN867x and an MIIM driver to this demo.
a) Drag and drop “LAN867x” and “MIIM Driver” from “Available Components” (“PHY Components”) into the
PHY block in the “Active Components” area.
b) Make the connections as shown below.


Product specificaties

Merk: Microchip
Categorie: Niet gecategoriseerd
Model: LAN8670

Heb je hulp nodig?

Als je hulp nodig hebt met Microchip LAN8670 stel dan hieronder een vraag en andere gebruikers zullen je antwoorden




Handleiding Niet gecategoriseerd Microchip

Handleiding Niet gecategoriseerd

Nieuwste handleidingen voor Niet gecategoriseerd