Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
learn:courses:microprocessor-io-unit-1:start [2017/05/26 13:17] – [Listing D.2. Alternate Basic IO Program] brandon marcum | learn:courses:microprocessor-io-unit-1:start [2021/10/07 13:45] – Arthur Brown | ||
---|---|---|---|
Line 2: | Line 2: | ||
[[{}/ | [[{}/ | ||
==Unit 1 Labs== | ==Unit 1 Labs== | ||
- | * [[https:// | + | * [[/ |
- | * [[https:// | + | * [[/ |
Line 35: | Line 35: | ||
===== 4. Equipment List ===== | ===== 4. Equipment List ===== | ||
==== 4.1. Hardware ==== | ==== 4.1. Hardware ==== | ||
- | - [[http:// | + | - [[microprocessor/basys-mx3/start|Basys MX3 trainer board]] |
- [[http:// | - [[http:// | ||
- Workstation computer running Windows 10 or higher, MAC OS, or Linux | - Workstation computer running Windows 10 or higher, MAC OS, or Linux | ||
Line 126: | Line 126: | ||
//Figure 8.1. Integrated Development Hardware Diagram.// | //Figure 8.1. Integrated Development Hardware Diagram.// | ||
- | The diagram in Fig. 8.1 shows the Basys MX3 unit. The Basys MX3 has a built-in programmer/ | + | The diagram in Fig. 8.1 shows the Basys MX3 unit. The Basys MX3 has a built-in programmer/ |
==== 8.2. General Notes of Interest ==== | ==== 8.2. General Notes of Interest ==== | ||
Line 138: | Line 138: | ||
#define _SUPPRESS_PLIB_WARNING | #define _SUPPRESS_PLIB_WARNING | ||
#endif | #endif | ||
- | | + | |
- | # | + | #ifndef _DISABLE_OPENADC10_CONFIGPORT_WARNING |
- | #endif | + | # |
+ | #endif | ||
</ | </ | ||
< | < | ||
Line 529: | Line 530: | ||
@File Name | @File Name | ||
- | PICmx370.c | + | hardware.c |
| | ||
Line 548: | Line 549: | ||
#include " | #include " | ||
- | #include " | ||
#include < | #include < | ||
Line 595: | Line 595: | ||
| | ||
- | | + | |
| | ||
- | | + | |
} /* End of hardware_setup */ | } /* End of hardware_setup */ | ||
Line 657: | Line 657: | ||
{ | { | ||
// Initialization | // Initialization | ||
- | ANSELDbits.ANSD1 = 0; // RD1 set to digital I/O | + | ANSELDbits.ANSD1 = 0; |
- | TRISDbits.TRISD1 = 0; // RD1 set to output | + | TRISDbits.TRISD1 = 0; |
- | TRISDbits.TRISD0 = 1; // RD2 set to input | + | TRISDbits.TRISD0 = 1; |
// loop | // loop | ||
Line 665: | Line 665: | ||
{ | { | ||
LATDbits.LATD1 = PORTDbits.RD0; | LATDbits.LATD1 = PORTDbits.RD0; | ||
- | | + | |
} | } | ||
</ | </ | ||
Line 686: | Line 686: | ||
else | else | ||
| | ||
- | | + | |
} | } | ||
</ | </ | ||
Line 718: | Line 718: | ||
| 84 | RD7 | RPD7/ | | 84 | RD7 | RPD7/ | ||
| 80 | RD13 | RPD13/ | | 80 | RD13 | RPD13/ | ||
- | | 95 | + | | 95 |
| 93 | RE0 | PMD0/ | | 93 | RE0 | PMD0/ | ||
| 94 | RE1 | PMD1/ | | 94 | RE1 | PMD1/ |