Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
avrkurs
avrkurs
Commits
ae6facf2
Commit
ae6facf2
authored
Mar 05, 2019
by
BuildTools
Browse files
Merged my done with Johans done. Prioritized mine.
parents
3f2d896a
0f7bafcd
Changes
7
Show whitespace changes
Inline
Side-by-side
Session1-LF/Tasks_session1.txt
View file @
ae6facf2
Session1/README.txt
0 → 100644
View file @
ae6facf2
---Session 1---
Task 1:
Learn how to open Atmel Studio.
Read the code, what do you think it does?
Learn how to upload code.
Task 2:
Set up a button with pullup. Use this to control the led.
Task 3:
Add aditional logic so that the button toggles the led.
Task 4: (OPTIONAL)
Add the OLED board.
Find out where the buttons and LEDs connect.
Do something fun with the additional leds and buttons.
Session1/Task1-blink/Task1.componentinfo.xml
View file @
ae6facf2
...
...
@@ -15,7 +15,7 @@
<Description></Description>
<Files
xmlns:d4p1=
"http://schemas.microsoft.com/2003/10/Serialization/Arrays"
>
<d4p1:anyType
i:type=
"FileInfo"
>
<AbsolutePath>
C:/Program Files (x86)\Atmel\Studio\7.0\Packs\
a
tmel\ATmega_DFP\1.2.2
09
\include
</AbsolutePath>
<AbsolutePath>
C:/Program Files (x86)\Atmel\Studio\7.0\Packs\
A
tmel\ATmega_DFP\1.2.2
72
\include
</AbsolutePath>
<Attribute></Attribute>
<Category>
include
</Category>
<Condition>
C
</Condition>
...
...
@@ -26,18 +26,18 @@
<SourcePath></SourcePath>
</d4p1:anyType>
<d4p1:anyType
i:type=
"FileInfo"
>
<AbsolutePath>
C:/Program Files (x86)\Atmel\Studio\7.0\Packs\
a
tmel\ATmega_DFP\1.2.2
09
\include\avr\iom4809.h
</AbsolutePath>
<AbsolutePath>
C:/Program Files (x86)\Atmel\Studio\7.0\Packs\
A
tmel\ATmega_DFP\1.2.2
72
\include\avr\iom4809.h
</AbsolutePath>
<Attribute></Attribute>
<Category>
header
</Category>
<Condition>
C
</Condition>
<FileContentHash>
mWiFIOAGwUPlW0rYsXcjkg
==
</FileContentHash>
<FileContentHash>
fQaG1DJ4X5qUUwRvErAbNQ
==
</FileContentHash>
<FileVersion></FileVersion>
<Name>
include/avr/iom4809.h
</Name>
<SelectString></SelectString>
<SourcePath></SourcePath>
</d4p1:anyType>
<d4p1:anyType
i:type=
"FileInfo"
>
<AbsolutePath>
C:/Program Files (x86)\Atmel\Studio\7.0\Packs\
a
tmel\ATmega_DFP\1.2.2
09
\templates\main.c
</AbsolutePath>
<AbsolutePath>
C:/Program Files (x86)\Atmel\Studio\7.0\Packs\
A
tmel\ATmega_DFP\1.2.2
72
\templates\main.c
</AbsolutePath>
<Attribute>
template
</Attribute>
<Category>
source
</Category>
<Condition>
C Exe
</Condition>
...
...
@@ -48,7 +48,7 @@
<SourcePath></SourcePath>
</d4p1:anyType>
<d4p1:anyType
i:type=
"FileInfo"
>
<AbsolutePath>
C:/Program Files (x86)\Atmel\Studio\7.0\Packs\
a
tmel\ATmega_DFP\1.2.2
09
\templates\main.cpp
</AbsolutePath>
<AbsolutePath>
C:/Program Files (x86)\Atmel\Studio\7.0\Packs\
A
tmel\ATmega_DFP\1.2.2
72
\templates\main.cpp
</AbsolutePath>
<Attribute>
template
</Attribute>
<Category>
source
</Category>
<Condition>
C Exe
</Condition>
...
...
@@ -59,7 +59,7 @@
<SourcePath></SourcePath>
</d4p1:anyType>
<d4p1:anyType
i:type=
"FileInfo"
>
<AbsolutePath>
C:/Program Files (x86)\Atmel\Studio\7.0\Packs\
a
tmel\ATmega_DFP\1.2.2
09
\gcc\dev\atmega4809
</AbsolutePath>
<AbsolutePath>
C:/Program Files (x86)\Atmel\Studio\7.0\Packs\
A
tmel\ATmega_DFP\1.2.2
72
\gcc\dev\atmega4809
</AbsolutePath>
<Attribute></Attribute>
<Category>
libraryPrefix
</Category>
<Condition>
GCC
</Condition>
...
...
@@ -71,8 +71,8 @@
</d4p1:anyType>
</Files>
<PackName>
ATmega_DFP
</PackName>
<PackPath>
C:/Program Files (x86)/Atmel/Studio/7.0/Packs/
a
tmel/ATmega_DFP/1.2.2
09
/Atmel.ATmega_DFP.pdsc
</PackPath>
<PackVersion>
1.2.2
09
</PackVersion>
<PackPath>
C:/Program Files (x86)/Atmel/Studio/7.0/Packs/
A
tmel/ATmega_DFP/1.2.2
72
/Atmel.ATmega_DFP.pdsc
</PackPath>
<PackVersion>
1.2.2
72
</PackVersion>
<PresentInProject>
true
</PresentInProject>
<ReferenceConditionId>
ATmega4809
</ReferenceConditionId>
<RteComponents
xmlns:d4p1=
"http://schemas.microsoft.com/2003/10/Serialization/Arrays"
>
...
...
Session1/Task1-blink/Task1.cproj
View file @
ae6facf2
...
...
@@ -36,7 +36,7 @@
<dependencies>
<content-extension
eid=
"atmel.asf"
uuidref=
"Atmel.ASF"
version=
"3.34.1"
/>
</dependencies>
</framework-data>
</framework-data>
</AsfFrameworkConfig>
<ResetRule>
0
</ResetRule>
<EraseKey
/>
...
...
@@ -84,7 +84,7 @@
<PropertyGroup
Condition=
" '$(Configuration)' == 'Release' "
>
<ToolchainSettings>
<AvrGcc>
<avrgcc.common.Device>
-mmcu=atmega4809 -B "%24(PackRepoDir)\
a
tmel\ATmega_DFP\1.2.2
09
\gcc\dev\atmega4809"
</avrgcc.common.Device>
<avrgcc.common.Device>
-mmcu=atmega4809 -B "%24(PackRepoDir)\
A
tmel\ATmega_DFP\1.2.2
72
\gcc\dev\atmega4809"
</avrgcc.common.Device>
<avrgcc.common.outputfiles.hex>
True
</avrgcc.common.outputfiles.hex>
<avrgcc.common.outputfiles.lss>
True
</avrgcc.common.outputfiles.lss>
<avrgcc.common.outputfiles.eep>
True
</avrgcc.common.outputfiles.eep>
...
...
@@ -99,7 +99,7 @@
</avrgcc.compiler.symbols.DefSymbols>
<avrgcc.compiler.directories.IncludePaths>
<ListValues>
<Value>
%24(PackRepoDir)\
a
tmel\ATmega_DFP\1.2.2
09
\include
</Value>
<Value>
%24(PackRepoDir)\
A
tmel\ATmega_DFP\1.2.2
72
\include
</Value>
</ListValues>
</avrgcc.compiler.directories.IncludePaths>
<avrgcc.compiler.optimization.level>
Optimize for size (-Os)
</avrgcc.compiler.optimization.level>
...
...
@@ -113,7 +113,7 @@
</avrgcc.linker.libraries.Libraries>
<avrgcc.assembler.general.IncludePaths>
<ListValues>
<Value>
%24(PackRepoDir)\
a
tmel\ATmega_DFP\1.2.2
09
\include
</Value>
<Value>
%24(PackRepoDir)\
A
tmel\ATmega_DFP\1.2.2
72
\include
</Value>
</ListValues>
</avrgcc.assembler.general.IncludePaths>
</AvrGcc>
...
...
@@ -122,7 +122,7 @@
<PropertyGroup
Condition=
" '$(Configuration)' == 'Debug' "
>
<ToolchainSettings>
<AvrGcc>
<avrgcc.common.Device>
-mmcu=atmega4809 -B "%24(PackRepoDir)\
a
tmel\ATmega_DFP\1.2.2
09
\gcc\dev\atmega4809"
</avrgcc.common.Device>
<avrgcc.common.Device>
-mmcu=atmega4809 -B "%24(PackRepoDir)\
A
tmel\ATmega_DFP\1.2.2
72
\gcc\dev\atmega4809"
</avrgcc.common.Device>
<avrgcc.common.outputfiles.hex>
True
</avrgcc.common.outputfiles.hex>
<avrgcc.common.outputfiles.lss>
True
</avrgcc.common.outputfiles.lss>
<avrgcc.common.outputfiles.eep>
True
</avrgcc.common.outputfiles.eep>
...
...
@@ -137,7 +137,7 @@
</avrgcc.compiler.symbols.DefSymbols>
<avrgcc.compiler.directories.IncludePaths>
<ListValues>
<Value>
%24(PackRepoDir)\
a
tmel\ATmega_DFP\1.2.2
09
\include
</Value>
<Value>
%24(PackRepoDir)\
A
tmel\ATmega_DFP\1.2.2
72
\include
</Value>
</ListValues>
</avrgcc.compiler.directories.IncludePaths>
<avrgcc.compiler.optimization.level>
Optimize (-O1)
</avrgcc.compiler.optimization.level>
...
...
@@ -152,7 +152,7 @@
</avrgcc.linker.libraries.Libraries>
<avrgcc.assembler.general.IncludePaths>
<ListValues>
<Value>
%24(PackRepoDir)\
a
tmel\ATmega_DFP\1.2.2
09
\include
</Value>
<Value>
%24(PackRepoDir)\
A
tmel\ATmega_DFP\1.2.2
72
\include
</Value>
</ListValues>
</avrgcc.assembler.general.IncludePaths>
<avrgcc.assembler.debugging.DebugLevel>
Default (-Wa,-g)
</avrgcc.assembler.debugging.DebugLevel>
...
...
Session1/Task2-button/Task2.componentinfo.xml
View file @
ae6facf2
...
...
@@ -15,7 +15,7 @@
<Description></Description>
<Files
xmlns:d4p1=
"http://schemas.microsoft.com/2003/10/Serialization/Arrays"
>
<d4p1:anyType
i:type=
"FileInfo"
>
<AbsolutePath>
C:/Program Files (x86)\Atmel\Studio\7.0\Packs\
a
tmel\ATmega_DFP\1.2.2
09
\include
</AbsolutePath>
<AbsolutePath>
C:/Program Files (x86)\Atmel\Studio\7.0\Packs\
A
tmel\ATmega_DFP\1.2.2
72
\include
</AbsolutePath>
<Attribute></Attribute>
<Category>
include
</Category>
<Condition>
C
</Condition>
...
...
@@ -26,18 +26,18 @@
<SourcePath></SourcePath>
</d4p1:anyType>
<d4p1:anyType
i:type=
"FileInfo"
>
<AbsolutePath>
C:/Program Files (x86)\Atmel\Studio\7.0\Packs\
a
tmel\ATmega_DFP\1.2.2
09
\include\avr\iom4809.h
</AbsolutePath>
<AbsolutePath>
C:/Program Files (x86)\Atmel\Studio\7.0\Packs\
A
tmel\ATmega_DFP\1.2.2
72
\include\avr\iom4809.h
</AbsolutePath>
<Attribute></Attribute>
<Category>
header
</Category>
<Condition>
C
</Condition>
<FileContentHash>
mWiFIOAGwUPlW0rYsXcjkg
==
</FileContentHash>
<FileContentHash>
fQaG1DJ4X5qUUwRvErAbNQ
==
</FileContentHash>
<FileVersion></FileVersion>
<Name>
include/avr/iom4809.h
</Name>
<SelectString></SelectString>
<SourcePath></SourcePath>
</d4p1:anyType>
<d4p1:anyType
i:type=
"FileInfo"
>
<AbsolutePath>
C:/Program Files (x86)\Atmel\Studio\7.0\Packs\
a
tmel\ATmega_DFP\1.2.2
09
\templates\main.c
</AbsolutePath>
<AbsolutePath>
C:/Program Files (x86)\Atmel\Studio\7.0\Packs\
A
tmel\ATmega_DFP\1.2.2
72
\templates\main.c
</AbsolutePath>
<Attribute>
template
</Attribute>
<Category>
source
</Category>
<Condition>
C Exe
</Condition>
...
...
@@ -48,7 +48,7 @@
<SourcePath></SourcePath>
</d4p1:anyType>
<d4p1:anyType
i:type=
"FileInfo"
>
<AbsolutePath>
C:/Program Files (x86)\Atmel\Studio\7.0\Packs\
a
tmel\ATmega_DFP\1.2.2
09
\templates\main.cpp
</AbsolutePath>
<AbsolutePath>
C:/Program Files (x86)\Atmel\Studio\7.0\Packs\
A
tmel\ATmega_DFP\1.2.2
72
\templates\main.cpp
</AbsolutePath>
<Attribute>
template
</Attribute>
<Category>
source
</Category>
<Condition>
C Exe
</Condition>
...
...
@@ -59,7 +59,7 @@
<SourcePath></SourcePath>
</d4p1:anyType>
<d4p1:anyType
i:type=
"FileInfo"
>
<AbsolutePath>
C:/Program Files (x86)\Atmel\Studio\7.0\Packs\
a
tmel\ATmega_DFP\1.2.2
09
\gcc\dev\atmega4809
</AbsolutePath>
<AbsolutePath>
C:/Program Files (x86)\Atmel\Studio\7.0\Packs\
A
tmel\ATmega_DFP\1.2.2
72
\gcc\dev\atmega4809
</AbsolutePath>
<Attribute></Attribute>
<Category>
libraryPrefix
</Category>
<Condition>
GCC
</Condition>
...
...
@@ -71,8 +71,8 @@
</d4p1:anyType>
</Files>
<PackName>
ATmega_DFP
</PackName>
<PackPath>
C:/Program Files (x86)/Atmel/Studio/7.0/Packs/
a
tmel/ATmega_DFP/1.2.2
09
/Atmel.ATmega_DFP.pdsc
</PackPath>
<PackVersion>
1.2.2
09
</PackVersion>
<PackPath>
C:/Program Files (x86)/Atmel/Studio/7.0/Packs/
A
tmel/ATmega_DFP/1.2.2
72
/Atmel.ATmega_DFP.pdsc
</PackPath>
<PackVersion>
1.2.2
72
</PackVersion>
<PresentInProject>
true
</PresentInProject>
<ReferenceConditionId>
ATmega4809
</ReferenceConditionId>
<RteComponents
xmlns:d4p1=
"http://schemas.microsoft.com/2003/10/Serialization/Arrays"
>
...
...
Session2/README.txt
0 → 100644
View file @
ae6facf2
---Session 2---
Task 1: Timer
Get hands on with timers and interupts to toggle a led at exact times.
Task 2: PWM
Continuing with timers, use them for pulse width modulation of LEDs
Task 3: UART
Write a UART driver to communicate with the PC.
Preferably interrupt based.
\ No newline at end of file
Session3/README.txt
0 → 100644
View file @
ae6facf2
---Session 3---
Task 1:
Use the ADC to read the value of the light sensor on I/O 1 and send it over uart.
Task 2:
Write an SPI driver and and test it with the OLED screen and provided image.
Task 3: (OPTIONAL)
Use the screen and buttons to make a game! (Suggestion: Simon says)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment