Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit afb9cd0

Browse files
committedFeb 6, 2025
MPAE-18965 implementing second round of tech writer edits
1 parent 2976309 commit afb9cd0

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed
 

‎README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
## Introduction
77

8-
The following labs in this demo code project are designed for Microchip™s Curiosity High Pin Count (HPC) Development board. This development board supports Microchip's 28 and 40-pin 8-bit PIC® microcontrollers (MCUs). This MPLAB X project contains several lab exercises that demonstrate a large number of basic capabilities of PIC devices and can also be used to test the condition of the board. Each lab contains a brief description to help you become acquainted with the different peripherals and features of PIC MCUs. These labs also make use of the MPLAB Code Configurator (MCC), an easy-to-use plugin tool for MPLAB X IDE. MCC can be used to set up the on-chip peripherals and generate drivers which can be used in the application code. All labs are written in the C language, and are compatible with the latest XC8 compilers.
8+
The following labs in this demo code project are designed for Microchip™ Curiosity High Pin Count (HPC) Development board. This development board supports Microchip's 28 and 40-pin 8-bit PIC® microcontrollers (MCUs). This MPLAB X project contains several lab exercises that demonstrate a large number of basic capabilities of PIC devices and can also be used to test the condition of the board. Each lab contains a brief description to help you become acquainted with the different peripherals and features of PIC MCUs. These labs also make use of the MPLAB Code Configurator (MCC), an easy-to-use plugin tool for MPLAB X IDE. MCC can be used to set up the on-chip peripherals and generate drivers which can be used in the application code. All labs are written in the C language, and are compatible with the latest XC8 compilers.
99

10-
##### Curiosity High Pin Count (HPC) Development Board:
10+
##### Curiosity High Pin Count (HPC) Development Board
1111
<br><img src="images/hpc-board.PNG">
1212

1313
## Software Used
@@ -75,13 +75,12 @@ The following labs in this demo code project are designed for Microchip™s Curi
7575
For example, for a certain register rotateReg, use the Binary Left Shift Operator (<<) to push a '`1`' into the Least Significant Bit (LSb) of the register and have the rest of the bits shift to the left. First set up the Carry bit with the value to be pushed into the register before executing the shift, as seen in the figure below.
7676

7777
###### Left Shift Binary Operation
78-
<br><img src="images/Lab3-left-shift-binary-operation.PNG">
78+
<br><img src="images/lab3-left-shift-binary-operation.PNG">
7979

8080
Similarly, use the Binary Right Shift Operator (>>) to push a '`1`' into the Most Significant Bit (MSb) of the register and have the rest of the bits shift to the right. First set up the Carry bit with the value to be pushed into the register before executing the shift, as seen in the figure below.
8181

8282
###### Right Shift Binary Operation
83-
84-
<br><img src="images/lab3-right-shift-binary-operation.png">
83+
<br><img src="images/lab3-right-shift-binary-operation.PNG">
8584

8685

8786
### <u>Lab 4: Analog-to-Digital Conversion (ADC)</u>
@@ -108,8 +107,7 @@ The following labs in this demo code project are designed for Microchip™s Curi
108107
A crucial step in this lab is to check if the ADC value is zero. If it does not perform the zero check, and the ADC result is zero, the LEDs will rotate at an incorrect speed. This is an effect of the delay value underflowing from 0 to 255.
109108

110109
###### Program Flow
111-
112-
<br><img src="images/lab5-program-flow.png">
110+
<br><img src="images/lab5-program-flow.PNG">
113111

114112
### <u>Lab 6: Pulse-Width Modulation (PWM)</u>
115113
#### Introduction
@@ -143,7 +141,7 @@ The following labs in this demo code project are designed for Microchip™s Curi
143141
LEDs D5, D4, D3 and D2 rotate from left to right at a constant rate of 499.712 ms.
144142

145143
#### Summary
146-
This lab demonstrates the advantage of using interrupts over polling. An interrupt is generated whenever the Timer0 (TMR0) register reaches 0xFF and goes back to reset value. This indicates that 500 ms has passed and it is time to rotate the light. This interrupt is serviced by the `TMR0_ISR()` function. Note that this is the same for Lab 7: TIMER1, but this time we are not continuously watching the TMR1IF flag.
144+
This lab demonstrates the advantage of using interrupts over polling. An interrupt is generated whenever the Timer0 (TMR0) register reaches 0xFF and goes back to reset value. This indicates that 500 ms has passed and it is time to rotate the light. This interrupt is serviced by the `TMR0_ISR()` function. Note that this is the same for Lab 7: Timers, but this time we are not continuously watching the TMR1IF flag.
147145

148146

149147
### <u>Lab 9: Wake-up From Sleep Using Watchdog Timer (WDT)</u>
@@ -175,8 +173,7 @@ The following labs in this demo code project are designed for Microchip™s Curi
175173
This lab stores an ADC value every time switch 2 is pressed, effectively keeping a log of all ADC values.
176174

177175
###### Program Flow
178-
179-
<br><img src="images/lab10-program-flow.png">
176+
<br><img src="images/lab10-program-flow.PNG">
180177

181178
## Summary
182179

0 commit comments

Comments
 (0)
Please sign in to comment.