diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000..4c0e41c --- /dev/null +++ b/docs/README.md @@ -0,0 +1,19 @@ +# [Bachelor in embedded system](/bachelor/) + +## [PTR](/bachelor/PTR/) + + +## [SDi](/bachelor/SDi/) +- [transmission_process.md](/bachelor/SDi/transmission_process.md) + + +## [Eln](/bachelor/Eln/) +- [AD/DA](/bachelor/Eln/ADDA.md) + + +## [SEm](/bachelor/SEm/) +- [PLA - Programmation en langage assembleur](/bachelor/SEm/PLA.md) +- [ASM - Assembleur ARM](/bachelor/SEm/ASM.md) + + +# [STM32](/STM32/) diff --git a/docs/STM32/README.md b/docs/STM32/README.md index 05e3698..8ce0753 100644 --- a/docs/STM32/README.md +++ b/docs/STM32/README.md @@ -19,11 +19,11 @@ `#Linux` `#WSL` 1. Remove old toolchain ```bash -sudo apt remove binutils-arm-none-eabi gcc-arm-none-eabi +sudo apt remove binutils-SEm-none-eabi gcc-SEm-none-eabi ``` 2. Add new toolchain repository ```bash -sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa +sudo add-apt-repository ppa:team-gcc-SEm-embedded/ppa ``` 3. Update ```bash @@ -31,7 +31,7 @@ sudo apt update ``` 4. Install ```bash -sudo apt install gcc-arm-none-eabi gdb-arm-none-eabi +sudo apt install gcc-SEm-none-eabi gdb-SEm-none-eabi ``` diff --git a/docs/_navbar.md b/docs/_navbar.md index 946b2c9..795fc34 100644 --- a/docs/_navbar.md +++ b/docs/_navbar.md @@ -1,9 +1,9 @@ -* [Bachelor](/bachelor/) - * [ARM](/bachelor/arm/) - * [Transmission Process](/bachelor/transmission_process.md) - * [STM32](/STM32/) -* [ARM](/bachelor/arm/) - * [PLA - Programmation en langage assembleur](/bachelor/arm/PLA.md) - * [ASM - Assembleur ARM](/bachelor/arm/ASM.md) -* [Transmission Process](/bachelor/transmission_process.md) -* [STM32](/STM32/) +* [PTR](/bachelor/PTR) +* [SDi](/bachelor/SDi) + * [Transmission Process](/bachelor/SDi/transmission_process.md) +* [Eln](/bachelor/Eln/) + * [AD/DA](/bachelor/Eln/ADDA.md) +* [SEm](/bachelor/SEm/) + * [PLA - Programmation en langage assembleur](/bachelor/SEm/PLA.md) + * [ASM - Assembleur ARM](/bachelor/SEm/ASM.md) +* [STM32](/STM32/) \ No newline at end of file diff --git a/docs/bachelor/Eln/ADDA.md b/docs/bachelor/Eln/ADDA.md new file mode 100644 index 0000000..8314d2d --- /dev/null +++ b/docs/bachelor/Eln/ADDA.md @@ -0,0 +1,48 @@ +# AD/DA + +## AD +Il existe 4 méthodes principales pour une conversion Analogique vers Digital: +- Parallèle +- Par pesée +- Par comptage +- Sigma-delta + +# Conversion D/A +| | + (Avantage) | - (Inconvénient) | +|-------------------------|------------------------|-----------------------------| +| **Parallèle
Unaire** | Simplicité
Monotone | Taille du circuit ~$2^{n}$ | +| **Pesée** | Taille du circuit ~$n$ | | +| **Par comptage** | 1 seul switch | Nécessite d'aller très vite | + + + +### Parallèle + +![AD Parallèle](parallele.png ':size=200') + +### Par comptage +Un seul switch mais avec une fréquence de commutation très rapide +$$ +V_{a} = \frac{t_{on}}{T}\cdot V_{ref} +$$ +![AD par comptage](comptage.png ':size=300') +![Graph AD par comptage](comptage-graph.png ':size=200') + +### Par pesée +Un switch par bit. + +![AD par pesée](pesee.png ':size=300') + +Pour un $V_{red} = 1[V]$ on a: + +| z2 | z1 | z0 | Va | +|----|----|----|-------| +| 0 | 0 | 0 | 0,000 | +| 0 | 0 | 1 | 0,125 | +| 0 | 1 | 0 | 0,250 | +| 0 | 1 | 1 | 0,375 | +| 1 | 0 | 0 | 0,500 | +| 1 | 0 | 1 | 0,625 | +| 1 | 1 | 0 | 0,750 | +| 1 | 1 | 1 | 0,875 | + diff --git a/docs/bachelor/Eln/README.md b/docs/bachelor/Eln/README.md new file mode 100644 index 0000000..9e1b5cf --- /dev/null +++ b/docs/bachelor/Eln/README.md @@ -0,0 +1,3 @@ +# Interfaces et convertisseur + +- [AD/DA](/bachelor/Eln/ADDA.md) \ No newline at end of file diff --git a/docs/bachelor/Eln/comptage-graph.png b/docs/bachelor/Eln/comptage-graph.png new file mode 100644 index 0000000..87e2bab Binary files /dev/null and b/docs/bachelor/Eln/comptage-graph.png differ diff --git a/docs/bachelor/Eln/comptage.png b/docs/bachelor/Eln/comptage.png new file mode 100644 index 0000000..192c683 Binary files /dev/null and b/docs/bachelor/Eln/comptage.png differ diff --git a/docs/bachelor/Eln/parallele.png b/docs/bachelor/Eln/parallele.png new file mode 100644 index 0000000..eacdf7b Binary files /dev/null and b/docs/bachelor/Eln/parallele.png differ diff --git a/docs/bachelor/Eln/pesee.png b/docs/bachelor/Eln/pesee.png new file mode 100644 index 0000000..0f8e9ce Binary files /dev/null and b/docs/bachelor/Eln/pesee.png differ diff --git a/docs/bachelor/README.md b/docs/bachelor/README.md index aceedb8..415dacc 100644 --- a/docs/bachelor/README.md +++ b/docs/bachelor/README.md @@ -1,210 +1,18 @@ -#Demo -$$ -E=mc^2 -$$ +# Bachelor in embedded system -[transmission_process.md](transmission_process.md) -## embedding it directly - -```mermaid -graph TD; - A-->B; - A-->C; - B-->D; - C-->D; -``` - -```plantuml -@startuml -Alice -> Bob: Authentication Request -Bob --> Alice: Authentication Response - -Alice -> Bob: Another authentication Request -Alice <-- Bob: another authentication Response -@enduml -``` - -## load from external files - -![kroki-excalidraw](../excalidraw.json) - -## Wavedrom -```wavedrom - { "signal": [ - { "name": "pclk", "wave": 'p.......' }, - { "name": "Pclk", "wave": 'P.......' }, - { "name": "nclk", "wave": 'n.......' }, - { "name": "Nclk", "wave": 'N.......' }, - {}, - { "name": 'clk0', "wave": 'phnlPHNL' }, - { "name": 'clk1', "wave": 'xhlhLHl.' }, - { "name": 'clk2', "wave": 'hpHplnLn' }, - { "name": 'clk3', "wave": 'nhNhplPl' }, - { "name": 'clk4', "wave": 'xlh.L.Hx' }, - ]} -``` - -# Code exemple -``` cpp -void foo(uint8_t bar){ - bar *= 4; - (void*) bar; -} -``` +## [PTR](/bachelor/PTR/) -## drawio +## [SDi](/bachelor/SDi/) +- [transmission_process.md](/bachelor/SDi/transmission_process.md) + + +## [Eln](/bachelor/Eln/) +- [Interfaces et convertisseurs](/bachelor/Eln/README.md#Interfaces-et-convertisseur) +- [AD/DA](/bachelor/Eln/ADDA.md) + + +## [SEm](/bachelor/SEm/) +- [PLA - Programmation en langage assembleur](/bachelor/SEm/PLA.md) +- [ASM - Assembleur ARM](/bachelor/SEm/ASM.md) -```drawio - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -``` diff --git a/docs/bachelor/SDi/img.png b/docs/bachelor/SDi/img.png new file mode 100644 index 0000000..3c64698 Binary files /dev/null and b/docs/bachelor/SDi/img.png differ diff --git a/docs/bachelor/SDi/img_1.png b/docs/bachelor/SDi/img_1.png new file mode 100644 index 0000000..8c58cfc Binary files /dev/null and b/docs/bachelor/SDi/img_1.png differ diff --git a/docs/bachelor/SDi/paper_exercise.md b/docs/bachelor/SDi/paper_exercise.md new file mode 100644 index 0000000..dd7ec41 --- /dev/null +++ b/docs/bachelor/SDi/paper_exercise.md @@ -0,0 +1,50 @@ +Soient les classes AppE, NWE et RTXE. La lettre E signifié Entity. +# Exercice 1 +## Question +Dessinez un premier diagramme de classe qui montre les différentes couches de votre système et leurs classes respectives. Esquissez les dépendances. +## Réponse +```plantuml +@startuml +Application.AppE .-down-> Network.NWE +Network.NWE .up-> Application.AppE + +Network.NWE .-down-> RTX.RTXE +RTX.RTXE .up-> Network.NWE + +@enduml +``` + +# Exercice 5 +## Question +Dessinez maintenant un nouveau diagramme de classes avec tous les paquets et toutes les classes, interfaces et méthodes. +## Réponse +```plantuml +@startuml +class AppE { + + dataIndication() + + advIndication() + + connIndication() + + connConfirmation() + + discIndication() + + discConfirmation() + + + setNWE(NWE*) +} + +class NWE { + + dataRequest(Data*) + + advRequest(Advertise*) + + connRequest(Connection*) + + connResponse(Connection*) + + discRequest(Connection*) + + discResponse(Connection*) + + receive() + + + subscribe(NWE*) + + setRTX(RTX*) +} +@enduml +``` +![img_1.png](img_1.png) + +![img.png](img.png) \ No newline at end of file diff --git a/docs/bachelor/transmission_process.md b/docs/bachelor/SDi/transmission_process.md similarity index 100% rename from docs/bachelor/transmission_process.md rename to docs/bachelor/SDi/transmission_process.md diff --git a/docs/bachelor/arm/ASM.md b/docs/bachelor/SEm/ASM.md similarity index 100% rename from docs/bachelor/arm/ASM.md rename to docs/bachelor/SEm/ASM.md diff --git a/docs/bachelor/arm/PLA.md b/docs/bachelor/SEm/PLA.md similarity index 100% rename from docs/bachelor/arm/PLA.md rename to docs/bachelor/SEm/PLA.md diff --git a/docs/bachelor/arm/README.md b/docs/bachelor/SEm/README.md similarity index 65% rename from docs/bachelor/arm/README.md rename to docs/bachelor/SEm/README.md index 6840a72..0bce9a5 100644 --- a/docs/bachelor/arm/README.md +++ b/docs/bachelor/SEm/README.md @@ -1,4 +1,4 @@ # Taille des paquets de bits [PLA](/bachelor/arm/PLA.md) -[ASM.md](/bachelor/arm/ASM.md) \ No newline at end of file +[ASM(/bachelor/arm/ASM.md) \ No newline at end of file diff --git a/docs/bachelor/arm/img/Pasted image 20231116153738.png b/docs/bachelor/SEm/img/Pasted image 20231116153738.png similarity index 100% rename from docs/bachelor/arm/img/Pasted image 20231116153738.png rename to docs/bachelor/SEm/img/Pasted image 20231116153738.png diff --git a/docs/bachelor/arm/img/Pasted image 20231116154303.png b/docs/bachelor/SEm/img/Pasted image 20231116154303.png similarity index 100% rename from docs/bachelor/arm/img/Pasted image 20231116154303.png rename to docs/bachelor/SEm/img/Pasted image 20231116154303.png diff --git a/docs/bachelor/arm/img/Pasted image 20231116154853.png b/docs/bachelor/SEm/img/Pasted image 20231116154853.png similarity index 100% rename from docs/bachelor/arm/img/Pasted image 20231116154853.png rename to docs/bachelor/SEm/img/Pasted image 20231116154853.png diff --git a/docs/bachelor/arm/img/Pasted image 20231116155200.png b/docs/bachelor/SEm/img/Pasted image 20231116155200.png similarity index 100% rename from docs/bachelor/arm/img/Pasted image 20231116155200.png rename to docs/bachelor/SEm/img/Pasted image 20231116155200.png diff --git a/docs/divers/README.md b/docs/divers/README.md new file mode 100644 index 0000000..8e59605 --- /dev/null +++ b/docs/divers/README.md @@ -0,0 +1,220 @@ +#Demo +$$ +E=mc^2 +$$ + +[transmission_process.md](../bachelor/SDi/transmission_process.md) +## embedding it directly + +```mermaid +graph TD; + A-->B; + A-->C; + B-->D; + C-->D; +``` + +```plantuml +@startuml +Alice -> Bob: Authentication Request +Bob --> Alice: Authentication Response + +Alice -> Bob: Another authentication Request +Alice <-- Bob: another authentication Response +@enduml +``` + +## load from external files + +![kroki-excalidraw](../excalidraw.json) + +## Wavedrom +```wavedrom + { "signal": [ + { "name": "pclk", "wave": 'p.......' }, + { "name": "Pclk", "wave": 'P.......' }, + { "name": "nclk", "wave": 'n.......' }, + { "name": "Nclk", "wave": 'N.......' }, + {}, + { "name": 'clk0', "wave": 'phnlPHNL' }, + { "name": 'clk1', "wave": 'xhlhLHl.' }, + { "name": 'clk2', "wave": 'hpHplnLn' }, + { "name": 'clk3', "wave": 'nhNhplPl' }, + { "name": 'clk4', "wave": 'xlh.L.Hx' }, + ]} +``` +----- +## Wavedrom register +```wavedrom +{"reg": [ + {bits: 7, name: 'opcode', attr: ['LUI', 'AUIPC']}, + {bits: 5, name: 'rd', attr: 'dest'}, + {bits: 20, name: 'imm[31:12]', attr: 'U-immediate[31:12]', type: 3} +], config: {hspace: width}} +} +``` + +# Code exemple +``` cpp +void foo(uint8_t bar){ + bar *= 4; + (void*) bar; +} +``` + + +## drawio + +```drawio + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +``` diff --git a/docs/index.html b/docs/index.html index 258bd68..8d8808b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -13,12 +13,13 @@ type="text/css" /> +
+ + +