This shows you the differences between two versions of the page.
pm:prj2023:avaduva:testerethernetcable [2023/05/22 12:14] vlad.tunaru [Software Design] |
pm:prj2023:avaduva:testerethernetcable [2023/05/22 13:06] (current) vlad.tunaru [Bibliography] |
||
---|---|---|---|
Line 49: | Line 49: | ||
{{:pm:prj2023:avaduva:schema.png?600|}} | {{:pm:prj2023:avaduva:schema.png?600|}} | ||
+ | {{:pm:prj2023:avaduva:wewe_vlad.jpg?450|}} | ||
===== Software Design ===== | ===== Software Design ===== | ||
- | <note tip> | ||
For this project, the following resources of the microcontroller were used: | For this project, the following resources of the microcontroller were used: | ||
+ | |||
• 1 general-purpose pin set as an output for an LED (PD6) | • 1 general-purpose pin set as an output for an LED (PD6) | ||
+ | |||
• 1 general-purpose pin set as an input for a button (PD5) | • 1 general-purpose pin set as an input for a button (PD5) | ||
+ | |||
• Alphanumeric LCD display with HD44780 driver configured on port C | • Alphanumeric LCD display with HD44780 driver configured on port C | ||
+ | |||
• 16 pins used as IN/OUT for cable continuity testing | • 16 pins used as IN/OUT for cable continuity testing | ||
+ | |||
The testing program uses 1 port with 8 bits for signal transmission and another port for reception, utilizing PORTA and PORTB, one defined as an input and the other as an output. | The testing program uses 1 port with 8 bits for signal transmission and another port for reception, utilizing PORTA and PORTB, one defined as an input and the other as an output. | ||
Two arrays are used to store the display sequences for individual LED display or continuous display. For continuity testing, the individual display sequence is used, and the received result at the reception port is stored in the reception[8] array, thus preserving the order in which the test signal was received. By comparing the reception[8] array with three other arrays storing the correct sequences, the type of cable tested (crossover, rollover, straight) can be determined. If none of these patterns match, the cable is declared defective. The display of the detected cable type is done through an LCD display along with a map indicating the defective or good wires. | Two arrays are used to store the display sequences for individual LED display or continuous display. For continuity testing, the individual display sequence is used, and the received result at the reception port is stored in the reception[8] array, thus preserving the order in which the test signal was received. By comparing the reception[8] array with three other arrays storing the correct sequences, the type of cable tested (crossover, rollover, straight) can be determined. If none of these patterns match, the cable is declared defective. The display of the detected cable type is done through an LCD display along with a map indicating the defective or good wires. | ||
Line 97: | Line 102: | ||
Resistors R1-R8 maintain the input potential at logical low (0) in case the wire is interrupted. Otherwise, the measured potential could be affected by external disturbances or user handling, etc. The resistor values are not critical and were selected to consume as little current as possible from the microcontroller's pins, resulting in a current of 60uA for an 82k resistor. | Resistors R1-R8 maintain the input potential at logical low (0) in case the wire is interrupted. Otherwise, the measured potential could be affected by external disturbances or user handling, etc. The resistor values are not critical and were selected to consume as little current as possible from the microcontroller's pins, resulting in a current of 60uA for an 82k resistor. | ||
- | </note> | ||
- | ===== Rezultate Obţinute ===== | ||
- | <note tip> | ||
- | Care au fost rezultatele obţinute în urma realizării proiectului vostru. | ||
- | </note> | ||
- | ===== Concluzii ===== | + | ===== Results ===== |
+ | |||
+ | {{:pm:prj2023:avaduva:final_vlad.jpg?450|}} | ||
+ | ===== Conclusions ===== | ||
+ | |||
+ | In conclusion, this project has helped us gain a better understanding of how to design, implement, and develop the necessary software for a device. We have learned valuable insights into working with microcontrollers, utilizing various input and output pins, interfacing with LCD displays, and performing cable continuity testing. Through this project, we have enhanced our skills in hardware design, programming, and troubleshooting. It has been a valuable learning experience that has equipped us with practical knowledge for future projects in device development. | ||
===== Download ===== | ===== Download ===== | ||
- | <note warning> | + | {{:pm:prj2023:avaduva:soft.zip|}} |
- | O arhivă (sau mai multe dacă este cazul) cu fişierele obţinute în urma realizării proiectului: surse, scheme, etc. Un fişier README, un ChangeLog, un script de compilare şi copiere automată pe uC crează întotdeauna o impresie bună ;-). | + | |
- | Fişierele se încarcă pe wiki folosind facilitatea **Add Images or other files**. Namespace-ul în care se încarcă fişierele este de tipul **:pm:prj20??:c?** sau **:pm:prj20??:c?:nume_student** (dacă este cazul). **Exemplu:** Dumitru Alin, 331CC -> **:pm:prj2009:cc:dumitru_alin**. | ||
- | </note> | ||
- | ===== Jurnal ===== | + | ===== Bibliography ===== |
- | <note tip> | + | https://en.wikipedia.org/wiki/Category_5_cable |
- | Puteți avea și o secțiune de jurnal în care să poată urmări asistentul de proiect progresul proiectului. | + | |
- | </note> | + | |
- | ===== Bibliografie/Resurse ===== | + | https://www.cnet.com/culture/how-to-make-your-own-ethernet-cable/ Datasheet ATMEGA16 |
- | <note> | ||
- | Listă cu documente, datasheet-uri, resurse Internet folosite, eventual grupate pe **Resurse Software** şi **Resurse Hardware**. | ||
- | </note> | ||
<html><a class="media mediafile mf_pdf" href="?do=export_pdf">Export to PDF</a></html> | <html><a class="media mediafile mf_pdf" href="?do=export_pdf">Export to PDF</a></html> |