Skip to content

Commit 8a2c3b6

Browse files
MPAE-18131: Implement Technical Writer's feedback
1 parent 49fbaf4 commit 8a2c3b6

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

README.md

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,14 @@
88

99
# Receive Control Commands via EUSART Using the PIC18F47Q10 Microcontroller
1010

11-
This example shows how to implement a command line interface. This way, the microcontroller can receive
12-
control commands via the EUSART. In this use case, an LED is controlled using commands sent from the
13-
MPLAB Data Visualizer..
11+
This example shows how to implement a command line interface, enabling the microcontroller (MCU) to receive control commands via the Enhanced Universal Synchronous Asynchronous Receiver Transmitter (EUSART). In this use case, an LED is controlled using commands sent from the MPLAB® Data Visualizer.
1412

1513
## Related Documentation
1614

1715
- [TB3282 – Getting Started With UART Using EUSART on PIC18](https://www.microchip.com/en-us/application-notes/tb3282?utm_source=GitHub&utm_medium=TextLink&utm_campaign=MCU8_PIC18-Q10&utm_content=pic18f47q10-cnano-eusart-commands-bare-github&utm_bu=MCU08)
1816
- [PIC18-Q10 Product Family](https://www.microchip.com/en-us/products/microcontrollers-and-microprocessors/8-bit-mcus/pic-mcus/pic18f-q10?utm_source=GitHub&utm_medium=TextLink&utm_campaign=MCU8_PIC18-Q10&utm_content=pic18f47q10-cnano-eusart-commands-bare-github&utm_bu=MCU08)
1917
- [PIC18F47Q10 Product Page](https://www.microchip.com/en-us/product/PIC18F47Q10?utm_source=GitHub&utm_medium=TextLink&utm_campaign=MCU8_PIC18-Q10&utm_content=pic18f47q10-cnano-eusart-commands-bare-github&utm_bu=MCU08)
20-
- [PIC18F47Q10 Data Sheet](https://ww1.microchip.com/downloads/aemDocuments/documents/MCU08/ProductDocuments/DataSheets/PIC18F26-45-46-Q10-Data-Sheet-40001996E.pdf?utm_source=GitHub&utm_medium=TextLink&utm_campaign=MCU8_PIC18-Q10&utm_content=pic18f47q10-cnano-eusart-commands-bare-github&utm_bu=MCU08)
18+
- [PIC18F47Q10 Data Sheet](https://ww1.microchip.com/downloads/aemDocuments/documents/MCU08/ProductDocuments/DataSheets/PIC18F27-47Q10-Micorcontroller-Data-Sheet-DS40002043.pdf?utm_source=GitHub&utm_medium=TextLink&utm_campaign=MCU8_PIC18-Q10&utm_content=pic18f47q10-cnano-eusart-commands-bare-github&utm_bu=MCU08)
2119
- [PIC18F47Q10 Curiosity Nano](https://www.microchip.com/en-us/development-tool/DM182029?utm_source=GitHub&utm_medium=TextLink&utm_campaign=MCU8_PIC18-Q10&utm_content=pic18f47q10-cnano-eusart-commands-bare-github&utm_bu=MCU08)
2220
- [PIC18F47Q10 Code Examples on GitHub](https://github.com/orgs/microchip-pic-avr-examples/repositories?q=pic18f47q10&type=all)
2321

@@ -29,38 +27,35 @@ MPLAB Data Visualizer..
2927

3028
## Hardware Used
3129

32-
- The [PIC18F47Q10 Curiosity Nano](https://www.microchip.com/en-us/development-tool/DM182029?utm_source=GitHub&utm_medium=TextLink&utm_campaign=MCU8_PIC18-Q10&utm_content=pic18f47q10-cnano-eusart-commands-bare-github&utm_bu=MCU08) Development Board is used as a test platform:
30+
- The [PIC18F47Q10 Curiosity Nano](https://www.microchip.com/en-us/development-tool/DM182029?utm_source=GitHub&utm_medium=TextLink&utm_campaign=MCU8_PIC18-Q10&utm_content=pic18f47q10-cnano-eusart-commands-bare-github&utm_bu=MCU08) development board is used as a test platform:
3331

3432
![Shows a picture of the PIC18F47Q10 Curiosity Nano](images/pic18f47q10-curiosity-nano-board.png)
3533

3634
## Setup
3735

38-
The [PIC18F47Q10 Curiosity Nano](https://www.microchip.com/en-us/development-tool/DM182029?utm_source=GitHub&utm_medium=TextLink&utm_campaign=MCU8_PIC18-Q10&utm_content=pic18f47q10-cnano-eusart-commands-bare-github&utm_bu=MCU08) Development Board has an onboard debugger that acts as an USART to USB convertor so no further hardware is needed.
36+
The [PIC18F47Q10 Curiosity Nano](https://www.microchip.com/en-us/development-tool/DM182029?utm_source=GitHub&utm_medium=TextLink&utm_campaign=MCU8_PIC18-Q10&utm_content=pic18f47q10-cnano-eusart-commands-bare-github&utm_bu=MCU08) development board has an on-board debugger that acts as an USART-to-USB convertor so no further hardware is needed.
3937

4038
The following configurations must be made for this project:
4139

4240
| Pin | Configuration |
4341
| :----------------- | :------------- |
44-
| RD0 (EUSART2 - TX) | Digital Output |
45-
| RD1 (EUSART2 - RX) | Digital Input |
46-
| RE0 (LED0) | Digital Output |
42+
| RD0 (EUSART2 - TX) | Digital output |
43+
| RD1 (EUSART2 - RX) | Digital input |
44+
| RE0 (LED0) | Digital output |
4745

4846
## Demo
4947

50-
Run the code and configure the Data Visualizer as described in the Technical Brief document. Type commands to be sent to the board. The two available commands are "ON" and "OFF". Observe the LED on the board as it changes its state
51-
according to the command sent.
48+
Run the code and configure the Data Visualizer as described in the referenced technical brief document. Type commands to be sent to the board. The two available commands are "ON" and "OFF". Observe the LED on the board as it changes its state according to the command sent. It is convenient to use the line terminator as command delimiter, so for this use case, EUSART will read full lines and then check if the line contains a valid command.
5249

5350
![Demo in MPLABX Data Visualizer](images/demo.png)
5451

5552
## Summary
5653

57-
One important usage of the EUSART represents the implementation of a command line interface. This way, the
58-
microcontroller can receive control commands via EUSART. It is convenient to use the line terminator as command
59-
delimiter, so for this use case, EUSART will read full lines and then check if the line contains a valid command.
54+
This demo showcases how EUSART can be used to implement a command line interface, allowing the MCU to receive commands via EUSART.
6055

6156
## How to Program the Curiosity Nano board
6257

63-
This chapter shows how to use the MPLAB X IDE to program a PIC® device with an `ExampleProject.X`. This can be applied for any other projects.
58+
This chapter shows how to use the MPLAB X IDE to program a PIC® device with an `ExampleProject.X`. This can be applied to any other projects.
6459

6560
1. Connect the board to the computer.
6661

@@ -74,14 +69,14 @@ This chapter shows how to use the MPLAB X IDE to program a PIC® device with an
7469

7570
4. Clean and build the ExampleProject project.
7671

77-
Right click on the ExampleProject project and select Clean and Build.
72+
Right click the ExampleProject project and select Clean and Build.
7873

7974
![Clean and Build](images/clean-and-build.png)
8075

8176
5. Select the PIC Curiosity Nano in the Connected Hardware Tool section of the project settings:
8277

83-
- Right click on the project and click Properties
84-
- Click on the arrow under the Connected Hardware Tool
78+
- Right click the project and click Properties
79+
- Click the arrow under the Connected Hardware Tool
8580
- Select the PIC Curiosity Nano, click **Apply** and then click **OK**:
8681

8782
![Select the PIC Curiosity Nano](images/device.png)

0 commit comments

Comments
 (0)