diff --git a/Microcontrollers/opdracht 1.3/main.c b/Microcontrollers/opdracht 1.3/main.c new file mode 100644 index 0000000..eccad1b --- /dev/null +++ b/Microcontrollers/opdracht 1.3/main.c @@ -0,0 +1,18 @@ +/* + * opdracht 1.3.c + * + * Created: 10-2-2021 09:28:10 + * Author : Sem + */ + +#include + + +int main(void) +{ + /* Replace with your application code */ + while (1) + { + } +} + diff --git a/Microcontrollers/opdracht 1.3/opdracht 1.3.componentinfo.xml b/Microcontrollers/opdracht 1.3/opdracht 1.3.componentinfo.xml new file mode 100644 index 0000000..cd1f945 --- /dev/null +++ b/Microcontrollers/opdracht 1.3/opdracht 1.3.componentinfo.xml @@ -0,0 +1,86 @@ + + + + + + + Device + Startup + + + Atmel + 1.6.0 + C:/Program Files (x86)\Atmel\Studio\7.0\Packs + + + + + C:/Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.6.364\include\ + + include + C + + + include/ + + + + + C:/Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.6.364\include\avr\iom128.h + + header + C + JdJ7J9I/SJh965SEyyyVYw== + + include/avr/iom128.h + + + + + C:/Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.6.364\templates\main.c + template + source + C Exe + Gtw5CRNIZ4zlcNtZjRkXGg== + + templates/main.c + Main file (.c) + + + + C:/Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.6.364\templates\main.cpp + template + source + C Exe + mkKaE95TOoATsuBGv6jmxg== + + templates/main.cpp + Main file (.cpp) + + + + C:/Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.6.364\gcc\dev\atmega128 + + libraryPrefix + GCC + + + gcc/dev/atmega128 + + + + + ATmega_DFP + C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/ATmega_DFP/1.6.364/Atmel.ATmega_DFP.pdsc + 1.6.364 + true + ATmega128 + + + + Resolved + Fixed + true + + + \ No newline at end of file diff --git a/Microcontrollers/opdracht 1.3/opdracht 1.3.cproj b/Microcontrollers/opdracht 1.3/opdracht 1.3.cproj new file mode 100644 index 0000000..2f45972 --- /dev/null +++ b/Microcontrollers/opdracht 1.3/opdracht 1.3.cproj @@ -0,0 +1,28 @@ + + + + 2.0 + 7.0 + com.Atmel.AVRGCC8.C + dce6c7e3-ee26-4d79-826b-08594b9ad897 + ATmega128 + none + Executable + C + $(MSBuildProjectName) + .elf + $(MSBuildProjectDirectory)\$(Configuration) + opdracht 1.3 + opdracht 1.3 + opdracht 1.3 + + + + + + + + + + + \ No newline at end of file diff --git a/Microcontrollers/opdracht 1.7a/main.c b/Microcontrollers/opdracht 1.7a/main.c new file mode 100644 index 0000000..eaea0e3 --- /dev/null +++ b/Microcontrollers/opdracht 1.7a/main.c @@ -0,0 +1,104 @@ +/* + * main.c + * + * Created: 08-Feb-21 10:03:33 AM + * Author: lemms + */ +# define F_CPU 10000000UL + +#include +#include + +typedef enum { + IDLE, + PERPARE_COFFEE_POWDER, + BOIL_WATER, + POUR_COFFEE + } state ; + + typedef enum { + false = 0, + true = 1 + } bool; + +state current_state; + +void wait( int ms ) +{ + for (int i=0; i 2000); + setPourPumpState(shouldPour); + + milisPouring++; + + if(!shouldPour){ + milisPouring = 0; + } + break; + } + wait(1); + } +} \ No newline at end of file diff --git a/Microcontrollers/opdracht 1.7a/opdracht 1.7a.componentinfo.xml b/Microcontrollers/opdracht 1.7a/opdracht 1.7a.componentinfo.xml new file mode 100644 index 0000000..bbcc667 --- /dev/null +++ b/Microcontrollers/opdracht 1.7a/opdracht 1.7a.componentinfo.xml @@ -0,0 +1,42 @@ + + + + + + + Device + Startup + + + Atmel + 1.6.0 + C:/Program Files (x86)\Atmel\Studio\7.0\Packs + + + + + C:/Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.6.364\xc8\avr\include\avr\iom128.h + + header + XC + JdJ7J9I/SJh965SEyyyVYw== + + xc8/avr/include/avr/iom128.h + + + + + ATmega_DFP + C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/ATmega_DFP/1.6.364/Atmel.ATmega_DFP.pdsc + 1.6.364 + true + ATmega128 + + + + Resolved + Fixed + true + + + \ No newline at end of file diff --git a/Microcontrollers/opdracht 1.7a/opdracht 1.7a.cproj b/Microcontrollers/opdracht 1.7a/opdracht 1.7a.cproj new file mode 100644 index 0000000..effb6e9 --- /dev/null +++ b/Microcontrollers/opdracht 1.7a/opdracht 1.7a.cproj @@ -0,0 +1,56 @@ + + + + 2.0 + 7.0 + com.microchip.xc8 + {bae7767d-1cc2-42da-9cc0-fd878ea43ac1} + ATmega128 + none + Executable + C + $(MSBuildProjectName) + .elf + $(MSBuildProjectDirectory)\$(Configuration) + opdracht 2.7a + opdracht 1.7a + opdracht 2.7a + XC8_2.31 + true + false + true + true + + + true + + 2 + 0 + 0 + + + + + + + + + + + + + + + + + + + + + + + compile + + + + \ No newline at end of file diff --git a/Microcontrollers/opdracht 1.7a/opdracht 2.7a.componentinfo.xml b/Microcontrollers/opdracht 1.7a/opdracht 2.7a.componentinfo.xml new file mode 100644 index 0000000..bbcc667 --- /dev/null +++ b/Microcontrollers/opdracht 1.7a/opdracht 2.7a.componentinfo.xml @@ -0,0 +1,42 @@ + + + + + + + Device + Startup + + + Atmel + 1.6.0 + C:/Program Files (x86)\Atmel\Studio\7.0\Packs + + + + + C:/Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.6.364\xc8\avr\include\avr\iom128.h + + header + XC + JdJ7J9I/SJh965SEyyyVYw== + + xc8/avr/include/avr/iom128.h + + + + + ATmega_DFP + C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/ATmega_DFP/1.6.364/Atmel.ATmega_DFP.pdsc + 1.6.364 + true + ATmega128 + + + + Resolved + Fixed + true + + + \ No newline at end of file