##// END OF EJS Templates
Se añade primera versión del módulo del módulo de adquisición. Revisar las notas de versión. Posiblemente tenga bugs de sincronización en casos de PPS cercal LOCK.
lgonzales -
r218:219
parent child
Show More
1 NO CONTENT: new file 10644
@@ -0,0 +1,22
1 
No newline at end of file
2 Microsoft Visual Studio Solution File, Format Version 12.00
No newline at end of file
3 # Atmel Studio Solution File, Format Version 11.00
No newline at end of file
4 VisualStudioVersion = 14.0.23107.0
No newline at end of file
5 MinimumVisualStudioVersion = 10.0.40219.1
No newline at end of file
6 Project("{54F91283-7BC4-4236-8FF9-10F437C3AD48}") = "ADCSPI_ver01", "ADCSPI_ver01\ADCSPI_ver01.cproj", "{DCE6C7E3-EE26-4D79-826B-08594B9AD897}"
No newline at end of file
7 EndProject
No newline at end of file
8 Global
No newline at end of file
9 GlobalSection(SolutionConfigurationPlatforms) = preSolution
No newline at end of file
10 Debug|AVR = Debug|AVR
No newline at end of file
11 Release|AVR = Release|AVR
No newline at end of file
12 EndGlobalSection
No newline at end of file
13 GlobalSection(ProjectConfigurationPlatforms) = postSolution
No newline at end of file
14 {DCE6C7E3-EE26-4D79-826B-08594B9AD897}.Debug|AVR.ActiveCfg = Debug|AVR
No newline at end of file
15 {DCE6C7E3-EE26-4D79-826B-08594B9AD897}.Debug|AVR.Build.0 = Debug|AVR
No newline at end of file
16 {DCE6C7E3-EE26-4D79-826B-08594B9AD897}.Release|AVR.ActiveCfg = Release|AVR
No newline at end of file
17 {DCE6C7E3-EE26-4D79-826B-08594B9AD897}.Release|AVR.Build.0 = Release|AVR
No newline at end of file
18 EndGlobalSection
No newline at end of file
19 GlobalSection(SolutionProperties) = preSolution
No newline at end of file
20 HideSolutionNode = FALSE
No newline at end of file
21 EndGlobalSection
No newline at end of file
22 EndGlobal No newline at end of file
@@ -0,0 +1,86
1 <?xml version="1.0" encoding="utf-8"?>
No newline at end of file
2 <Store xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="AtmelPackComponentManagement">
No newline at end of file
3 <ProjectComponents>
No newline at end of file
4 <ProjectComponent z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/">
No newline at end of file
5 <CApiVersion></CApiVersion>
No newline at end of file
6 <CBundle></CBundle>
No newline at end of file
7 <CClass>Device</CClass>
No newline at end of file
8 <CGroup>Startup</CGroup>
No newline at end of file
9 <CSub></CSub>
No newline at end of file
10 <CVariant></CVariant>
No newline at end of file
11 <CVendor>Atmel</CVendor>
No newline at end of file
12 <CVersion>1.0.0</CVersion>
No newline at end of file
13 <DefaultRepoPath>C:/Program Files (x86)\Atmel\Studio\7.0\Packs</DefaultRepoPath>
No newline at end of file
14 <DependentComponents xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
No newline at end of file
15 <Description></Description>
No newline at end of file
16 <Files xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
No newline at end of file
17 <d4p1:anyType i:type="FileInfo">
No newline at end of file
18 <AbsolutePath>C:/Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAD_DFP\1.0.29\include</AbsolutePath>
No newline at end of file
19 <Attribute></Attribute>
No newline at end of file
20 <Category>include</Category>
No newline at end of file
21 <Condition>C</Condition>
No newline at end of file
22 <FileContentHash i:nil="true" />
No newline at end of file
23 <FileVersion></FileVersion>
No newline at end of file
24 <Name>include</Name>
No newline at end of file
25 <SelectString></SelectString>
No newline at end of file
26 <SourcePath></SourcePath>
No newline at end of file
27 </d4p1:anyType>
No newline at end of file
28 <d4p1:anyType i:type="FileInfo">
No newline at end of file
29 <AbsolutePath>C:/Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAD_DFP\1.0.29\include\avr\iox32d4.h</AbsolutePath>
No newline at end of file
30 <Attribute></Attribute>
No newline at end of file
31 <Category>header</Category>
No newline at end of file
32 <Condition>C</Condition>
No newline at end of file
33 <FileContentHash>Fb3v/Gsyx/fNhVPcSy4byA==</FileContentHash>
No newline at end of file
34 <FileVersion></FileVersion>
No newline at end of file
35 <Name>include/avr/iox32d4.h</Name>
No newline at end of file
36 <SelectString></SelectString>
No newline at end of file
37 <SourcePath></SourcePath>
No newline at end of file
38 </d4p1:anyType>
No newline at end of file
39 <d4p1:anyType i:type="FileInfo">
No newline at end of file
40 <AbsolutePath>C:/Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAD_DFP\1.0.29\templates\main.c</AbsolutePath>
No newline at end of file
41 <Attribute>template</Attribute>
No newline at end of file
42 <Category>source</Category>
No newline at end of file
43 <Condition>C Exe</Condition>
No newline at end of file
44 <FileContentHash>8XJjXFQBySw6iim2xAnW5g==</FileContentHash>
No newline at end of file
45 <FileVersion></FileVersion>
No newline at end of file
46 <Name>templates/main.c</Name>
No newline at end of file
47 <SelectString>Main file (.c)</SelectString>
No newline at end of file
48 <SourcePath></SourcePath>
No newline at end of file
49 </d4p1:anyType>
No newline at end of file
50 <d4p1:anyType i:type="FileInfo">
No newline at end of file
51 <AbsolutePath>C:/Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAD_DFP\1.0.29\templates\main.cpp</AbsolutePath>
No newline at end of file
52 <Attribute>template</Attribute>
No newline at end of file
53 <Category>source</Category>
No newline at end of file
54 <Condition>C Exe</Condition>
No newline at end of file
55 <FileContentHash>YXFphlh0CtZJU+ebktABgQ==</FileContentHash>
No newline at end of file
56 <FileVersion></FileVersion>
No newline at end of file
57 <Name>templates/main.cpp</Name>
No newline at end of file
58 <SelectString>Main file (.cpp)</SelectString>
No newline at end of file
59 <SourcePath></SourcePath>
No newline at end of file
60 </d4p1:anyType>
No newline at end of file
61 <d4p1:anyType i:type="FileInfo">
No newline at end of file
62 <AbsolutePath>C:/Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAD_DFP\1.0.29\gcc\dev\atxmega32d4</AbsolutePath>
No newline at end of file
63 <Attribute></Attribute>
No newline at end of file
64 <Category>libraryPrefix</Category>
No newline at end of file
65 <Condition>GCC</Condition>
No newline at end of file
66 <FileContentHash i:nil="true" />
No newline at end of file
67 <FileVersion></FileVersion>
No newline at end of file
68 <Name>gcc/dev/atxmega32d4</Name>
No newline at end of file
69 <SelectString></SelectString>
No newline at end of file
70 <SourcePath></SourcePath>
No newline at end of file
71 </d4p1:anyType>
No newline at end of file
72 </Files>
No newline at end of file
73 <PackName>XMEGAD_DFP</PackName>
No newline at end of file
74 <PackPath>C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/XMEGAD_DFP/1.0.29/Atmel.XMEGAD_DFP.pdsc</PackPath>
No newline at end of file
75 <PackVersion>1.0.29</PackVersion>
No newline at end of file
76 <PresentInProject>true</PresentInProject>
No newline at end of file
77 <ReferenceConditionId>ATxmega32D4</ReferenceConditionId>
No newline at end of file
78 <RteComponents xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
No newline at end of file
79 <d4p1:string></d4p1:string>
No newline at end of file
80 </RteComponents>
No newline at end of file
81 <Status>Resolved</Status>
No newline at end of file
82 <VersionMode>Fixed</VersionMode>
No newline at end of file
83 <IsComponentInAtProject>true</IsComponentInAtProject>
No newline at end of file
84 </ProjectComponent>
No newline at end of file
85 </ProjectComponents>
No newline at end of file
86 </Store> No newline at end of file
@@ -0,0 +1,161
1 <?xml version="1.0" encoding="utf-8"?>
No newline at end of file
2 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="14.0">
No newline at end of file
3 <PropertyGroup>
No newline at end of file
4 <SchemaVersion>2.0</SchemaVersion>
No newline at end of file
5 <ProjectVersion>7.0</ProjectVersion>
No newline at end of file
6 <ToolchainName>com.Atmel.AVRGCC8.C</ToolchainName>
No newline at end of file
7 <ProjectGuid>dce6c7e3-ee26-4d79-826b-08594b9ad897</ProjectGuid>
No newline at end of file
8 <avrdevice>ATxmega32D4</avrdevice>
No newline at end of file
9 <avrdeviceseries>none</avrdeviceseries>
No newline at end of file
10 <OutputType>Executable</OutputType>
No newline at end of file
11 <Language>C</Language>
No newline at end of file
12 <OutputFileName>$(MSBuildProjectName)</OutputFileName>
No newline at end of file
13 <OutputFileExtension>.elf</OutputFileExtension>
No newline at end of file
14 <OutputDirectory>$(MSBuildProjectDirectory)\$(Configuration)</OutputDirectory>
No newline at end of file
15 <AssemblyName>ADCSPI_ver01</AssemblyName>
No newline at end of file
16 <Name>ADCSPI_ver01</Name>
No newline at end of file
17 <RootNamespace>ADCSPI_ver01</RootNamespace>
No newline at end of file
18 <ToolchainFlavour>Native</ToolchainFlavour>
No newline at end of file
19 <KeepTimersRunning>true</KeepTimersRunning>
No newline at end of file
20 <OverrideVtor>false</OverrideVtor>
No newline at end of file
21 <CacheFlash>true</CacheFlash>
No newline at end of file
22 <ProgFlashFromRam>true</ProgFlashFromRam>
No newline at end of file
23 <RamSnippetAddress>0x20000000</RamSnippetAddress>
No newline at end of file
24 <UncachedRange />
No newline at end of file
25 <preserveEEPROM>true</preserveEEPROM>
No newline at end of file
26 <OverrideVtorValue>exception_table</OverrideVtorValue>
No newline at end of file
27 <BootSegment>2</BootSegment>
No newline at end of file
28 <eraseonlaunchrule>0</eraseonlaunchrule>
No newline at end of file
29 <ExternalProgrammingToolCommand />
No newline at end of file
30 <AsfFrameworkConfig>
No newline at end of file
31 <framework-data xmlns="">
No newline at end of file
32 <options />
No newline at end of file
33 <configurations />
No newline at end of file
34 <files />
No newline at end of file
35 <documentation help="" />
No newline at end of file
36 <offline-documentation help="" />
No newline at end of file
37 <dependencies>
No newline at end of file
38 <content-extension eid="atmel.asf" uuidref="Atmel.ASF" version="3.27.3" />
No newline at end of file
39 </dependencies>
No newline at end of file
40 </framework-data>
No newline at end of file
41 </AsfFrameworkConfig>
No newline at end of file
42 <avrtool>com.atmel.avrdbg.tool.simulator</avrtool>
No newline at end of file
43 <avrtoolserialnumber />
No newline at end of file
44 <avrdeviceexpectedsignature>0x1E9542</avrdeviceexpectedsignature>
No newline at end of file
45 <com_atmel_avrdbg_tool_simulator>
No newline at end of file
46 <ToolOptions xmlns="">
No newline at end of file
47 <InterfaceProperties>
No newline at end of file
48 </InterfaceProperties>
No newline at end of file
49 </ToolOptions>
No newline at end of file
50 <ToolType xmlns="">com.atmel.avrdbg.tool.simulator</ToolType>
No newline at end of file
51 <ToolNumber xmlns="">
No newline at end of file
52 </ToolNumber>
No newline at end of file
53 <ToolName xmlns="">Simulator</ToolName>
No newline at end of file
54 </com_atmel_avrdbg_tool_simulator>
No newline at end of file
55 <ExternalProgrammingToolCommandDisabledValue />
No newline at end of file
56 </PropertyGroup>
No newline at end of file
57 <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
No newline at end of file
58 <ToolchainSettings>
No newline at end of file
59 <AvrGcc>
No newline at end of file
60 <avrgcc.common.Device>-mmcu=atxmega32d4 -B "%24(PackRepoDir)\atmel\XMEGAD_DFP\1.0.29\gcc\dev\atxmega32d4"</avrgcc.common.Device>
No newline at end of file
61 <avrgcc.common.outputfiles.hex>True</avrgcc.common.outputfiles.hex>
No newline at end of file
62 <avrgcc.common.outputfiles.lss>True</avrgcc.common.outputfiles.lss>
No newline at end of file
63 <avrgcc.common.outputfiles.eep>True</avrgcc.common.outputfiles.eep>
No newline at end of file
64 <avrgcc.common.outputfiles.srec>True</avrgcc.common.outputfiles.srec>
No newline at end of file
65 <avrgcc.common.outputfiles.usersignatures>False</avrgcc.common.outputfiles.usersignatures>
No newline at end of file
66 <avrgcc.compiler.general.ChangeDefaultCharTypeUnsigned>True</avrgcc.compiler.general.ChangeDefaultCharTypeUnsigned>
No newline at end of file
67 <avrgcc.compiler.general.ChangeDefaultBitFieldUnsigned>True</avrgcc.compiler.general.ChangeDefaultBitFieldUnsigned>
No newline at end of file
68 <avrgcc.compiler.symbols.DefSymbols>
No newline at end of file
69 <ListValues>
No newline at end of file
70 <Value>NDEBUG</Value>
No newline at end of file
71 </ListValues>
No newline at end of file
72 </avrgcc.compiler.symbols.DefSymbols>
No newline at end of file
73 <avrgcc.compiler.directories.IncludePaths>
No newline at end of file
74 <ListValues>
No newline at end of file
75 <Value>%24(PackRepoDir)\atmel\XMEGAD_DFP\1.0.29\include</Value>
No newline at end of file
76 </ListValues>
No newline at end of file
77 </avrgcc.compiler.directories.IncludePaths>
No newline at end of file
78 <avrgcc.compiler.optimization.level>Optimize for size (-Os)</avrgcc.compiler.optimization.level>
No newline at end of file
79 <avrgcc.compiler.optimization.PackStructureMembers>True</avrgcc.compiler.optimization.PackStructureMembers>
No newline at end of file
80 <avrgcc.compiler.optimization.AllocateBytesNeededForEnum>True</avrgcc.compiler.optimization.AllocateBytesNeededForEnum>
No newline at end of file
81 <avrgcc.compiler.warnings.AllWarnings>True</avrgcc.compiler.warnings.AllWarnings>
No newline at end of file
82 <avrgcc.linker.libraries.Libraries>
No newline at end of file
83 <ListValues>
No newline at end of file
84 <Value>libm</Value>
No newline at end of file
85 </ListValues>
No newline at end of file
86 </avrgcc.linker.libraries.Libraries>
No newline at end of file
87 </AvrGcc>
No newline at end of file
88 </ToolchainSettings>
No newline at end of file
89 </PropertyGroup>
No newline at end of file
90 <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
No newline at end of file
91 <ToolchainSettings>
No newline at end of file
92 <AvrGcc>
No newline at end of file
93 <avrgcc.common.Device>-mmcu=atxmega32d4 -B "%24(PackRepoDir)\atmel\XMEGAD_DFP\1.0.29\gcc\dev\atxmega32d4"</avrgcc.common.Device>
No newline at end of file
94 <avrgcc.common.outputfiles.hex>True</avrgcc.common.outputfiles.hex>
No newline at end of file
95 <avrgcc.common.outputfiles.lss>True</avrgcc.common.outputfiles.lss>
No newline at end of file
96 <avrgcc.common.outputfiles.eep>True</avrgcc.common.outputfiles.eep>
No newline at end of file
97 <avrgcc.common.outputfiles.srec>True</avrgcc.common.outputfiles.srec>
No newline at end of file
98 <avrgcc.common.outputfiles.usersignatures>False</avrgcc.common.outputfiles.usersignatures>
No newline at end of file
99 <avrgcc.compiler.general.ChangeDefaultCharTypeUnsigned>True</avrgcc.compiler.general.ChangeDefaultCharTypeUnsigned>
No newline at end of file
100 <avrgcc.compiler.general.ChangeDefaultBitFieldUnsigned>True</avrgcc.compiler.general.ChangeDefaultBitFieldUnsigned>
No newline at end of file
101 <avrgcc.compiler.symbols.DefSymbols>
No newline at end of file
102 <ListValues>
No newline at end of file
103 <Value>DEBUG</Value>
No newline at end of file
104 </ListValues>
No newline at end of file
105 </avrgcc.compiler.symbols.DefSymbols>
No newline at end of file
106 <avrgcc.compiler.directories.IncludePaths>
No newline at end of file
107 <ListValues>
No newline at end of file
108 <Value>%24(PackRepoDir)\atmel\XMEGAD_DFP\1.0.29\include</Value>
No newline at end of file
109 </ListValues>
No newline at end of file
110 </avrgcc.compiler.directories.IncludePaths>
No newline at end of file
111 <avrgcc.compiler.optimization.level>Optimize (-O1)</avrgcc.compiler.optimization.level>
No newline at end of file
112 <avrgcc.compiler.optimization.PackStructureMembers>True</avrgcc.compiler.optimization.PackStructureMembers>
No newline at end of file
113 <avrgcc.compiler.optimization.AllocateBytesNeededForEnum>True</avrgcc.compiler.optimization.AllocateBytesNeededForEnum>
No newline at end of file
114 <avrgcc.compiler.optimization.DebugLevel>Default (-g2)</avrgcc.compiler.optimization.DebugLevel>
No newline at end of file
115 <avrgcc.compiler.warnings.AllWarnings>True</avrgcc.compiler.warnings.AllWarnings>
No newline at end of file
116 <avrgcc.linker.libraries.Libraries>
No newline at end of file
117 <ListValues>
No newline at end of file
118 <Value>libm</Value>
No newline at end of file
119 </ListValues>
No newline at end of file
120 </avrgcc.linker.libraries.Libraries>
No newline at end of file
121 <avrgcc.assembler.debugging.DebugLevel>Default (-Wa,-g)</avrgcc.assembler.debugging.DebugLevel>
No newline at end of file
122 </AvrGcc>
No newline at end of file
123 </ToolchainSettings>
No newline at end of file
124 </PropertyGroup>
No newline at end of file
125 <ItemGroup>
No newline at end of file
126 <Compile Include="ADC_7176_2.c">
No newline at end of file
127 <SubType>compile</SubType>
No newline at end of file
128 </Compile>
No newline at end of file
129 <Compile Include="ADC_7176_2.h">
No newline at end of file
130 <SubType>compile</SubType>
No newline at end of file
131 </Compile>
No newline at end of file
132 <Compile Include="commSPI_ADC.c">
No newline at end of file
133 <SubType>compile</SubType>
No newline at end of file
134 </Compile>
No newline at end of file
135 <Compile Include="commSPI_ADC.h">
No newline at end of file
136 <SubType>compile</SubType>
No newline at end of file
137 </Compile>
No newline at end of file
138 <Compile Include="fpga_port.c">
No newline at end of file
139 <SubType>compile</SubType>
No newline at end of file
140 </Compile>
No newline at end of file
141 <Compile Include="fpga_port.h">
No newline at end of file
142 <SubType>compile</SubType>
No newline at end of file
143 </Compile>
No newline at end of file
144 <Compile Include="main.c">
No newline at end of file
145 <SubType>compile</SubType>
No newline at end of file
146 </Compile>
No newline at end of file
147 <Compile Include="Ports.c">
No newline at end of file
148 <SubType>compile</SubType>
No newline at end of file
149 </Compile>
No newline at end of file
150 <Compile Include="Ports.h">
No newline at end of file
151 <SubType>compile</SubType>
No newline at end of file
152 </Compile>
No newline at end of file
153 <Compile Include="sys_clock.c">
No newline at end of file
154 <SubType>compile</SubType>
No newline at end of file
155 </Compile>
No newline at end of file
156 <Compile Include="sys_clock.h">
No newline at end of file
157 <SubType>compile</SubType>
No newline at end of file
158 </Compile>
No newline at end of file
159 </ItemGroup>
No newline at end of file
160 <Import Project="$(AVRSTUDIO_EXE_PATH)\\Vs\\Compiler.targets" />
No newline at end of file
161 </Project> No newline at end of file
@@ -0,0 +1,103
1 /*
No newline at end of file
2 * ADC_7176_2.c
No newline at end of file
3 *
No newline at end of file
4 * Created: 23/11/15 14:01:02
No newline at end of file
5 * Author: Francisco
No newline at end of file
6 */
No newline at end of file
7
No newline at end of file
8 /*!
No newline at end of file
9 * \fn test_adc
No newline at end of file
10 * \brief Lectura de ID del adc
No newline at end of file
11 *
No newline at end of file
12 * Lectura esperada: 0x0C94
No newline at end of file
13 *
No newline at end of file
14 * Esta funci�n tiene como fin probar la comunicaci�n on el ADC
No newline at end of file
15 *
No newline at end of file
16 #define ADC_WENbar_bm (1<<7)
No newline at end of file
17 #define ADC_RWbar_bm (1<<6)
No newline at end of file
18 #define ADC_ADDR_READ_ID 0x07
No newline at end of file
19 * \
No newline at end of file
20 */
No newline at end of file
21
No newline at end of file
22 #define F_CPU 32000000UL
No newline at end of file
23 #include <avr/io.h>
No newline at end of file
24 #include "ADC_7176_2.h"
No newline at end of file
25
No newline at end of file
26 inline uint16_t test_adc(void){
No newline at end of file
27 uint16_t aux;
No newline at end of file
28 PORTSPI.OUTCLR = SPI_SS_bm;
No newline at end of file
29 adcport_tranceiv((ADC_ADDR_READ_ID|ADC_RWbar_bm)&(~ADC_WENbar_bm));
No newline at end of file
30 aux = adcport_tranceiv(0);
No newline at end of file
31 aux = (aux << 8) | adcport_tranceiv(0);
No newline at end of file
32 PORTSPI.OUTSET = SPI_SS_bm;
No newline at end of file
33 return aux;
No newline at end of file
34 }
No newline at end of file
35
No newline at end of file
36 inline void test_adc_2(uint8_t* dato){
No newline at end of file
37 PORTSPI.OUTCLR = SPI_SS_bm;
No newline at end of file
38 adcport_read_data(dato,ADC_DATASZ);
No newline at end of file
39 PORTSPI.OUTSET = SPI_SS_bm;
No newline at end of file
40 }
No newline at end of file
41 /*!
No newline at end of file
42 * \fn adcport_tranceiv
No newline at end of file
43 * \brief Realiza la transmision y recepcion simultanea de datos entre el ADC y
No newline at end of file
44 * el microcontrolador.
No newline at end of file
45 * Incluso en para leer un dato del ADC se debe transmitir, ya que solo la
No newline at end of file
46 * transmision genera clock en el pin "sclk"
No newline at end of file
47 * \param El dato a transmitir
No newline at end of file
48 * \return El dato leido del ADC
No newline at end of file
49 */
No newline at end of file
50 inline uint8_t adcport_tranceiv(uint8_t data){
No newline at end of file
51 //
No newline at end of file
52 SPIC.DATA = data;
No newline at end of file
53
No newline at end of file
54 //Wait until transmission complete
No newline at end of file
55 while( !(SPIC.STATUS & SPI_IF_bm));
No newline at end of file
56
No newline at end of file
57 // Return received data
No newline at end of file
58
No newline at end of file
59 return SPIC.DATA;
No newline at end of file
60 }
No newline at end of file
61
No newline at end of file
62 /*!
No newline at end of file
63 * \fn adcport_readdata
No newline at end of file
64 * \brief Realiza la lectura de datos en modo de conversi�n continua
No newline at end of file
65 * el microcontrolador.
No newline at end of file
66 * Incluso en para leer un dato del ADC se debe transmitir, ya que solo la
No newline at end of file
67 * transmision genera clock en el pin "sclk"
No newline at end of file
68 * \param La direcci�n del puntero a dato
No newline at end of file
69 * \return Ninguno s�lo se llena el puntero al dato
No newline at end of file
70 */
No newline at end of file
71 inline void adcport_read_data(uint8_t* dato,int j)
No newline at end of file
72 {
No newline at end of file
73
No newline at end of file
74 //Env�o del comando de lectura de datos 0x44
No newline at end of file
75 adcport_tranceiv((ADC_RD | ADC_RWbar_bm)&(~ADC_WENbar_bm));
No newline at end of file
76
No newline at end of file
77 //x = (i2 >> 16) & (i1 >> 8) & (i0 >>0)
No newline at end of file
78
No newline at end of file
79 // Save received data
No newline at end of file
80 for(int i=0; i<j ; i++)
No newline at end of file
81 dato[j-i-1] = adcport_tranceiv(0);
No newline at end of file
82 }
No newline at end of file
83
No newline at end of file
84 void config_adc(void)
No newline at end of file
85 {
No newline at end of file
86 adcport_write_filtcon0();
No newline at end of file
87 //adcport_write_interfmode();
No newline at end of file
88
No newline at end of file
89 }
No newline at end of file
90
No newline at end of file
91 void adcport_write_filtcon0(void)
No newline at end of file
92 {
No newline at end of file
93 adcport_tranceiv((ADC_FILTCON0) & (~ADC_WENbar_bm | ~ADC_RWbar_bm));
No newline at end of file
94 adcport_tranceiv(0);
No newline at end of file
95 adcport_tranceiv((0b00<<ADC_FILT0_ORDER0_bp)|(0b01010<<ADC_FILT0_ODR0_bp));
No newline at end of file
96 }
No newline at end of file
97
No newline at end of file
98 void adcport_write_interfmode(void)
No newline at end of file
99 {
No newline at end of file
100 adcport_tranceiv((ADC_INTERFMODE) & (~ADC_WENbar_bm | ~ADC_RWbar_bm));
No newline at end of file
101 adcport_tranceiv(0);
No newline at end of file
102 adcport_tranceiv((1<<ADC_CONTREAD_bp)|(1<<ADC_WL16_bp));
No newline at end of file
103 } No newline at end of file
@@ -0,0 +1,45
1 /*
No newline at end of file
2 * ADC_7176_2.h
No newline at end of file
3 *
No newline at end of file
4 * Created: 23/11/15 13:59:46
No newline at end of file
5 * Author: Francisco
No newline at end of file
6 */
No newline at end of file
7
No newline at end of file
8
No newline at end of file
9 #ifndef ADC_7176_2_H_
No newline at end of file
10 #define ADC_7176_2_H_
No newline at end of file
11
No newline at end of file
12 #define F_CPU 32000000UL
No newline at end of file
13 #include <avr/io.h>
No newline at end of file
14 #include "Ports.h"
No newline at end of file
15 #include "commSPI_ADC.h"
No newline at end of file
16
No newline at end of file
17 //ID esperada
No newline at end of file
18 //tama�o 16 bits
No newline at end of file
19 //Valor 0x0C94
No newline at end of file
20 #define ADC_ID 0x0C94
No newline at end of file
21 #define ADC_RD 0x04
No newline at end of file
22 #define ADC_FILTCON0 0x28
No newline at end of file
23 #define ADC_INTERFMODE 0x02
No newline at end of file
24 #define ADC_DATASZ 3
No newline at end of file
25
No newline at end of file
26 //Definici�n de orden de los bits de habilitaci�n, escritura lectura y direcci�n
No newline at end of file
27 #define ADC_WENbar_bm (1<<7)
No newline at end of file
28 #define ADC_RWbar_bm (1<<6)
No newline at end of file
29 #define ADC_ADDR_READ_ID (0x07)
No newline at end of file
30 #define ADC_FILT0_ORDER0_bp 5
No newline at end of file
31 #define ADC_FILT0_ODR0_bp 0
No newline at end of file
32 #define ADC_CONTREAD_bp 7
No newline at end of file
33 #define ADC_WL16_bp 0
No newline at end of file
34
No newline at end of file
35 uint8_t adcport_tranceiv(uint8_t data);
No newline at end of file
36 void adcport_read_data(uint8_t* dato,int j);
No newline at end of file
37
No newline at end of file
38 void adcport_write_filtcon0(void);
No newline at end of file
39 void adcport_write_interfmode(void);
No newline at end of file
40
No newline at end of file
41 uint16_t test_adc(void);
No newline at end of file
42 void test_adc_2(uint8_t* dato);
No newline at end of file
43 void config_adc(void);
No newline at end of file
44
No newline at end of file
45 #endif /* ADC_7176_2_H_ */ No newline at end of file
@@ -0,0 +1,1
1 :00000001FF No newline at end of file
1 NO CONTENT: new file 10644
@@ -0,0 +1,87
1 :100000000C94B6000C94C0000C94F1010C94C00048
No newline at end of file
2 :100010000C94C0000C94C0000C94C0000C94C00060
No newline at end of file
3 :100020000C94C0000C94C0000C94C0000C94C00050
No newline at end of file
4 :100030000C94C0000C94C0000C94C0000C94C00040
No newline at end of file
5 :100040000C94C0000C94C0000C94C0000C94C00030
No newline at end of file
6 :100050000C94C0000C94C0000C94C0000C94C00020
No newline at end of file
7 :100060000C94C0000C94C0000C94C0000C94C00010
No newline at end of file
8 :100070000C94C0000C94C0000C94C0000C94C00000
No newline at end of file
9 :100080000C94C0000C94C0000C94C0000C94D201DD
No newline at end of file
10 :100090000C94C0000C94C0000C94C0000C94C000E0
No newline at end of file
11 :1000A0000C94C0000C94C0000C94C0000C94C000D0
No newline at end of file
12 :1000B0000C94C0000C94C0000C94C0000C94C000C0
No newline at end of file
13 :1000C0000C94C0000C94C0000C94C0000C94C000B0
No newline at end of file
14 :1000D0000C94C0000C94C0000C94C0000C94C000A0
No newline at end of file
15 :1000E0000C94C0000C94C0000C94C0000C94C00090
No newline at end of file
16 :1000F0000C94C0000C94C0000C94C0000C94C00080
No newline at end of file
17 :100100000C94AD010C94C0000C94C0000C94C00081
No newline at end of file
18 :100110000C94C0000C94C0000C94C0000C94C0005F
No newline at end of file
19 :100120000C94C0000C94C0000C94C0000C94C0004F
No newline at end of file
20 :100130000C94C0000C94C0000C94C0000C94C0003F
No newline at end of file
21 :100140000C94C0000C94C0000C94C0000C94C0002F
No newline at end of file
22 :100150000C94C0000C94C0000C94C0000C94C0001F
No newline at end of file
23 :100160000C94C0000C94C0000C94C00011241FBE5D
No newline at end of file
24 :10017000CFEFCDBFDFE2DEBF0E9495010C94AD0250
No newline at end of file
25 :100180000C94000080E18093460687E48093C308C6
No newline at end of file
26 :10019000E0ECF8E082818823ECF7E0ECF8E0838182
No newline at end of file
27 :1001A000138282818823ECF7E0ECF8E0238130E0D1
No newline at end of file
28 :1001B000322F2227138292819923ECF78091C30872
No newline at end of file
29 :1001C00090E190934506A901482BCA0108959C012E
No newline at end of file
30 :1001D00084E48093C308E0ECF8E092819923ECF783
No newline at end of file
31 :1001E0008091C3081616170674F4D901A60FB71F1D
No newline at end of file
32 :1001F000E0ECF8E0138292819923ECF793819E93CF
No newline at end of file
33 :10020000A217B307B9F708958CED8093C00808953D
No newline at end of file
34 :10021000CF93DF93E0E6F6E022E0228380E1818B5A
No newline at end of file
35 :1002200094E0918338E1328B958338E73183138AE8
No newline at end of file
36 :100230003583A0E2B6E012969C93129752968C9367
No newline at end of file
37 :100240005297C0E0D6E081E089838E838185836008
No newline at end of file
38 :10025000818722878189887F818B8185837F8860E0
No newline at end of file
39 :1002600019968C9319971B969C931B9752968C9179
No newline at end of file
40 :100270005297887F816052968C93DF91CF91089539
No newline at end of file
41 :1002800078940895E0E6F6E024E026839481382F00
No newline at end of file
42 :10029000307F330F330F330F9873932B9483258361
No newline at end of file
43 :1002A000268394818F70880F880F880F9873892B0D
No newline at end of file
44 :1002B0008483258308950F931F93CF93DF93EC01DD
No newline at end of file
45 :1002C0008C010D5F1F4F89910E944201C017D10719
No newline at end of file
46 :1002D000D1F7DF91CF911F910F910895CF93DF93C5
No newline at end of file
47 :1002E000CDB7DEB72697CDBFDEBF63E070E0CE01AD
No newline at end of file
48 :1002F00001960E94E70089818C838A818D838B819E
No newline at end of file
49 :100300008E8363E070E0CE0101960E94E700CE018B
No newline at end of file
50 :1003100004960E945B01CE0101960E945B01269625
No newline at end of file
51 :10032000CDBFDEBFDF91CF9108950E9415020E94DC
No newline at end of file
52 :100330008B020E9404010E94080184E08093A200C5
No newline at end of file
53 :100340000E94400100E616E0C0E60E94C200843927
No newline at end of file
54 :100350009C40D9F7F801C583F8CF1F920F920FB6D2
No newline at end of file
55 :100360000F9211248F93EF93FF938091680681FF82
No newline at end of file
56 :1003700009C0E0EAF0E082818260828381E08093BC
No newline at end of file
57 :10038000050608C0E0EAF0E082818D7F828381E08B
No newline at end of file
58 :1003900080930606FF91EF918F910F900FBE0F9003
No newline at end of file
59 :1003A0001F9018951F920F920FB60F9211248F93E2
No newline at end of file
60 :1003B000EF93FF938091280682FF06C0E0EAF0E009
No newline at end of file
61 :1003C00082818160828305C0E0EAF0E082818E7FD5
No newline at end of file
62 :1003D0008283FF91EF918F910F900FBE0F901F902E
No newline at end of file
63 :1003E00018951F920F920FB60F9211242F933F93DF
No newline at end of file
64 :1003F0004F935F936F937F938F939F93AF93BF932D
No newline at end of file
65 :10040000EF93FF930E946E01FF91EF91BF91AF9127
No newline at end of file
66 :100410009F918F917F916F915F914F913F912F911C
No newline at end of file
67 :100420000F900FBE0F901F901895E0E0F6E08EEF52
No newline at end of file
68 :10043000828388E1878B868B858B848B838B828BF1
No newline at end of file
69 :10044000818B21E0218398E3908B2683E0E2F6E024
No newline at end of file
70 :100450003FE03283838B828B818B808BE0E4F6E0FC
No newline at end of file
71 :100460002FE42283868B838B828B818B808B20EB86
No newline at end of file
72 :100470002183158A178A148A20E9258320E226839E
No newline at end of file
73 :10048000A0E6B6E027E812962C93129757968C9325
No newline at end of file
74 :10049000579750968C93509720E152962C935297F1
No newline at end of file
75 :1004A00051962C93519748E711964C931197569675
No newline at end of file
76 :1004B0009C93569755969C93559754969C93549716
No newline at end of file
77 :1004C00053969C93539716964C93A0E8B6E01296D9
No newline at end of file
78 :1004D0003C93129753968C93539752968C935297C2
No newline at end of file
79 :1004E00051968C93519750968C93A0EEB7E093E081
No newline at end of file
80 :1004F00012969C93129751962C93519750968C93E9
No newline at end of file
81 :1005000080E4828781858C7F816081878689887F6E
No newline at end of file
82 :100510008260868B0895E0E5F0E0808186608083CC
No newline at end of file
83 :10052000818181FFFDCFE0E5F0E0818182FFFDCF99
No newline at end of file
84 :1005300028ED24BFE0E4F0E080818160808391E0D9
No newline at end of file
85 :1005400090936000E0E5F0E08681168280818E7FE6
No newline at end of file
86 :0E055000808324BF909353000895F894FFCF4A
No newline at end of file
87 :00000001FF No newline at end of file
This diff has been collapsed as it changes many lines, (1012 lines changed) Show them Hide them
@@ -0,0 +1,1012
1
No newline at end of file
2 ADCSPI_ver01.elf: file format elf32-avr
No newline at end of file
3
No newline at end of file
4 Sections:
No newline at end of file
5 Idx Name Size VMA LMA File off Algn
No newline at end of file
6 0 .text 0000055e 00000000 00000000 00000054 2**1
No newline at end of file
7 CONTENTS, ALLOC, LOAD, READONLY, CODE
No newline at end of file
8 1 .data 00000000 00802000 00802000 000005b2 2**0
No newline at end of file
9 CONTENTS, ALLOC, LOAD, DATA
No newline at end of file
10 2 .comment 00000030 00000000 00000000 000005b2 2**0
No newline at end of file
11 CONTENTS, READONLY
No newline at end of file
12 3 .note.gnu.avr.deviceinfo 00000040 00000000 00000000 000005e4 2**2
No newline at end of file
13 CONTENTS, READONLY
No newline at end of file
14 4 .debug_aranges 00000138 00000000 00000000 00000624 2**0
No newline at end of file
15 CONTENTS, READONLY, DEBUGGING
No newline at end of file
16 5 .debug_info 000014b5 00000000 00000000 0000075c 2**0
No newline at end of file
17 CONTENTS, READONLY, DEBUGGING
No newline at end of file
18 6 .debug_abbrev 00000644 00000000 00000000 00001c11 2**0
No newline at end of file
19 CONTENTS, READONLY, DEBUGGING
No newline at end of file
20 7 .debug_line 00000827 00000000 00000000 00002255 2**0
No newline at end of file
21 CONTENTS, READONLY, DEBUGGING
No newline at end of file
22 8 .debug_frame 00000278 00000000 00000000 00002a7c 2**2
No newline at end of file
23 CONTENTS, READONLY, DEBUGGING
No newline at end of file
24 9 .debug_str 000007d6 00000000 00000000 00002cf4 2**0
No newline at end of file
25 CONTENTS, READONLY, DEBUGGING
No newline at end of file
26 10 .debug_loc 000003d0 00000000 00000000 000034ca 2**0
No newline at end of file
27 CONTENTS, READONLY, DEBUGGING
No newline at end of file
28 11 .debug_ranges 000000d8 00000000 00000000 0000389a 2**0
No newline at end of file
29 CONTENTS, READONLY, DEBUGGING
No newline at end of file
30
No newline at end of file
31 Disassembly of section .text:
No newline at end of file
32
No newline at end of file
33 00000000 <__vectors>:
No newline at end of file
34 0: 0c 94 b6 00 jmp 0x16c ; 0x16c <__ctors_end>
No newline at end of file
35 4: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
36 8: 0c 94 f1 01 jmp 0x3e2 ; 0x3e2 <__vector_2>
No newline at end of file
37 c: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
38 10: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
39 14: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
40 18: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
41 1c: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
42 20: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
43 24: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
44 28: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
45 2c: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
46 30: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
47 34: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
48 38: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
49 3c: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
50 40: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
51 44: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
52 48: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
53 4c: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
54 50: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
55 54: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
56 58: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
57 5c: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
58 60: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
59 64: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
60 68: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
61 6c: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
62 70: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
63 74: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
64 78: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
65 7c: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
66 80: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
67 84: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
68 88: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
69 8c: 0c 94 d2 01 jmp 0x3a4 ; 0x3a4 <__vector_35>
No newline at end of file
70 90: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
71 94: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
72 98: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
73 9c: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
74 a0: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
75 a4: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
76 a8: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
77 ac: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
78 b0: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
79 b4: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
80 b8: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
81 bc: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
82 c0: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
83 c4: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
84 c8: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
85 cc: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
86 d0: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
87 d4: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
88 d8: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
89 dc: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
90 e0: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
91 e4: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
92 e8: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
93 ec: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
94 f0: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
95 f4: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
96 f8: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
97 fc: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
98 100: 0c 94 ad 01 jmp 0x35a ; 0x35a <__vector_64>
No newline at end of file
99 104: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
100 108: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
101 10c: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
102 110: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
103 114: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
104 118: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
105 11c: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
106 120: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
107 124: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
108 128: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
109 12c: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
110 130: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
111 134: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
112 138: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
113 13c: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
114 140: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
115 144: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
116 148: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
117 14c: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
118 150: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
119 154: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
120 158: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
121 15c: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
122 160: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
123 164: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
124 168: 0c 94 c0 00 jmp 0x180 ; 0x180 <__bad_interrupt>
No newline at end of file
125
No newline at end of file
126 0000016c <__ctors_end>:
No newline at end of file
127 16c: 11 24 eor r1, r1
No newline at end of file
128 16e: 1f be out 0x3f, r1 ; 63
No newline at end of file
129 170: cf ef ldi r28, 0xFF ; 255
No newline at end of file
130 172: cd bf out 0x3d, r28 ; 61
No newline at end of file
131 174: df e2 ldi r29, 0x2F ; 47
No newline at end of file
132 176: de bf out 0x3e, r29 ; 62
No newline at end of file
133 178: 0e 94 95 01 call 0x32a ; 0x32a <main>
No newline at end of file
134 17c: 0c 94 ad 02 jmp 0x55a ; 0x55a <_exit>
No newline at end of file
135
No newline at end of file
136 00000180 <__bad_interrupt>:
No newline at end of file
137 180: 0c 94 00 00 jmp 0 ; 0x0 <__vectors>
No newline at end of file
138
No newline at end of file
139 00000184 <test_adc>:
No newline at end of file
140 #include <avr/io.h>
No newline at end of file
141 #include "ADC_7176_2.h"
No newline at end of file
142
No newline at end of file
143 inline uint16_t test_adc(void){
No newline at end of file
144 uint16_t aux;
No newline at end of file
145 PORTSPI.OUTCLR = SPI_SS_bm;
No newline at end of file
146 184: 80 e1 ldi r24, 0x10 ; 16
No newline at end of file
147 186: 80 93 46 06 sts 0x0646, r24
No newline at end of file
148 * \param El dato a transmitir
No newline at end of file
149 * \return El dato leido del ADC
No newline at end of file
150 */
No newline at end of file
151 inline uint8_t adcport_tranceiv(uint8_t data){
No newline at end of file
152 //
No newline at end of file
153 SPIC.DATA = data;
No newline at end of file
154 18a: 87 e4 ldi r24, 0x47 ; 71
No newline at end of file
155 18c: 80 93 c3 08 sts 0x08C3, r24
No newline at end of file
156
No newline at end of file
157 //Wait until transmission complete
No newline at end of file
158 while( !(SPIC.STATUS & SPI_IF_bm));
No newline at end of file
159 190: e0 ec ldi r30, 0xC0 ; 192
No newline at end of file
160 192: f8 e0 ldi r31, 0x08 ; 8
No newline at end of file
161 194: 82 81 ldd r24, Z+2 ; 0x02
No newline at end of file
162 196: 88 23 and r24, r24
No newline at end of file
163 198: ec f7 brge .-6 ; 0x194 <test_adc+0x10>
No newline at end of file
164
No newline at end of file
165 // Return received data
No newline at end of file
166
No newline at end of file
167 return SPIC.DATA;
No newline at end of file
168 19a: e0 ec ldi r30, 0xC0 ; 192
No newline at end of file
169 19c: f8 e0 ldi r31, 0x08 ; 8
No newline at end of file
170 19e: 83 81 ldd r24, Z+3 ; 0x03
No newline at end of file
171 * \param El dato a transmitir
No newline at end of file
172 * \return El dato leido del ADC
No newline at end of file
173 */
No newline at end of file
174 inline uint8_t adcport_tranceiv(uint8_t data){
No newline at end of file
175 //
No newline at end of file
176 SPIC.DATA = data;
No newline at end of file
177 1a0: 13 82 std Z+3, r1 ; 0x03
No newline at end of file
178
No newline at end of file
179 //Wait until transmission complete
No newline at end of file
180 while( !(SPIC.STATUS & SPI_IF_bm));
No newline at end of file
181 1a2: 82 81 ldd r24, Z+2 ; 0x02
No newline at end of file
182 1a4: 88 23 and r24, r24
No newline at end of file
183 1a6: ec f7 brge .-6 ; 0x1a2 <test_adc+0x1e>
No newline at end of file
184
No newline at end of file
185 // Return received data
No newline at end of file
186
No newline at end of file
187 return SPIC.DATA;
No newline at end of file
188 1a8: e0 ec ldi r30, 0xC0 ; 192
No newline at end of file
189 1aa: f8 e0 ldi r31, 0x08 ; 8
No newline at end of file
190 1ac: 23 81 ldd r18, Z+3 ; 0x03
No newline at end of file
191
No newline at end of file
192 inline uint16_t test_adc(void){
No newline at end of file
193 uint16_t aux;
No newline at end of file
194 PORTSPI.OUTCLR = SPI_SS_bm;
No newline at end of file
195 adcport_tranceiv((ADC_ADDR_READ_ID|ADC_RWbar_bm)&(~ADC_WENbar_bm));
No newline at end of file
196 aux = adcport_tranceiv(0);
No newline at end of file
197 1ae: 30 e0 ldi r19, 0x00 ; 0
No newline at end of file
198 aux = (aux << 8) | adcport_tranceiv(0);
No newline at end of file
199 1b0: 32 2f mov r19, r18
No newline at end of file
200 1b2: 22 27 eor r18, r18
No newline at end of file
201 * \param El dato a transmitir
No newline at end of file
202 * \return El dato leido del ADC
No newline at end of file
203 */
No newline at end of file
204 inline uint8_t adcport_tranceiv(uint8_t data){
No newline at end of file
205 //
No newline at end of file
206 SPIC.DATA = data;
No newline at end of file
207 1b4: 13 82 std Z+3, r1 ; 0x03
No newline at end of file
208
No newline at end of file
209 //Wait until transmission complete
No newline at end of file
210 while( !(SPIC.STATUS & SPI_IF_bm));
No newline at end of file
211 1b6: 92 81 ldd r25, Z+2 ; 0x02
No newline at end of file
212 1b8: 99 23 and r25, r25
No newline at end of file
213 1ba: ec f7 brge .-6 ; 0x1b6 <test_adc+0x32>
No newline at end of file
214
No newline at end of file
215 // Return received data
No newline at end of file
216
No newline at end of file
217 return SPIC.DATA;
No newline at end of file
218 1bc: 80 91 c3 08 lds r24, 0x08C3
No newline at end of file
219 uint16_t aux;
No newline at end of file
220 PORTSPI.OUTCLR = SPI_SS_bm;
No newline at end of file
221 adcport_tranceiv((ADC_ADDR_READ_ID|ADC_RWbar_bm)&(~ADC_WENbar_bm));
No newline at end of file
222 aux = adcport_tranceiv(0);
No newline at end of file
223 aux = (aux << 8) | adcport_tranceiv(0);
No newline at end of file
224 PORTSPI.OUTSET = SPI_SS_bm;
No newline at end of file
225 1c0: 90 e1 ldi r25, 0x10 ; 16
No newline at end of file
226 1c2: 90 93 45 06 sts 0x0645, r25
No newline at end of file
227 return aux;
No newline at end of file
228 }
No newline at end of file
229 1c6: a9 01 movw r20, r18
No newline at end of file
230 1c8: 48 2b or r20, r24
No newline at end of file
231 1ca: ca 01 movw r24, r20
No newline at end of file
232 1cc: 08 95 ret
No newline at end of file
233
No newline at end of file
234 000001ce <adcport_read_data>:
No newline at end of file
235 * transmision genera clock en el pin "sclk"
No newline at end of file
236 * \param La direcci�n del puntero a dato
No newline at end of file
237 * \return Ninguno s�lo se llena el puntero al dato
No newline at end of file
238 */
No newline at end of file
239 inline void adcport_read_data(uint8_t* dato,int j)
No newline at end of file
240 {
No newline at end of file
241 1ce: 9c 01 movw r18, r24
No newline at end of file
242 * \param El dato a transmitir
No newline at end of file
243 * \return El dato leido del ADC
No newline at end of file
244 */
No newline at end of file
245 inline uint8_t adcport_tranceiv(uint8_t data){
No newline at end of file
246 //
No newline at end of file
247 SPIC.DATA = data;
No newline at end of file
248 1d0: 84 e4 ldi r24, 0x44 ; 68
No newline at end of file
249 1d2: 80 93 c3 08 sts 0x08C3, r24
No newline at end of file
250
No newline at end of file
251 //Wait until transmission complete
No newline at end of file
252 while( !(SPIC.STATUS & SPI_IF_bm));
No newline at end of file
253 1d6: e0 ec ldi r30, 0xC0 ; 192
No newline at end of file
254 1d8: f8 e0 ldi r31, 0x08 ; 8
No newline at end of file
255 1da: 92 81 ldd r25, Z+2 ; 0x02
No newline at end of file
256 1dc: 99 23 and r25, r25
No newline at end of file
257 1de: ec f7 brge .-6 ; 0x1da <adcport_read_data+0xc>
No newline at end of file
258
No newline at end of file
259 // Return received data
No newline at end of file
260
No newline at end of file
261 return SPIC.DATA;
No newline at end of file
262 1e0: 80 91 c3 08 lds r24, 0x08C3
No newline at end of file
263 adcport_tranceiv((ADC_RD | ADC_RWbar_bm)&(~ADC_WENbar_bm));
No newline at end of file
264
No newline at end of file
265 //x = (i2 >> 16) & (i1 >> 8) & (i0 >>0)
No newline at end of file
266
No newline at end of file
267 // Save received data
No newline at end of file
268 for(int i=0; i<j ; i++)
No newline at end of file
269 1e4: 16 16 cp r1, r22
No newline at end of file
270 1e6: 17 06 cpc r1, r23
No newline at end of file
271 1e8: 74 f4 brge .+28 ; 0x206 <adcport_read_data+0x38>
No newline at end of file
272 1ea: d9 01 movw r26, r18
No newline at end of file
273 1ec: a6 0f add r26, r22
No newline at end of file
274 1ee: b7 1f adc r27, r23
No newline at end of file
275 * \param El dato a transmitir
No newline at end of file
276 * \return El dato leido del ADC
No newline at end of file
277 */
No newline at end of file
278 inline uint8_t adcport_tranceiv(uint8_t data){
No newline at end of file
279 //
No newline at end of file
280 SPIC.DATA = data;
No newline at end of file
281 1f0: e0 ec ldi r30, 0xC0 ; 192
No newline at end of file
282 1f2: f8 e0 ldi r31, 0x08 ; 8
No newline at end of file
283 1f4: 13 82 std Z+3, r1 ; 0x03
No newline at end of file
284
No newline at end of file
285 //Wait until transmission complete
No newline at end of file
286 while( !(SPIC.STATUS & SPI_IF_bm));
No newline at end of file
287 1f6: 92 81 ldd r25, Z+2 ; 0x02
No newline at end of file
288 1f8: 99 23 and r25, r25
No newline at end of file
289 1fa: ec f7 brge .-6 ; 0x1f6 <adcport_read_data+0x28>
No newline at end of file
290
No newline at end of file
291 // Return received data
No newline at end of file
292
No newline at end of file
293 return SPIC.DATA;
No newline at end of file
294 1fc: 93 81 ldd r25, Z+3 ; 0x03
No newline at end of file
295
No newline at end of file
296 //x = (i2 >> 16) & (i1 >> 8) & (i0 >>0)
No newline at end of file
297
No newline at end of file
298 // Save received data
No newline at end of file
299 for(int i=0; i<j ; i++)
No newline at end of file
300 dato[j-i-1] = adcport_tranceiv(0);
No newline at end of file
301 1fe: 9e 93 st -X, r25
No newline at end of file
302 adcport_tranceiv((ADC_RD | ADC_RWbar_bm)&(~ADC_WENbar_bm));
No newline at end of file
303
No newline at end of file
304 //x = (i2 >> 16) & (i1 >> 8) & (i0 >>0)
No newline at end of file
305
No newline at end of file
306 // Save received data
No newline at end of file
307 for(int i=0; i<j ; i++)
No newline at end of file
308 200: a2 17 cp r26, r18
No newline at end of file
309 202: b3 07 cpc r27, r19
No newline at end of file
310 204: b9 f7 brne .-18 ; 0x1f4 <adcport_read_data+0x26>
No newline at end of file
311 206: 08 95 ret
No newline at end of file
312
No newline at end of file
313 00000208 <config_spiparm>:
No newline at end of file
314 inline void config_spiparm(void){
No newline at end of file
315 // Preescaler: clkper/2 = f_cpu/2.
No newline at end of file
316 // Master
No newline at end of file
317 // Mode 3: CPOL=1,CPHA=1
No newline at end of file
318 // MSB --- LSB
No newline at end of file
319 SPIC.CTRL = (SPI_CLK2X_bm | SPI_ENABLE_bm | SPI_MASTER_bm |
No newline at end of file
320 208: 8c ed ldi r24, 0xDC ; 220
No newline at end of file
321 20a: 80 93 c0 08 sts 0x08C0, r24
No newline at end of file
322 20e: 08 95 ret
No newline at end of file
323
No newline at end of file
324 00000210 <config_fpgaport>:
No newline at end of file
325 #include <avr/io.h>
No newline at end of file
326
No newline at end of file
327 #include "fpga_port.h"
No newline at end of file
328
No newline at end of file
329 inline void config_fpgaport()
No newline at end of file
330 {
No newline at end of file
331 210: cf 93 push r28
No newline at end of file
332 212: df 93 push r29
No newline at end of file
333 //Configuracion pines del puerto D: PD6-PA1
No newline at end of file
334 //Pines de entrada CLK_FPGA, LOCK_FPGA
No newline at end of file
335 //Pines de salida CH_BIT0_FPGA, CH_BIT1_FPGA,CH_BIT2_FPGA, CH_BIT3_FPGA
No newline at end of file
336 PORT_FPGA.DIRCLR = LOCK_FPGA;
No newline at end of file
337 214: e0 e6 ldi r30, 0x60 ; 96
No newline at end of file
338 216: f6 e0 ldi r31, 0x06 ; 6
No newline at end of file
339 218: 22 e0 ldi r18, 0x02 ; 2
No newline at end of file
340 21a: 22 83 std Z+2, r18 ; 0x02
No newline at end of file
341 PORT_FPGA.LOCK_FPGA_CTRL = PORT_OPC_PULLDOWN_gc;
No newline at end of file
342 21c: 80 e1 ldi r24, 0x10 ; 16
No newline at end of file
343 21e: 81 8b std Z+17, r24 ; 0x11
No newline at end of file
344 PORT_FPGA.DIRSET = CLK_FPGA;
No newline at end of file
345 220: 94 e0 ldi r25, 0x04 ; 4
No newline at end of file
346 222: 91 83 std Z+1, r25 ; 0x01
No newline at end of file
347 PORT_FPGA.CLK_FPGA_CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
348 224: 38 e1 ldi r19, 0x18 ; 24
No newline at end of file
349 226: 32 8b std Z+18, r19 ; 0x12
No newline at end of file
350 PORT_FPGA.OUTSET = CLK_FPGA;
No newline at end of file
351 228: 95 83 std Z+5, r25 ; 0x05
No newline at end of file
352
No newline at end of file
353 //Pin de salida CH_BIT0_FPGA, CH_BIT1_FPGA,CH_BIT2_FPGA, CH_BIT3_FPGA
No newline at end of file
354 PORT_FPGA.DIRSET = CH_BIT3_FPGA | CH_BIT2_FPGA | CH_BIT1_FPGA | CH_BIT0_FPGA;
No newline at end of file
355 22a: 38 e7 ldi r19, 0x78 ; 120
No newline at end of file
356 22c: 31 83 std Z+1, r19 ; 0x01
No newline at end of file
357 PORT_FPGA.CH_BIT0_FPGA_CTRL = PORT_OPC_TOTEM_gc; //PORT_OPC_WIREDANDPULL_gc;
No newline at end of file
358 22e: 13 8a std Z+19, r1 ; 0x13
No newline at end of file
359 PORT_FPGA.OUTSET = CH_BIT3_FPGA | CH_BIT2_FPGA | CH_BIT1_FPGA | CH_BIT0_FPGA;
No newline at end of file
360 230: 35 83 std Z+5, r19 ; 0x05
No newline at end of file
361
No newline at end of file
362 //Configuracion pines del puerto B: PPS
No newline at end of file
363 //Pines de entrada PPS_FPGA
No newline at end of file
364 //Pines de entrada en pulldown
No newline at end of file
365 PORT_PPS.DIRCLR = PPS_FPGA;
No newline at end of file
366 232: a0 e2 ldi r26, 0x20 ; 32
No newline at end of file
367 234: b6 e0 ldi r27, 0x06 ; 6
No newline at end of file
368 236: 12 96 adiw r26, 0x02 ; 2
No newline at end of file
369 238: 9c 93 st X, r25
No newline at end of file
370 23a: 12 97 sbiw r26, 0x02 ; 2
No newline at end of file
371 PORT_PPS.PPS_FPGA_CTRL = PORT_OPC_PULLDOWN_gc;
No newline at end of file
372 23c: 52 96 adiw r26, 0x12 ; 18
No newline at end of file
373 23e: 8c 93 st X, r24
No newline at end of file
374 240: 52 97 sbiw r26, 0x12 ; 18
No newline at end of file
375
No newline at end of file
376 //Configuracion pines del puerto A: LOCKOUT
No newline at end of file
377 //Pines de salida LOCK_OUT
No newline at end of file
378 //Pines de salida en baja
No newline at end of file
379 PORT_LOCKOUT.DIRSET = LOCK_OUT;
No newline at end of file
380 242: c0 e0 ldi r28, 0x00 ; 0
No newline at end of file
381 244: d6 e0 ldi r29, 0x06 ; 6
No newline at end of file
382 246: 81 e0 ldi r24, 0x01 ; 1
No newline at end of file
383 248: 89 83 std Y+1, r24 ; 0x01
No newline at end of file
384 PORT_LOCKOUT.OUTCLR = LOCK_OUT;
No newline at end of file
385 24a: 8e 83 std Y+6, r24 ; 0x06
No newline at end of file
386
No newline at end of file
387
No newline at end of file
388
No newline at end of file
389 //Configuracion de interrupciones de LOCK_FPGA
No newline at end of file
390
No newline at end of file
391 PORT_FPGA.INTCTRL = ( PORT_FPGA.INTCTRL & ~PORT_INT0LVL_gm ) | PORT_INT0LVL_HI_gc;
No newline at end of file
392 24c: 81 85 ldd r24, Z+9 ; 0x09
No newline at end of file
393 24e: 83 60 ori r24, 0x03 ; 3
No newline at end of file
394 250: 81 87 std Z+9, r24 ; 0x09
No newline at end of file
395 PORT_FPGA.INT0MASK = LOCK_FPGA;
No newline at end of file
396 252: 22 87 std Z+10, r18 ; 0x0a
No newline at end of file
397 PORT_FPGA.LOCK_FPGA_CTRL = ( PORT_FPGA.LOCK_FPGA_CTRL & ~PORT_ISC_gm ) | PORT_ISC_BOTHEDGES_gc;
No newline at end of file
398 254: 81 89 ldd r24, Z+17 ; 0x11
No newline at end of file
399 256: 88 7f andi r24, 0xF8 ; 248
No newline at end of file
400 258: 81 8b std Z+17, r24 ; 0x11
No newline at end of file
401 //PORT_FPGA.INTCTRL = ( PORT_FPGA.INTCTRL & ~PORT_INT1LVL_gm ) | PORT_INT1LVL_MED_gc;
No newline at end of file
402 //PORT_FPGA.INT1MASK = CLK_FPGA;
No newline at end of file
403 //PORT_FPGA.CLK_FPGA_CTRL = ( PORT_FPGA.CLK_FPGA_CTRL & ~PORT_ISC_gm ) | PORT_ISC_FALLING_gc;
No newline at end of file
404
No newline at end of file
405 //Configuracion de interrupciones de PPS
No newline at end of file
406 PORT_PPS.INTCTRL = ( PORT_FPGA.INTCTRL & ~PORT_INT1LVL_gm ) | PORT_INT1LVL_MED_gc;
No newline at end of file
407 25a: 81 85 ldd r24, Z+9 ; 0x09
No newline at end of file
408 25c: 83 7f andi r24, 0xF3 ; 243
No newline at end of file
409 25e: 88 60 ori r24, 0x08 ; 8
No newline at end of file
410 260: 19 96 adiw r26, 0x09 ; 9
No newline at end of file
411 262: 8c 93 st X, r24
No newline at end of file
412 264: 19 97 sbiw r26, 0x09 ; 9
No newline at end of file
413 PORT_PPS.INT1MASK = PPS_FPGA;
No newline at end of file
414 266: 1b 96 adiw r26, 0x0b ; 11
No newline at end of file
415 268: 9c 93 st X, r25
No newline at end of file
416 26a: 1b 97 sbiw r26, 0x0b ; 11
No newline at end of file
417 PORT_PPS.PPS_FPGA_CTRL = ( PORT_PPS.PPS_FPGA_CTRL & ~PORT_ISC_gm ) | PORT_ISC_RISING_gc;
No newline at end of file
418 26c: 52 96 adiw r26, 0x12 ; 18
No newline at end of file
419 26e: 8c 91 ld r24, X
No newline at end of file
420 270: 52 97 sbiw r26, 0x12 ; 18
No newline at end of file
421 272: 88 7f andi r24, 0xF8 ; 248
No newline at end of file
422 274: 81 60 ori r24, 0x01 ; 1
No newline at end of file
423 276: 52 96 adiw r26, 0x12 ; 18
No newline at end of file
424 278: 8c 93 st X, r24
No newline at end of file
425 }
No newline at end of file
426 27a: df 91 pop r29
No newline at end of file
427 27c: cf 91 pop r28
No newline at end of file
428 27e: 08 95 ret
No newline at end of file
429
No newline at end of file
430 00000280 <habilitar_interrupciones_globales>:
No newline at end of file
431 PMIC.CTRL = level_mask;
No newline at end of file
432 }
No newline at end of file
433
No newline at end of file
434 void habilitar_interrupciones_globales( void )
No newline at end of file
435 {
No newline at end of file
436 sei();
No newline at end of file
437 280: 78 94 sei
No newline at end of file
438 282: 08 95 ret
No newline at end of file
439
No newline at end of file
440 00000284 <envio_nibble>:
No newline at end of file
441 cli();
No newline at end of file
442 }
No newline at end of file
443
No newline at end of file
444 void envio_nibble(uint8_t fpga_dato)
No newline at end of file
445 {
No newline at end of file
446 PORT_FPGA.OUTCLR = CLK_FPGA;
No newline at end of file
447 284: e0 e6 ldi r30, 0x60 ; 96
No newline at end of file
448 286: f6 e0 ldi r31, 0x06 ; 6
No newline at end of file
449 288: 24 e0 ldi r18, 0x04 ; 4
No newline at end of file
450 28a: 26 83 std Z+6, r18 ; 0x06
No newline at end of file
451 PORT_FPGA.OUT = (PORT_FPGA.OUT & fpga_salidas_bm) | ((fpga_dato & nibble_alto_bm) << fpga_salidas_bp);
No newline at end of file
452 28c: 94 81 ldd r25, Z+4 ; 0x04
No newline at end of file
453 28e: 38 2f mov r19, r24
No newline at end of file
454 290: 30 7f andi r19, 0xF0 ; 240
No newline at end of file
455 292: 33 0f add r19, r19
No newline at end of file
456 294: 33 0f add r19, r19
No newline at end of file
457 296: 33 0f add r19, r19
No newline at end of file
458 298: 98 73 andi r25, 0x38 ; 56
No newline at end of file
459 29a: 93 2b or r25, r19
No newline at end of file
460 29c: 94 83 std Z+4, r25 ; 0x04
No newline at end of file
461 PORT_FPGA.OUTSET = CLK_FPGA;
No newline at end of file
462 29e: 25 83 std Z+5, r18 ; 0x05
No newline at end of file
463 //asm("nop");
No newline at end of file
464 PORT_FPGA.OUTCLR = CLK_FPGA;
No newline at end of file
465 2a0: 26 83 std Z+6, r18 ; 0x06
No newline at end of file
466 PORT_FPGA.OUT = (PORT_FPGA.OUT & fpga_salidas_bm) | ((fpga_dato & nibble_bajo_bm) << fpga_salidas_bp);
No newline at end of file
467 2a2: 94 81 ldd r25, Z+4 ; 0x04
No newline at end of file
468 2a4: 8f 70 andi r24, 0x0F ; 15
No newline at end of file
469 2a6: 88 0f add r24, r24
No newline at end of file
470 2a8: 88 0f add r24, r24
No newline at end of file
471 2aa: 88 0f add r24, r24
No newline at end of file
472 2ac: 98 73 andi r25, 0x38 ; 56
No newline at end of file
473 2ae: 89 2b or r24, r25
No newline at end of file
474 2b0: 84 83 std Z+4, r24 ; 0x04
No newline at end of file
475 PORT_FPGA.OUTSET = CLK_FPGA;
No newline at end of file
476 2b2: 25 83 std Z+5, r18 ; 0x05
No newline at end of file
477 2b4: 08 95 ret
No newline at end of file
478
No newline at end of file
479 000002b6 <envio_dato_adc>:
No newline at end of file
480 envio_dato_adc(aux_dato);
No newline at end of file
481 envio_dato_adc(fpga_dato);
No newline at end of file
482 }
No newline at end of file
483
No newline at end of file
484 void envio_dato_adc(uint8_t* dato_adc)
No newline at end of file
485 {
No newline at end of file
486 2b6: 0f 93 push r16
No newline at end of file
487 2b8: 1f 93 push r17
No newline at end of file
488 2ba: cf 93 push r28
No newline at end of file
489 2bc: df 93 push r29
No newline at end of file
490 2be: ec 01 movw r28, r24
No newline at end of file
491 2c0: 8c 01 movw r16, r24
No newline at end of file
492 2c2: 0d 5f subi r16, 0xFD ; 253
No newline at end of file
493 2c4: 1f 4f sbci r17, 0xFF ; 255
No newline at end of file
494 for(int i=0; i<3 ; i++)
No newline at end of file
495 envio_nibble(dato_adc[i]);
No newline at end of file
496 2c6: 89 91 ld r24, Y+
No newline at end of file
497 2c8: 0e 94 42 01 call 0x284 ; 0x284 <envio_nibble>
No newline at end of file
498 envio_dato_adc(fpga_dato);
No newline at end of file
499 }
No newline at end of file
500
No newline at end of file
501 void envio_dato_adc(uint8_t* dato_adc)
No newline at end of file
502 {
No newline at end of file
503 for(int i=0; i<3 ; i++)
No newline at end of file
504 2cc: c0 17 cp r28, r16
No newline at end of file
505 2ce: d1 07 cpc r29, r17
No newline at end of file
506 2d0: d1 f7 brne .-12 ; 0x2c6 <envio_dato_adc+0x10>
No newline at end of file
507 envio_nibble(dato_adc[i]);
No newline at end of file
508 }
No newline at end of file
509 2d2: df 91 pop r29
No newline at end of file
510 2d4: cf 91 pop r28
No newline at end of file
511 2d6: 1f 91 pop r17
No newline at end of file
512 2d8: 0f 91 pop r16
No newline at end of file
513 2da: 08 95 ret
No newline at end of file
514
No newline at end of file
515 000002dc <envio_datos_fpga>:
No newline at end of file
516 PORT_FPGA.OUTSET = CLK_FPGA;
No newline at end of file
517
No newline at end of file
518 }
No newline at end of file
519
No newline at end of file
520 void envio_datos_fpga(void)
No newline at end of file
521 {
No newline at end of file
522 2dc: cf 93 push r28
No newline at end of file
523 2de: df 93 push r29
No newline at end of file
524 2e0: cd b7 in r28, 0x3d ; 61
No newline at end of file
525 2e2: de b7 in r29, 0x3e ; 62
No newline at end of file
526 2e4: 26 97 sbiw r28, 0x06 ; 6
No newline at end of file
527 2e6: cd bf out 0x3d, r28 ; 61
No newline at end of file
528 2e8: de bf out 0x3e, r29 ; 62
No newline at end of file
529 uint8_t fpga_dato[ADC_DATASZ], aux_dato[ADC_DATASZ] ;
No newline at end of file
530 adcport_read_data(fpga_dato,ADC_DATASZ);
No newline at end of file
531 2ea: 63 e0 ldi r22, 0x03 ; 3
No newline at end of file
532 2ec: 70 e0 ldi r23, 0x00 ; 0
No newline at end of file
533 2ee: ce 01 movw r24, r28
No newline at end of file
534 2f0: 01 96 adiw r24, 0x01 ; 1
No newline at end of file
535 2f2: 0e 94 e7 00 call 0x1ce ; 0x1ce <adcport_read_data>
No newline at end of file
536 aux_dato[0] = fpga_dato[0];
No newline at end of file
537 2f6: 89 81 ldd r24, Y+1 ; 0x01
No newline at end of file
538 2f8: 8c 83 std Y+4, r24 ; 0x04
No newline at end of file
539 aux_dato[1] = fpga_dato[1];
No newline at end of file
540 2fa: 8a 81 ldd r24, Y+2 ; 0x02
No newline at end of file
541 2fc: 8d 83 std Y+5, r24 ; 0x05
No newline at end of file
542 aux_dato[2] = fpga_dato[2];
No newline at end of file
543 2fe: 8b 81 ldd r24, Y+3 ; 0x03
No newline at end of file
544 300: 8e 83 std Y+6, r24 ; 0x06
No newline at end of file
545 adcport_read_data(fpga_dato,ADC_DATASZ);
No newline at end of file
546 302: 63 e0 ldi r22, 0x03 ; 3
No newline at end of file
547 304: 70 e0 ldi r23, 0x00 ; 0
No newline at end of file
548 306: ce 01 movw r24, r28
No newline at end of file
549 308: 01 96 adiw r24, 0x01 ; 1
No newline at end of file
550 30a: 0e 94 e7 00 call 0x1ce ; 0x1ce <adcport_read_data>
No newline at end of file
551
No newline at end of file
552 envio_dato_adc(aux_dato);
No newline at end of file
553 30e: ce 01 movw r24, r28
No newline at end of file
554 310: 04 96 adiw r24, 0x04 ; 4
No newline at end of file
555 312: 0e 94 5b 01 call 0x2b6 ; 0x2b6 <envio_dato_adc>
No newline at end of file
556 envio_dato_adc(fpga_dato);
No newline at end of file
557 316: ce 01 movw r24, r28
No newline at end of file
558 318: 01 96 adiw r24, 0x01 ; 1
No newline at end of file
559 31a: 0e 94 5b 01 call 0x2b6 ; 0x2b6 <envio_dato_adc>
No newline at end of file
560 }
No newline at end of file
561 31e: 26 96 adiw r28, 0x06 ; 6
No newline at end of file
562 320: cd bf out 0x3d, r28 ; 61
No newline at end of file
563 322: de bf out 0x3e, r29 ; 62
No newline at end of file
564 324: df 91 pop r29
No newline at end of file
565 326: cf 91 pop r28
No newline at end of file
566 328: 08 95 ret
No newline at end of file
567
No newline at end of file
568 0000032a <main>:
No newline at end of file
569
No newline at end of file
570
No newline at end of file
571 int main(void)
No newline at end of file
572 {
No newline at end of file
573 //uint8_t datos_adc[3];
No newline at end of file
574 config_puertos();
No newline at end of file
575 32a: 0e 94 15 02 call 0x42a ; 0x42a <config_puertos>
No newline at end of file
576 config_sysclock();
No newline at end of file
577 32e: 0e 94 8b 02 call 0x516 ; 0x516 <config_sysclock>
No newline at end of file
578 config_spiparm();
No newline at end of file
579 332: 0e 94 04 01 call 0x208 ; 0x208 <config_spiparm>
No newline at end of file
580 config_fpgaport();
No newline at end of file
581 336: 0e 94 08 01 call 0x210 ; 0x210 <config_fpgaport>
No newline at end of file
582 //datos_adc[0] = 0x00;
No newline at end of file
583 //datos_adc[1] = 0x00;
No newline at end of file
584 //datos_adc[2] = 0x00;
No newline at end of file
585 //PORTD.OUTSET = PIN5_bm;
No newline at end of file
586
No newline at end of file
587 PMIC.CTRL = hab_prioridad_alta;
No newline at end of file
588 33a: 84 e0 ldi r24, 0x04 ; 4
No newline at end of file
589 33c: 80 93 a2 00 sts 0x00A2, r24
No newline at end of file
590 habilitar_interrupciones_globales();
No newline at end of file
591 340: 0e 94 40 01 call 0x280 ; 0x280 <habilitar_interrupciones_globales>
No newline at end of file
592
No newline at end of file
593 /* Replace with your application code */
No newline at end of file
594 while (1)
No newline at end of file
595 {
No newline at end of file
596 if (test_adc() == ADC_ID){
No newline at end of file
597 PORTD.OUTSET = PIN6_bm | PIN5_bm;
No newline at end of file
598 344: 00 e6 ldi r16, 0x60 ; 96
No newline at end of file
599 346: 16 e0 ldi r17, 0x06 ; 6
No newline at end of file
600 348: c0 e6 ldi r28, 0x60 ; 96
No newline at end of file
601 habilitar_interrupciones_globales();
No newline at end of file
602
No newline at end of file
603 /* Replace with your application code */
No newline at end of file
604 while (1)
No newline at end of file
605 {
No newline at end of file
606 if (test_adc() == ADC_ID){
No newline at end of file
607 34a: 0e 94 c2 00 call 0x184 ; 0x184 <test_adc>
No newline at end of file
608 34e: 84 39 cpi r24, 0x94 ; 148
No newline at end of file
609 350: 9c 40 sbci r25, 0x0C ; 12
No newline at end of file
610 352: d9 f7 brne .-10 ; 0x34a <main+0x20>
No newline at end of file
611 PORTD.OUTSET = PIN6_bm | PIN5_bm;
No newline at end of file
612 354: f8 01 movw r30, r16
No newline at end of file
613 356: c5 83 std Z+5, r28 ; 0x05
No newline at end of file
614 358: f8 cf rjmp .-16 ; 0x34a <main+0x20>
No newline at end of file
615
No newline at end of file
616 0000035a <__vector_64>:
No newline at end of file
617 return 0;
No newline at end of file
618 }
No newline at end of file
619
No newline at end of file
620
No newline at end of file
621 ISR(INT_LOCK_FPGA)
No newline at end of file
622 {
No newline at end of file
623 35a: 1f 92 push r1
No newline at end of file
624 35c: 0f 92 push r0
No newline at end of file
625 35e: 0f b6 in r0, 0x3f ; 63
No newline at end of file
626 360: 0f 92 push r0
No newline at end of file
627 362: 11 24 eor r1, r1
No newline at end of file
628 364: 8f 93 push r24
No newline at end of file
629 366: ef 93 push r30
No newline at end of file
630 368: ff 93 push r31
No newline at end of file
631 if((PORT_FPGA.IN & LOCK_FPGA) == LOCK_FPGA)
No newline at end of file
632 36a: 80 91 68 06 lds r24, 0x0668
No newline at end of file
633 36e: 81 ff sbrs r24, 1
No newline at end of file
634 370: 09 c0 rjmp .+18 ; 0x384 <__vector_64+0x2a>
No newline at end of file
635 {
No newline at end of file
636 PMIC.CTRL |= hab_prioridad_media;
No newline at end of file
637 372: e0 ea ldi r30, 0xA0 ; 160
No newline at end of file
638 374: f0 e0 ldi r31, 0x00 ; 0
No newline at end of file
639 376: 82 81 ldd r24, Z+2 ; 0x02
No newline at end of file
640 378: 82 60 ori r24, 0x02 ; 2
No newline at end of file
641 37a: 82 83 std Z+2, r24 ; 0x02
No newline at end of file
642 PORT_LOCKOUT.OUTSET = LOCK_OUT;
No newline at end of file
643 37c: 81 e0 ldi r24, 0x01 ; 1
No newline at end of file
644 37e: 80 93 05 06 sts 0x0605, r24
No newline at end of file
645 382: 08 c0 rjmp .+16 ; 0x394 <__vector_64+0x3a>
No newline at end of file
646 }
No newline at end of file
647 else
No newline at end of file
648 {
No newline at end of file
649 PMIC.CTRL &= ~hab_prioridad_media;
No newline at end of file
650 384: e0 ea ldi r30, 0xA0 ; 160
No newline at end of file
651 386: f0 e0 ldi r31, 0x00 ; 0
No newline at end of file
652 388: 82 81 ldd r24, Z+2 ; 0x02
No newline at end of file
653 38a: 8d 7f andi r24, 0xFD ; 253
No newline at end of file
654 38c: 82 83 std Z+2, r24 ; 0x02
No newline at end of file
655 PORT_LOCKOUT.OUTCLR = LOCK_OUT;
No newline at end of file
656 38e: 81 e0 ldi r24, 0x01 ; 1
No newline at end of file
657 390: 80 93 06 06 sts 0x0606, r24
No newline at end of file
658 }
No newline at end of file
659 }
No newline at end of file
660 394: ff 91 pop r31
No newline at end of file
661 396: ef 91 pop r30
No newline at end of file
662 398: 8f 91 pop r24
No newline at end of file
663 39a: 0f 90 pop r0
No newline at end of file
664 39c: 0f be out 0x3f, r0 ; 63
No newline at end of file
665 39e: 0f 90 pop r0
No newline at end of file
666 3a0: 1f 90 pop r1
No newline at end of file
667 3a2: 18 95 reti
No newline at end of file
668
No newline at end of file
669 000003a4 <__vector_35>:
No newline at end of file
670
No newline at end of file
671 ISR(INT_PPS)
No newline at end of file
672 {
No newline at end of file
673 3a4: 1f 92 push r1
No newline at end of file
674 3a6: 0f 92 push r0
No newline at end of file
675 3a8: 0f b6 in r0, 0x3f ; 63
No newline at end of file
676 3aa: 0f 92 push r0
No newline at end of file
677 3ac: 11 24 eor r1, r1
No newline at end of file
678 3ae: 8f 93 push r24
No newline at end of file
679 3b0: ef 93 push r30
No newline at end of file
680 3b2: ff 93 push r31
No newline at end of file
681 if((PORT_PPS.IN & PPS_FPGA) == PPS_FPGA)
No newline at end of file
682 3b4: 80 91 28 06 lds r24, 0x0628
No newline at end of file
683 3b8: 82 ff sbrs r24, 2
No newline at end of file
684 3ba: 06 c0 rjmp .+12 ; 0x3c8 <__vector_35+0x24>
No newline at end of file
685 PMIC.CTRL |= hab_prioridad_baja;
No newline at end of file
686 3bc: e0 ea ldi r30, 0xA0 ; 160
No newline at end of file
687 3be: f0 e0 ldi r31, 0x00 ; 0
No newline at end of file
688 3c0: 82 81 ldd r24, Z+2 ; 0x02
No newline at end of file
689 3c2: 81 60 ori r24, 0x01 ; 1
No newline at end of file
690 3c4: 82 83 std Z+2, r24 ; 0x02
No newline at end of file
691 3c6: 05 c0 rjmp .+10 ; 0x3d2 <__vector_35+0x2e>
No newline at end of file
692 else
No newline at end of file
693 PMIC.CTRL &= ~hab_prioridad_baja;
No newline at end of file
694 3c8: e0 ea ldi r30, 0xA0 ; 160
No newline at end of file
695 3ca: f0 e0 ldi r31, 0x00 ; 0
No newline at end of file
696 3cc: 82 81 ldd r24, Z+2 ; 0x02
No newline at end of file
697 3ce: 8e 7f andi r24, 0xFE ; 254
No newline at end of file
698 3d0: 82 83 std Z+2, r24 ; 0x02
No newline at end of file
699 }
No newline at end of file
700 3d2: ff 91 pop r31
No newline at end of file
701 3d4: ef 91 pop r30
No newline at end of file
702 3d6: 8f 91 pop r24
No newline at end of file
703 3d8: 0f 90 pop r0
No newline at end of file
704 3da: 0f be out 0x3f, r0 ; 63
No newline at end of file
705 3dc: 0f 90 pop r0
No newline at end of file
706 3de: 1f 90 pop r1
No newline at end of file
707 3e0: 18 95 reti
No newline at end of file
708
No newline at end of file
709 000003e2 <__vector_2>:
No newline at end of file
710
No newline at end of file
711 ISR(INT_RDY)
No newline at end of file
712 {
No newline at end of file
713 3e2: 1f 92 push r1
No newline at end of file
714 3e4: 0f 92 push r0
No newline at end of file
715 3e6: 0f b6 in r0, 0x3f ; 63
No newline at end of file
716 3e8: 0f 92 push r0
No newline at end of file
717 3ea: 11 24 eor r1, r1
No newline at end of file
718 3ec: 2f 93 push r18
No newline at end of file
719 3ee: 3f 93 push r19
No newline at end of file
720 3f0: 4f 93 push r20
No newline at end of file
721 3f2: 5f 93 push r21
No newline at end of file
722 3f4: 6f 93 push r22
No newline at end of file
723 3f6: 7f 93 push r23
No newline at end of file
724 3f8: 8f 93 push r24
No newline at end of file
725 3fa: 9f 93 push r25
No newline at end of file
726 3fc: af 93 push r26
No newline at end of file
727 3fe: bf 93 push r27
No newline at end of file
728 400: ef 93 push r30
No newline at end of file
729 402: ff 93 push r31
No newline at end of file
730 envio_datos_fpga();
No newline at end of file
731 404: 0e 94 6e 01 call 0x2dc ; 0x2dc <envio_datos_fpga>
No newline at end of file
732 }
No newline at end of file
733 408: ff 91 pop r31
No newline at end of file
734 40a: ef 91 pop r30
No newline at end of file
735 40c: bf 91 pop r27
No newline at end of file
736 40e: af 91 pop r26
No newline at end of file
737 410: 9f 91 pop r25
No newline at end of file
738 412: 8f 91 pop r24
No newline at end of file
739 414: 7f 91 pop r23
No newline at end of file
740 416: 6f 91 pop r22
No newline at end of file
741 418: 5f 91 pop r21
No newline at end of file
742 41a: 4f 91 pop r20
No newline at end of file
743 41c: 3f 91 pop r19
No newline at end of file
744 41e: 2f 91 pop r18
No newline at end of file
745 420: 0f 90 pop r0
No newline at end of file
746 422: 0f be out 0x3f, r0 ; 63
No newline at end of file
747 424: 0f 90 pop r0
No newline at end of file
748 426: 1f 90 pop r1
No newline at end of file
749 428: 18 95 reti
No newline at end of file
750
No newline at end of file
751 0000042a <config_puertos>:
No newline at end of file
752 #include "commSPI_ADC.h"
No newline at end of file
753
No newline at end of file
754 inline void config_puertos(void){
No newline at end of file
755 //Configuracion pines del puerto A: PA7-PA0
No newline at end of file
756 //Pines de entrada y totem_pullup
No newline at end of file
757 PORTA.DIRCLR = PIN7_bm | PIN6_bm | PIN5_bm | PIN4_bm | PIN3_bm | PIN2_bm | PIN1_bm;
No newline at end of file
758 42a: e0 e0 ldi r30, 0x00 ; 0
No newline at end of file
759 42c: f6 e0 ldi r31, 0x06 ; 6
No newline at end of file
760 42e: 8e ef ldi r24, 0xFE ; 254
No newline at end of file
761 430: 82 83 std Z+2, r24 ; 0x02
No newline at end of file
762 PORTA.PIN7CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
763 432: 88 e1 ldi r24, 0x18 ; 24
No newline at end of file
764 434: 87 8b std Z+23, r24 ; 0x17
No newline at end of file
765 PORTA.PIN6CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
766 436: 86 8b std Z+22, r24 ; 0x16
No newline at end of file
767 PORTA.PIN5CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
768 438: 85 8b std Z+21, r24 ; 0x15
No newline at end of file
769 PORTA.PIN4CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
770 43a: 84 8b std Z+20, r24 ; 0x14
No newline at end of file
771 PORTA.PIN3CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
772 43c: 83 8b std Z+19, r24 ; 0x13
No newline at end of file
773 PORTA.PIN2CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
774 43e: 82 8b std Z+18, r24 ; 0x12
No newline at end of file
775 PORTA.PIN1CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
776 440: 81 8b std Z+17, r24 ; 0x11
No newline at end of file
777 //Pin de salida A0
No newline at end of file
778 //Wired AND. Esto pues podr� irse a alta por defecto y si existe una tensi�n
No newline at end of file
779 //La l�nea tendr� el valor de tensi�n externa pero si es entrada con impedancia alta leer� el valor en alta
No newline at end of file
780 //Valor por defecto salida: PA0 = low
No newline at end of file
781 PORTA.DIRSET = PIN0_bm;
No newline at end of file
782 442: 21 e0 ldi r18, 0x01 ; 1
No newline at end of file
783 444: 21 83 std Z+1, r18 ; 0x01
No newline at end of file
784 PORTA.PIN0CTRL = PORT_OPC_WIREDANDPULL_gc;
No newline at end of file
785 446: 98 e3 ldi r25, 0x38 ; 56
No newline at end of file
786 448: 90 8b std Z+16, r25 ; 0x10
No newline at end of file
787 PORTA.OUTCLR = PIN0_bm;
No newline at end of file
788 44a: 26 83 std Z+6, r18 ; 0x06
No newline at end of file
789
No newline at end of file
790 //Configuracion pines del puerto B: PB3-PB0
No newline at end of file
791 //Pines de entrada y totem_pullup
No newline at end of file
792 PORTB.DIRCLR = PIN3_bm | PIN2_bm | PIN1_bm | PIN0_bm;
No newline at end of file
793 44c: e0 e2 ldi r30, 0x20 ; 32
No newline at end of file
794 44e: f6 e0 ldi r31, 0x06 ; 6
No newline at end of file
795 450: 3f e0 ldi r19, 0x0F ; 15
No newline at end of file
796 452: 32 83 std Z+2, r19 ; 0x02
No newline at end of file
797 PORTB.PIN3CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
798 454: 83 8b std Z+19, r24 ; 0x13
No newline at end of file
799 PORTB.PIN2CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
800 456: 82 8b std Z+18, r24 ; 0x12
No newline at end of file
801 PORTB.PIN1CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
802 458: 81 8b std Z+17, r24 ; 0x11
No newline at end of file
803 PORTB.PIN0CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
804 45a: 80 8b std Z+16, r24 ; 0x10
No newline at end of file
805
No newline at end of file
806 //Configuracion pines del puerto C: PC7-PC0 Con PC7-PC4:SPI
No newline at end of file
807 //Pines de entrada y totem_pullup: PC3, PC2, PC1, PC0, SPI_MISO PC6
No newline at end of file
808 //Pines de salida y totem_wiredand-pull: SPI_MOSI, SCK, SS. Valores por defecto de 1's en SCK y SS. Por defecto 0 en MOSI.
No newline at end of file
809 PORTC.DIRCLR = SPI_MISO_bm | PIN3_bm | PIN2_bm | PIN1_bm | PIN0_bm; //En este paso ya se sabe que el puerto SPI es el C
No newline at end of file
810 45c: e0 e4 ldi r30, 0x40 ; 64
No newline at end of file
811 45e: f6 e0 ldi r31, 0x06 ; 6
No newline at end of file
812 460: 2f e4 ldi r18, 0x4F ; 79
No newline at end of file
813 462: 22 83 std Z+2, r18 ; 0x02
No newline at end of file
814 PORTSPI.PINSPIMISOCTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
815 464: 86 8b std Z+22, r24 ; 0x16
No newline at end of file
816 PORTC.PIN3CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
817 466: 83 8b std Z+19, r24 ; 0x13
No newline at end of file
818 PORTC.PIN2CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
819 468: 82 8b std Z+18, r24 ; 0x12
No newline at end of file
820 PORTC.PIN1CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
821 46a: 81 8b std Z+17, r24 ; 0x11
No newline at end of file
822 PORTC.PIN0CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
823 46c: 80 8b std Z+16, r24 ; 0x10
No newline at end of file
824 //Pines de salida wiredand-pull
No newline at end of file
825 //Valor por defecto salida: PC4,PC7 = low
No newline at end of file
826 //Valor por defecto salida: PC5 = set
No newline at end of file
827 PORTSPI.DIRSET = SPI_MOSI_bm | SPI_SS_bm |SPI_SCK_bm;
No newline at end of file
828 46e: 20 eb ldi r18, 0xB0 ; 176
No newline at end of file
829 470: 21 83 std Z+1, r18 ; 0x01
No newline at end of file
830 PORTSPI.PINSPIMOSICTRL = PORT_OPC_TOTEM_gc;
No newline at end of file
831 472: 15 8a std Z+21, r1 ; 0x15
No newline at end of file
832 PORTSPI.PINSPISCKCTRL = PORT_OPC_TOTEM_gc;
No newline at end of file
833 474: 17 8a std Z+23, r1 ; 0x17
No newline at end of file
834 PORTSPI.PINSPISSCTRL = PORT_OPC_TOTEM_gc;
No newline at end of file
835 476: 14 8a std Z+20, r1 ; 0x14
No newline at end of file
836 PORTSPI.OUTSET = SPI_SS_bm |SPI_SCK_bm;
No newline at end of file
837 478: 20 e9 ldi r18, 0x90 ; 144
No newline at end of file
838 47a: 25 83 std Z+5, r18 ; 0x05
No newline at end of file
839 PORTSPI.OUTCLR = SPI_MOSI_bm;
No newline at end of file
840 47c: 20 e2 ldi r18, 0x20 ; 32
No newline at end of file
841 47e: 26 83 std Z+6, r18 ; 0x06
No newline at end of file
842 //Configuracion pines del puerto D: PD7-PD0
No newline at end of file
843 //Pines de entrada y totem_pullup: PIN7 y PIN0
No newline at end of file
844 //NOTA
No newline at end of file
845 //PARA EL FW FINAL REVISAR SI PD2 SER� ENTRADA O NO
No newline at end of file
846 //NOTA FIN
No newline at end of file
847 PORTD.DIRCLR = PIN7_bm | PIN2_bm | PIN1_bm| PIN0_bm;
No newline at end of file
848 480: a0 e6 ldi r26, 0x60 ; 96
No newline at end of file
849 482: b6 e0 ldi r27, 0x06 ; 6
No newline at end of file
850 484: 27 e8 ldi r18, 0x87 ; 135
No newline at end of file
851 486: 12 96 adiw r26, 0x02 ; 2
No newline at end of file
852 488: 2c 93 st X, r18
No newline at end of file
853 48a: 12 97 sbiw r26, 0x02 ; 2
No newline at end of file
854 PORTD.PIN7CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
855 48c: 57 96 adiw r26, 0x17 ; 23
No newline at end of file
856 48e: 8c 93 st X, r24
No newline at end of file
857 490: 57 97 sbiw r26, 0x17 ; 23
No newline at end of file
858 PORTD.PIN0CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
859 492: 50 96 adiw r26, 0x10 ; 16
No newline at end of file
860 494: 8c 93 st X, r24
No newline at end of file
861 496: 50 97 sbiw r26, 0x10 ; 16
No newline at end of file
862 //Pines de entrada y totem_pulldown: PIN2 y PIN1. Ambas ser�n entradas provenientes de la fpga
No newline at end of file
863 PORTD.PIN2CTRL = PORT_OPC_PULLDOWN_gc;
No newline at end of file
864 498: 20 e1 ldi r18, 0x10 ; 16
No newline at end of file
865 49a: 52 96 adiw r26, 0x12 ; 18
No newline at end of file
866 49c: 2c 93 st X, r18
No newline at end of file
867 49e: 52 97 sbiw r26, 0x12 ; 18
No newline at end of file
868 PORTD.PIN1CTRL = PORT_OPC_PULLDOWN_gc;
No newline at end of file
869 4a0: 51 96 adiw r26, 0x11 ; 17
No newline at end of file
870 4a2: 2c 93 st X, r18
No newline at end of file
871 4a4: 51 97 sbiw r26, 0x11 ; 17
No newline at end of file
872 //Pines de salida tipo wired-and-pull
No newline at end of file
873 //Valor por defecto PD6, PD5, PD4, PD3 = low
No newline at end of file
874 PORTD.DIRSET = PIN6_bm | PIN5_bm | PIN4_bm | PIN3_bm;
No newline at end of file
875 4a6: 48 e7 ldi r20, 0x78 ; 120
No newline at end of file
876 4a8: 11 96 adiw r26, 0x01 ; 1
No newline at end of file
877 4aa: 4c 93 st X, r20
No newline at end of file
878 4ac: 11 97 sbiw r26, 0x01 ; 1
No newline at end of file
879 PORTD.PIN6CTRL = PORT_OPC_WIREDANDPULL_gc;
No newline at end of file
880 4ae: 56 96 adiw r26, 0x16 ; 22
No newline at end of file
881 4b0: 9c 93 st X, r25
No newline at end of file
882 4b2: 56 97 sbiw r26, 0x16 ; 22
No newline at end of file
883 PORTD.PIN5CTRL = PORT_OPC_WIREDANDPULL_gc;
No newline at end of file
884 4b4: 55 96 adiw r26, 0x15 ; 21
No newline at end of file
885 4b6: 9c 93 st X, r25
No newline at end of file
886 4b8: 55 97 sbiw r26, 0x15 ; 21
No newline at end of file
887 PORTD.PIN4CTRL = PORT_OPC_WIREDANDPULL_gc;
No newline at end of file
888 4ba: 54 96 adiw r26, 0x14 ; 20
No newline at end of file
889 4bc: 9c 93 st X, r25
No newline at end of file
890 4be: 54 97 sbiw r26, 0x14 ; 20
No newline at end of file
891 PORTD.PIN3CTRL = PORT_OPC_WIREDANDPULL_gc;
No newline at end of file
892 4c0: 53 96 adiw r26, 0x13 ; 19
No newline at end of file
893 4c2: 9c 93 st X, r25
No newline at end of file
894 4c4: 53 97 sbiw r26, 0x13 ; 19
No newline at end of file
895 PORTD.OUTCLR = PIN6_bm | PIN5_bm | PIN4_bm | PIN3_bm;
No newline at end of file
896 4c6: 16 96 adiw r26, 0x06 ; 6
No newline at end of file
897 4c8: 4c 93 st X, r20
No newline at end of file
898
No newline at end of file
899 //Configuracion pines del puerto E: PE3-PE0
No newline at end of file
900 //Pines de entrada y totem_pullup: PIN3 - PIN0
No newline at end of file
901 PORTE.DIRCLR = PIN3_bm | PIN2_bm | PIN1_bm| PIN0_bm;
No newline at end of file
902 4ca: a0 e8 ldi r26, 0x80 ; 128
No newline at end of file
903 4cc: b6 e0 ldi r27, 0x06 ; 6
No newline at end of file
904 4ce: 12 96 adiw r26, 0x02 ; 2
No newline at end of file
905 4d0: 3c 93 st X, r19
No newline at end of file
906 4d2: 12 97 sbiw r26, 0x02 ; 2
No newline at end of file
907 PORTE.PIN3CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
908 4d4: 53 96 adiw r26, 0x13 ; 19
No newline at end of file
909 4d6: 8c 93 st X, r24
No newline at end of file
910 4d8: 53 97 sbiw r26, 0x13 ; 19
No newline at end of file
911 PORTE.PIN2CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
912 4da: 52 96 adiw r26, 0x12 ; 18
No newline at end of file
913 4dc: 8c 93 st X, r24
No newline at end of file
914 4de: 52 97 sbiw r26, 0x12 ; 18
No newline at end of file
915 PORTE.PIN1CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
916 4e0: 51 96 adiw r26, 0x11 ; 17
No newline at end of file
917 4e2: 8c 93 st X, r24
No newline at end of file
918 4e4: 51 97 sbiw r26, 0x11 ; 17
No newline at end of file
919 PORTE.PIN0CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
920 4e6: 50 96 adiw r26, 0x10 ; 16
No newline at end of file
921 4e8: 8c 93 st X, r24
No newline at end of file
922
No newline at end of file
923 //Configuracion pines del puerto R: PR1-PR0
No newline at end of file
924 //Pines de entrada y totem_pulldown: PIN0
No newline at end of file
925 PORTR.DIRCLR = PIN1_bm| PIN0_bm;
No newline at end of file
926 4ea: a0 ee ldi r26, 0xE0 ; 224
No newline at end of file
927 4ec: b7 e0 ldi r27, 0x07 ; 7
No newline at end of file
928 4ee: 93 e0 ldi r25, 0x03 ; 3
No newline at end of file
929 4f0: 12 96 adiw r26, 0x02 ; 2
No newline at end of file
930 4f2: 9c 93 st X, r25
No newline at end of file
931 4f4: 12 97 sbiw r26, 0x02 ; 2
No newline at end of file
932 PORTR.PIN1CTRL = PORT_OPC_PULLDOWN_gc;
No newline at end of file
933 4f6: 51 96 adiw r26, 0x11 ; 17
No newline at end of file
934 4f8: 2c 93 st X, r18
No newline at end of file
935 4fa: 51 97 sbiw r26, 0x11 ; 17
No newline at end of file
936 //Pines de entrada y totem_pulldup:PIN1
No newline at end of file
937 PORTR.PIN0CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
938 4fc: 50 96 adiw r26, 0x10 ; 16
No newline at end of file
939 4fe: 8c 93 st X, r24
No newline at end of file
940
No newline at end of file
941 //Configuraci�n como interrupci�n del pin SPI_MISO_RDY
No newline at end of file
942
No newline at end of file
943 PORTSPI.INT0MASK = SPI_MISO_bm;
No newline at end of file
944 500: 80 e4 ldi r24, 0x40 ; 64
No newline at end of file
945 502: 82 87 std Z+10, r24 ; 0x0a
No newline at end of file
946 PORTSPI.INTCTRL = ( PORTSPI.INTCTRL & ~PORT_INT0LVL_gm ) | PORT_INT0LVL_LO_gc;
No newline at end of file
947 504: 81 85 ldd r24, Z+9 ; 0x09
No newline at end of file
948 506: 8c 7f andi r24, 0xFC ; 252
No newline at end of file
949 508: 81 60 ori r24, 0x01 ; 1
No newline at end of file
950 50a: 81 87 std Z+9, r24 ; 0x09
No newline at end of file
951 PORTSPI.PINSPIMISOCTRL = ( PORTSPI.PINSPIMISOCTRL & ~PORT_ISC_gm ) | PORT_ISC_FALLING_gc;
No newline at end of file
952 50c: 86 89 ldd r24, Z+22 ; 0x16
No newline at end of file
953 50e: 88 7f andi r24, 0xF8 ; 248
No newline at end of file
954 510: 82 60 ori r24, 0x02 ; 2
No newline at end of file
955 512: 86 8b std Z+22, r24 ; 0x16
No newline at end of file
956 514: 08 95 ret
No newline at end of file
957
No newline at end of file
958 00000516 <config_sysclock>:
No newline at end of file
959 #define F_CPU 32000000UL
No newline at end of file
960 #include <avr/io.h>
No newline at end of file
961
No newline at end of file
962 void config_sysclock(void){
No newline at end of file
963
No newline at end of file
964 OSC.CTRL |= OSC_RC32MEN_bm | OSC_RC32KEN_bm; //Habilito reloj interno de 32MHz
No newline at end of file
965 516: e0 e5 ldi r30, 0x50 ; 80
No newline at end of file
966 518: f0 e0 ldi r31, 0x00 ; 0
No newline at end of file
967 51a: 80 81 ld r24, Z
No newline at end of file
968 51c: 86 60 ori r24, 0x06 ; 6
No newline at end of file
969 51e: 80 83 st Z, r24
No newline at end of file
970 do{}while((OSC.STATUS & OSC_RC32MRDY_bm) == 0); //Se espera estabilidad del reloj
No newline at end of file
971 520: 81 81 ldd r24, Z+1 ; 0x01
No newline at end of file
972 522: 81 ff sbrs r24, 1
No newline at end of file
973 524: fd cf rjmp .-6 ; 0x520 <config_sysclock+0xa>
No newline at end of file
974 do{}while((OSC.STATUS & OSC_RC32KRDY_bm) == 0); //Se espera estabilidad del reloj
No newline at end of file
975 526: e0 e5 ldi r30, 0x50 ; 80
No newline at end of file
976 528: f0 e0 ldi r31, 0x00 ; 0
No newline at end of file
977 52a: 81 81 ldd r24, Z+1 ; 0x01
No newline at end of file
978 52c: 82 ff sbrs r24, 2
No newline at end of file
979 52e: fd cf rjmp .-6 ; 0x52a <config_sysclock+0x14>
No newline at end of file
980 CCP = CCP_IOREG_gc ; //Activo por 4 ciclos de reloj la escritura en el registro de control de reloj //Si no funciona con esta intrucci�n optimizarla
No newline at end of file
981 530: 28 ed ldi r18, 0xD8 ; 216
No newline at end of file
982 532: 24 bf out 0x34, r18 ; 52
No newline at end of file
983 //con instrucciones en assembler
No newline at end of file
984 CLK.CTRL |= (CLK_SCLKSEL_RC32M_gc); //Selecciono el reloj de 32MHz //Si no hace efecto con esta implementaci�n cambiarla por instrucciones en assembler
No newline at end of file
985 534: e0 e4 ldi r30, 0x40 ; 64
No newline at end of file
986 536: f0 e0 ldi r31, 0x00 ; 0
No newline at end of file
987 538: 80 81 ld r24, Z
No newline at end of file
988 53a: 81 60 ori r24, 0x01 ; 1
No newline at end of file
989 53c: 80 83 st Z, r24
No newline at end of file
990 DFLLRC32M.CTRL = DFLL_ENABLE_bm;
No newline at end of file
991 53e: 91 e0 ldi r25, 0x01 ; 1
No newline at end of file
992 540: 90 93 60 00 sts 0x0060, r25
No newline at end of file
993 OSC.DFLLCTRL &= (0b00<<1); //Habilito calibraci�n interna mediante reloj de 32K
No newline at end of file
994 544: e0 e5 ldi r30, 0x50 ; 80
No newline at end of file
995 546: f0 e0 ldi r31, 0x00 ; 0
No newline at end of file
996 548: 86 81 ldd r24, Z+6 ; 0x06
No newline at end of file
997 54a: 16 82 std Z+6, r1 ; 0x06
No newline at end of file
998 OSC.CTRL &= ~OSC_RC2MEN_bm; //Deshabilito el reloj interno de 2MHz para evitar consumo o lo comentamos para evitar quedarnos sin reloj de 2MHz interno
No newline at end of file
999 54c: 80 81 ld r24, Z
No newline at end of file
1000 54e: 8e 7f andi r24, 0xFE ; 254
No newline at end of file
1001 550: 80 83 st Z, r24
No newline at end of file
1002 CPU_CCP = CCP_IOREG_gc; //Levantar protecci�n de registro
No newline at end of file
1003 552: 24 bf out 0x34, r18 ; 52
No newline at end of file
1004 OSC_XOSCFAIL = (OSC_XOSCFDEN_bm); // Detecci�n de error de XOSC y de
No newline at end of file
1005 554: 90 93 53 00 sts 0x0053, r25
No newline at end of file
1006 558: 08 95 ret
No newline at end of file
1007
No newline at end of file
1008 0000055a <_exit>:
No newline at end of file
1009 55a: f8 94 cli
No newline at end of file
1010
No newline at end of file
1011 0000055c <__stop_program>:
No newline at end of file
1012 55c: ff cf rjmp .-2 ; 0x55c <__stop_program> No newline at end of file
This diff has been collapsed as it changes many lines, (590 lines changed) Show them Hide them
@@ -0,0 +1,590
1 Archive member included to satisfy reference by file (symbol)
No newline at end of file
2
No newline at end of file
3 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avrxmega2\libgcc.a(_exit.o)
No newline at end of file
4 C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/XMEGAD_DFP/1.0.29/gcc/dev/atxmega32d4/avrxmega2/crtatxmega32d4.o (exit)
No newline at end of file
5
No newline at end of file
6 Discarded input sections
No newline at end of file
7
No newline at end of file
8 .data 0x00000000 0x0 C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/XMEGAD_DFP/1.0.29/gcc/dev/atxmega32d4/avrxmega2/crtatxmega32d4.o
No newline at end of file
9 .bss 0x00000000 0x0 C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/XMEGAD_DFP/1.0.29/gcc/dev/atxmega32d4/avrxmega2/crtatxmega32d4.o
No newline at end of file
10 .text 0x00000000 0x0 ADC_7176_2.o
No newline at end of file
11 .data 0x00000000 0x0 ADC_7176_2.o
No newline at end of file
12 .bss 0x00000000 0x0 ADC_7176_2.o
No newline at end of file
13 .text.test_adc_2
No newline at end of file
14 0x00000000 0x3e ADC_7176_2.o
No newline at end of file
15 .text.adcport_tranceiv
No newline at end of file
16 0x00000000 0x14 ADC_7176_2.o
No newline at end of file
17 .text.adcport_write_filtcon0
No newline at end of file
18 0x00000000 0x34 ADC_7176_2.o
No newline at end of file
19 .text.config_adc
No newline at end of file
20 0x00000000 0x6 ADC_7176_2.o
No newline at end of file
21 .text.adcport_write_interfmode
No newline at end of file
22 0x00000000 0x34 ADC_7176_2.o
No newline at end of file
23 .text 0x00000000 0x0 commSPI_ADC.o
No newline at end of file
24 .data 0x00000000 0x0 commSPI_ADC.o
No newline at end of file
25 .bss 0x00000000 0x0 commSPI_ADC.o
No newline at end of file
26 .text 0x00000000 0x0 fpga_port.o
No newline at end of file
27 .data 0x00000000 0x0 fpga_port.o
No newline at end of file
28 .bss 0x00000000 0x0 fpga_port.o
No newline at end of file
29 .text.habilitar_interrupciones
No newline at end of file
30 0x00000000 0x6 fpga_port.o
No newline at end of file
31 .text.deshabilitar_interrupciones_globales
No newline at end of file
32 0x00000000 0x4 fpga_port.o
No newline at end of file
33 .text 0x00000000 0x0 main.o
No newline at end of file
34 .data 0x00000000 0x0 main.o
No newline at end of file
35 .bss 0x00000000 0x0 main.o
No newline at end of file
36 .text 0x00000000 0x0 Ports.o
No newline at end of file
37 .data 0x00000000 0x0 Ports.o
No newline at end of file
38 .bss 0x00000000 0x0 Ports.o
No newline at end of file
39 .text 0x00000000 0x0 sys_clock.o
No newline at end of file
40 .data 0x00000000 0x0 sys_clock.o
No newline at end of file
41 .bss 0x00000000 0x0 sys_clock.o
No newline at end of file
42 .text 0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avrxmega2\libgcc.a(_exit.o)
No newline at end of file
43 .data 0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avrxmega2\libgcc.a(_exit.o)
No newline at end of file
44 .bss 0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avrxmega2\libgcc.a(_exit.o)
No newline at end of file
45 .text.libgcc.mul
No newline at end of file
46 0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avrxmega2\libgcc.a(_exit.o)
No newline at end of file
47 .text.libgcc.div
No newline at end of file
48 0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avrxmega2\libgcc.a(_exit.o)
No newline at end of file
49 .text.libgcc 0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avrxmega2\libgcc.a(_exit.o)
No newline at end of file
50 .text.libgcc.prologue
No newline at end of file
51 0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avrxmega2\libgcc.a(_exit.o)
No newline at end of file
52 .text.libgcc.builtins
No newline at end of file
53 0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avrxmega2\libgcc.a(_exit.o)
No newline at end of file
54 .text.libgcc.fmul
No newline at end of file
55 0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avrxmega2\libgcc.a(_exit.o)
No newline at end of file
56 .text.libgcc.fixed
No newline at end of file
57 0x00000000 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avrxmega2\libgcc.a(_exit.o)
No newline at end of file
58
No newline at end of file
59 Memory Configuration
No newline at end of file
60
No newline at end of file
61 Name Origin Length Attributes
No newline at end of file
62 text 0x00000000 0x00100000 xr
No newline at end of file
63 data 0x00802000 0x0000ffa0 rw !x
No newline at end of file
64 eeprom 0x00810000 0x00010000 rw !x
No newline at end of file
65 fuse 0x00820000 0x00000400 rw !x
No newline at end of file
66 lock 0x00830000 0x00000400 rw !x
No newline at end of file
67 signature 0x00840000 0x00000400 rw !x
No newline at end of file
68 user_signatures 0x00850000 0x00000400 rw !x
No newline at end of file
69 *default* 0x00000000 0xffffffff
No newline at end of file
70
No newline at end of file
71 Linker script and memory map
No newline at end of file
72
No newline at end of file
73 LOAD C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/XMEGAD_DFP/1.0.29/gcc/dev/atxmega32d4/avrxmega2/crtatxmega32d4.o
No newline at end of file
74 LOAD ADC_7176_2.o
No newline at end of file
75 LOAD commSPI_ADC.o
No newline at end of file
76 LOAD fpga_port.o
No newline at end of file
77 LOAD main.o
No newline at end of file
78 LOAD Ports.o
No newline at end of file
79 LOAD sys_clock.o
No newline at end of file
80 START GROUP
No newline at end of file
81 LOAD c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/../../../../avr/lib/avrxmega2\libm.a
No newline at end of file
82 END GROUP
No newline at end of file
83 START GROUP
No newline at end of file
84 LOAD c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avrxmega2\libgcc.a
No newline at end of file
85 LOAD c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/../../../../avr/lib/avrxmega2\libm.a
No newline at end of file
86 LOAD c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/../../../../avr/lib/avrxmega2\libc.a
No newline at end of file
87 LOAD C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/XMEGAD_DFP/1.0.29/gcc/dev/atxmega32d4/avrxmega2\libatxmega32d4.a
No newline at end of file
88 END GROUP
No newline at end of file
89
No newline at end of file
90 .hash
No newline at end of file
91 *(.hash)
No newline at end of file
92
No newline at end of file
93 .dynsym
No newline at end of file
94 *(.dynsym)
No newline at end of file
95
No newline at end of file
96 .dynstr
No newline at end of file
97 *(.dynstr)
No newline at end of file
98
No newline at end of file
99 .gnu.version
No newline at end of file
100 *(.gnu.version)
No newline at end of file
101
No newline at end of file
102 .gnu.version_d
No newline at end of file
103 *(.gnu.version_d)
No newline at end of file
104
No newline at end of file
105 .gnu.version_r
No newline at end of file
106 *(.gnu.version_r)
No newline at end of file
107
No newline at end of file
108 .rel.init
No newline at end of file
109 *(.rel.init)
No newline at end of file
110
No newline at end of file
111 .rela.init
No newline at end of file
112 *(.rela.init)
No newline at end of file
113
No newline at end of file
114 .rel.text
No newline at end of file
115 *(.rel.text)
No newline at end of file
116 *(.rel.text.*)
No newline at end of file
117 *(.rel.gnu.linkonce.t*)
No newline at end of file
118
No newline at end of file
119 .rela.text
No newline at end of file
120 *(.rela.text)
No newline at end of file
121 *(.rela.text.*)
No newline at end of file
122 *(.rela.gnu.linkonce.t*)
No newline at end of file
123
No newline at end of file
124 .rel.fini
No newline at end of file
125 *(.rel.fini)
No newline at end of file
126
No newline at end of file
127 .rela.fini
No newline at end of file
128 *(.rela.fini)
No newline at end of file
129
No newline at end of file
130 .rel.rodata
No newline at end of file
131 *(.rel.rodata)
No newline at end of file
132 *(.rel.rodata.*)
No newline at end of file
133 *(.rel.gnu.linkonce.r*)
No newline at end of file
134
No newline at end of file
135 .rela.rodata
No newline at end of file
136 *(.rela.rodata)
No newline at end of file
137 *(.rela.rodata.*)
No newline at end of file
138 *(.rela.gnu.linkonce.r*)
No newline at end of file
139
No newline at end of file
140 .rel.data
No newline at end of file
141 *(.rel.data)
No newline at end of file
142 *(.rel.data.*)
No newline at end of file
143 *(.rel.gnu.linkonce.d*)
No newline at end of file
144
No newline at end of file
145 .rela.data
No newline at end of file
146 *(.rela.data)
No newline at end of file
147 *(.rela.data.*)
No newline at end of file
148 *(.rela.gnu.linkonce.d*)
No newline at end of file
149
No newline at end of file
150 .rel.ctors
No newline at end of file
151 *(.rel.ctors)
No newline at end of file
152
No newline at end of file
153 .rela.ctors
No newline at end of file
154 *(.rela.ctors)
No newline at end of file
155
No newline at end of file
156 .rel.dtors
No newline at end of file
157 *(.rel.dtors)
No newline at end of file
158
No newline at end of file
159 .rela.dtors
No newline at end of file
160 *(.rela.dtors)
No newline at end of file
161
No newline at end of file
162 .rel.got
No newline at end of file
163 *(.rel.got)
No newline at end of file
164
No newline at end of file
165 .rela.got
No newline at end of file
166 *(.rela.got)
No newline at end of file
167
No newline at end of file
168 .rel.bss
No newline at end of file
169 *(.rel.bss)
No newline at end of file
170
No newline at end of file
171 .rela.bss
No newline at end of file
172 *(.rela.bss)
No newline at end of file
173
No newline at end of file
174 .rel.plt
No newline at end of file
175 *(.rel.plt)
No newline at end of file
176
No newline at end of file
177 .rela.plt
No newline at end of file
178 *(.rela.plt)
No newline at end of file
179
No newline at end of file
180 .text 0x00000000 0x55e
No newline at end of file
181 *(.vectors)
No newline at end of file
182 .vectors 0x00000000 0x16c C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/XMEGAD_DFP/1.0.29/gcc/dev/atxmega32d4/avrxmega2/crtatxmega32d4.o
No newline at end of file
183 0x00000000 __vector_default
No newline at end of file
184 0x00000000 __vectors
No newline at end of file
185 *(.vectors)
No newline at end of file
186 *(.progmem.gcc*)
No newline at end of file
187 0x0000016c . = ALIGN (0x2)
No newline at end of file
188 0x0000016c __trampolines_start = .
No newline at end of file
189 *(.trampolines)
No newline at end of file
190 .trampolines 0x0000016c 0x0 linker stubs
No newline at end of file
191 *(.trampolines*)
No newline at end of file
192 0x0000016c __trampolines_end = .
No newline at end of file
193 *(.progmem*)
No newline at end of file
194 0x0000016c . = ALIGN (0x2)
No newline at end of file
195 *(.jumptables)
No newline at end of file
196 *(.jumptables*)
No newline at end of file
197 *(.lowtext)
No newline at end of file
198 *(.lowtext*)
No newline at end of file
199 0x0000016c __ctors_start = .
No newline at end of file
200 *(.ctors)
No newline at end of file
201 0x0000016c __ctors_end = .
No newline at end of file
202 0x0000016c __dtors_start = .
No newline at end of file
203 *(.dtors)
No newline at end of file
204 0x0000016c __dtors_end = .
No newline at end of file
205 SORT(*)(.ctors)
No newline at end of file
206 SORT(*)(.dtors)
No newline at end of file
207 *(.init0)
No newline at end of file
208 .init0 0x0000016c 0x0 C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/XMEGAD_DFP/1.0.29/gcc/dev/atxmega32d4/avrxmega2/crtatxmega32d4.o
No newline at end of file
209 0x0000016c __init
No newline at end of file
210 *(.init0)
No newline at end of file
211 *(.init1)
No newline at end of file
212 *(.init1)
No newline at end of file
213 *(.init2)
No newline at end of file
214 .init2 0x0000016c 0xc C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/XMEGAD_DFP/1.0.29/gcc/dev/atxmega32d4/avrxmega2/crtatxmega32d4.o
No newline at end of file
215 *(.init2)
No newline at end of file
216 *(.init3)
No newline at end of file
217 *(.init3)
No newline at end of file
218 *(.init4)
No newline at end of file
219 *(.init4)
No newline at end of file
220 *(.init5)
No newline at end of file
221 *(.init5)
No newline at end of file
222 *(.init6)
No newline at end of file
223 *(.init6)
No newline at end of file
224 *(.init7)
No newline at end of file
225 *(.init7)
No newline at end of file
226 *(.init8)
No newline at end of file
227 *(.init8)
No newline at end of file
228 *(.init9)
No newline at end of file
229 .init9 0x00000178 0x8 C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/XMEGAD_DFP/1.0.29/gcc/dev/atxmega32d4/avrxmega2/crtatxmega32d4.o
No newline at end of file
230 *(.init9)
No newline at end of file
231 *(.text)
No newline at end of file
232 .text 0x00000180 0x4 C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/XMEGAD_DFP/1.0.29/gcc/dev/atxmega32d4/avrxmega2/crtatxmega32d4.o
No newline at end of file
233 0x00000180 __vector_38
No newline at end of file
234 0x00000180 __vector_22
No newline at end of file
235 0x00000180 __vector_63
No newline at end of file
236 0x00000180 __vector_28
No newline at end of file
237 0x00000180 __vector_67
No newline at end of file
238 0x00000180 __vector_1
No newline at end of file
239 0x00000180 __vector_32
No newline at end of file
240 0x00000180 __vector_75
No newline at end of file
241 0x00000180 __vector_71
No newline at end of file
242 0x00000180 __vector_34
No newline at end of file
243 0x00000180 __vector_62
No newline at end of file
244 0x00000180 __vector_77
No newline at end of file
245 0x00000180 __vector_24
No newline at end of file
246 0x00000180 __vector_12
No newline at end of file
247 0x00000180 __vector_55
No newline at end of file
248 0x00000180 __vector_69
No newline at end of file
249 0x00000180 __vector_81
No newline at end of file
250 0x00000180 __vector_90
No newline at end of file
251 0x00000180 __vector_46
No newline at end of file
252 0x00000180 __bad_interrupt
No newline at end of file
253 0x00000180 __vector_72
No newline at end of file
254 0x00000180 __vector_6
No newline at end of file
255 0x00000180 __vector_31
No newline at end of file
256 0x00000180 __vector_78
No newline at end of file
257 0x00000180 __vector_74
No newline at end of file
258 0x00000180 __vector_39
No newline at end of file
259 0x00000180 __vector_3
No newline at end of file
260 0x00000180 __vector_23
No newline at end of file
261 0x00000180 __vector_68
No newline at end of file
262 0x00000180 __vector_30
No newline at end of file
263 0x00000180 __vector_73
No newline at end of file
264 0x00000180 __vector_45
No newline at end of file
265 0x00000180 __vector_25
No newline at end of file
266 0x00000180 __vector_61
No newline at end of file
267 0x00000180 __vector_11
No newline at end of file
268 0x00000180 __vector_54
No newline at end of file
269 0x00000180 __vector_13
No newline at end of file
270 0x00000180 __vector_17
No newline at end of file
271 0x00000180 __vector_19
No newline at end of file
272 0x00000180 __vector_56
No newline at end of file
273 0x00000180 __vector_7
No newline at end of file
274 0x00000180 __vector_49
No newline at end of file
275 0x00000180 __vector_41
No newline at end of file
276 0x00000180 __vector_86
No newline at end of file
277 0x00000180 __vector_88
No newline at end of file
278 0x00000180 __vector_43
No newline at end of file
279 0x00000180 __vector_27
No newline at end of file
280 0x00000180 __vector_5
No newline at end of file
281 0x00000180 __vector_33
No newline at end of file
282 0x00000180 __vector_76
No newline at end of file
283 0x00000180 __vector_47
No newline at end of file
284 0x00000180 __vector_52
No newline at end of file
285 0x00000180 __vector_37
No newline at end of file
286 0x00000180 __vector_89
No newline at end of file
287 0x00000180 __vector_4
No newline at end of file
288 0x00000180 __vector_44
No newline at end of file
289 0x00000180 __vector_82
No newline at end of file
290 0x00000180 __vector_51
No newline at end of file
291 0x00000180 __vector_9
No newline at end of file
292 0x00000180 __vector_21
No newline at end of file
293 0x00000180 __vector_15
No newline at end of file
294 0x00000180 __vector_66
No newline at end of file
295 0x00000180 __vector_36
No newline at end of file
296 0x00000180 __vector_79
No newline at end of file
297 0x00000180 __vector_58
No newline at end of file
298 0x00000180 __vector_70
No newline at end of file
299 0x00000180 __vector_83
No newline at end of file
300 0x00000180 __vector_29
No newline at end of file
301 0x00000180 __vector_60
No newline at end of file
302 0x00000180 __vector_40
No newline at end of file
303 0x00000180 __vector_85
No newline at end of file
304 0x00000180 __vector_8
No newline at end of file
305 0x00000180 __vector_26
No newline at end of file
306 0x00000180 __vector_48
No newline at end of file
307 0x00000180 __vector_80
No newline at end of file
308 0x00000180 __vector_14
No newline at end of file
309 0x00000180 __vector_84
No newline at end of file
310 0x00000180 __vector_57
No newline at end of file
311 0x00000180 __vector_53
No newline at end of file
312 0x00000180 __vector_10
No newline at end of file
313 0x00000180 __vector_50
No newline at end of file
314 0x00000180 __vector_16
No newline at end of file
315 0x00000180 __vector_59
No newline at end of file
316 0x00000180 __vector_18
No newline at end of file
317 0x00000180 __vector_20
No newline at end of file
318 0x00000180 __vector_42
No newline at end of file
319 0x00000180 __vector_87
No newline at end of file
320 0x00000180 __vector_65
No newline at end of file
321 0x00000184 . = ALIGN (0x2)
No newline at end of file
322 *(.text.*)
No newline at end of file
323 .text.test_adc
No newline at end of file
324 0x00000184 0x4a ADC_7176_2.o
No newline at end of file
325 0x00000184 test_adc
No newline at end of file
326 .text.adcport_read_data
No newline at end of file
327 0x000001ce 0x3a ADC_7176_2.o
No newline at end of file
328 0x000001ce adcport_read_data
No newline at end of file
329 .text.config_spiparm
No newline at end of file
330 0x00000208 0x8 commSPI_ADC.o
No newline at end of file
331 0x00000208 config_spiparm
No newline at end of file
332 .text.config_fpgaport
No newline at end of file
333 0x00000210 0x70 fpga_port.o
No newline at end of file
334 0x00000210 config_fpgaport
No newline at end of file
335 .text.habilitar_interrupciones_globales
No newline at end of file
336 0x00000280 0x4 fpga_port.o
No newline at end of file
337 0x00000280 habilitar_interrupciones_globales
No newline at end of file
338 .text.envio_nibble
No newline at end of file
339 0x00000284 0x32 fpga_port.o
No newline at end of file
340 0x00000284 envio_nibble
No newline at end of file
341 .text.envio_dato_adc
No newline at end of file
342 0x000002b6 0x26 fpga_port.o
No newline at end of file
343 0x000002b6 envio_dato_adc
No newline at end of file
344 .text.envio_datos_fpga
No newline at end of file
345 0x000002dc 0x4e fpga_port.o
No newline at end of file
346 0x000002dc envio_datos_fpga
No newline at end of file
347 .text.main 0x0000032a 0x30 main.o
No newline at end of file
348 0x0000032a main
No newline at end of file
349 .text.__vector_64
No newline at end of file
350 0x0000035a 0x4a main.o
No newline at end of file
351 0x0000035a __vector_64
No newline at end of file
352 .text.__vector_35
No newline at end of file
353 0x000003a4 0x3e main.o
No newline at end of file
354 0x000003a4 __vector_35
No newline at end of file
355 .text.__vector_2
No newline at end of file
356 0x000003e2 0x48 main.o
No newline at end of file
357 0x000003e2 __vector_2
No newline at end of file
358 .text.config_puertos
No newline at end of file
359 0x0000042a 0xec Ports.o
No newline at end of file
360 0x0000042a config_puertos
No newline at end of file
361 .text.config_sysclock
No newline at end of file
362 0x00000516 0x44 sys_clock.o
No newline at end of file
363 0x00000516 config_sysclock
No newline at end of file
364 0x0000055a . = ALIGN (0x2)
No newline at end of file
365 *(.fini9)
No newline at end of file
366 .fini9 0x0000055a 0x0 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avrxmega2\libgcc.a(_exit.o)
No newline at end of file
367 0x0000055a _exit
No newline at end of file
368 0x0000055a exit
No newline at end of file
369 *(.fini9)
No newline at end of file
370 *(.fini8)
No newline at end of file
371 *(.fini8)
No newline at end of file
372 *(.fini7)
No newline at end of file
373 *(.fini7)
No newline at end of file
374 *(.fini6)
No newline at end of file
375 *(.fini6)
No newline at end of file
376 *(.fini5)
No newline at end of file
377 *(.fini5)
No newline at end of file
378 *(.fini4)
No newline at end of file
379 *(.fini4)
No newline at end of file
380 *(.fini3)
No newline at end of file
381 *(.fini3)
No newline at end of file
382 *(.fini2)
No newline at end of file
383 *(.fini2)
No newline at end of file
384 *(.fini1)
No newline at end of file
385 *(.fini1)
No newline at end of file
386 *(.fini0)
No newline at end of file
387 .fini0 0x0000055a 0x4 c:/program files (x86)/atmel/studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/../lib/gcc/avr/4.9.2/avrxmega2\libgcc.a(_exit.o)
No newline at end of file
388 *(.fini0)
No newline at end of file
389 0x0000055e _etext = .
No newline at end of file
390
No newline at end of file
391 .data 0x00802000 0x0 load address 0x0000055e
No newline at end of file
392 0x00802000 PROVIDE (__data_start, .)
No newline at end of file
393 *(.data)
No newline at end of file
394 *(.data*)
No newline at end of file
395 *(.rodata)
No newline at end of file
396 *(.rodata*)
No newline at end of file
397 *(.gnu.linkonce.d*)
No newline at end of file
398 0x00802000 . = ALIGN (0x2)
No newline at end of file
399 0x00802000 _edata = .
No newline at end of file
400 0x00802000 PROVIDE (__data_end, .)
No newline at end of file
401
No newline at end of file
402 .bss 0x00802000 0x0
No newline at end of file
403 0x00802000 PROVIDE (__bss_start, .)
No newline at end of file
404 *(.bss)
No newline at end of file
405 *(.bss*)
No newline at end of file
406 *(COMMON)
No newline at end of file
407 0x00802000 PROVIDE (__bss_end, .)
No newline at end of file
408 0x0000055e __data_load_start = LOADADDR (.data)
No newline at end of file
409 0x0000055e __data_load_end = (__data_load_start + SIZEOF (.data))
No newline at end of file
410
No newline at end of file
411 .noinit 0x00802000 0x0
No newline at end of file
412 0x00802000 PROVIDE (__noinit_start, .)
No newline at end of file
413 *(.noinit*)
No newline at end of file
414 0x00802000 PROVIDE (__noinit_end, .)
No newline at end of file
415 0x00802000 _end = .
No newline at end of file
416 0x00802000 PROVIDE (__heap_start, .)
No newline at end of file
417
No newline at end of file
418 .eeprom 0x00810000 0x0
No newline at end of file
419 *(.eeprom*)
No newline at end of file
420 0x00810000 __eeprom_end = .
No newline at end of file
421
No newline at end of file
422 .fuse
No newline at end of file
423 *(.fuse)
No newline at end of file
424 *(.lfuse)
No newline at end of file
425 *(.hfuse)
No newline at end of file
426 *(.efuse)
No newline at end of file
427
No newline at end of file
428 .lock
No newline at end of file
429 *(.lock*)
No newline at end of file
430
No newline at end of file
431 .signature
No newline at end of file
432 *(.signature*)
No newline at end of file
433
No newline at end of file
434 .user_signatures
No newline at end of file
435 *(.user_signatures*)
No newline at end of file
436
No newline at end of file
437 .stab
No newline at end of file
438 *(.stab)
No newline at end of file
439
No newline at end of file
440 .stabstr
No newline at end of file
441 *(.stabstr)
No newline at end of file
442
No newline at end of file
443 .stab.excl
No newline at end of file
444 *(.stab.excl)
No newline at end of file
445
No newline at end of file
446 .stab.exclstr
No newline at end of file
447 *(.stab.exclstr)
No newline at end of file
448
No newline at end of file
449 .stab.index
No newline at end of file
450 *(.stab.index)
No newline at end of file
451
No newline at end of file
452 .stab.indexstr
No newline at end of file
453 *(.stab.indexstr)
No newline at end of file
454
No newline at end of file
455 .comment 0x00000000 0x30
No newline at end of file
456 *(.comment)
No newline at end of file
457 .comment 0x00000000 0x30 ADC_7176_2.o
No newline at end of file
458 0x31 (size before relaxing)
No newline at end of file
459 .comment 0x00000030 0x31 commSPI_ADC.o
No newline at end of file
460 .comment 0x00000030 0x31 fpga_port.o
No newline at end of file
461 .comment 0x00000030 0x31 main.o
No newline at end of file
462 .comment 0x00000030 0x31 Ports.o
No newline at end of file
463 .comment 0x00000030 0x31 sys_clock.o
No newline at end of file
464
No newline at end of file
465 .note.gnu.avr.deviceinfo
No newline at end of file
466 0x00000000 0x40
No newline at end of file
467 .note.gnu.avr.deviceinfo
No newline at end of file
468 0x00000000 0x40 C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/XMEGAD_DFP/1.0.29/gcc/dev/atxmega32d4/avrxmega2/crtatxmega32d4.o
No newline at end of file
469
No newline at end of file
470 .note.gnu.build-id
No newline at end of file
471 *(.note.gnu.build-id)
No newline at end of file
472
No newline at end of file
473 .debug
No newline at end of file
474 *(.debug)
No newline at end of file
475
No newline at end of file
476 .line
No newline at end of file
477 *(.line)
No newline at end of file
478
No newline at end of file
479 .debug_srcinfo
No newline at end of file
480 *(.debug_srcinfo)
No newline at end of file
481
No newline at end of file
482 .debug_sfnames
No newline at end of file
483 *(.debug_sfnames)
No newline at end of file
484
No newline at end of file
485 .debug_aranges 0x00000000 0x138
No newline at end of file
486 *(.debug_aranges)
No newline at end of file
487 .debug_aranges
No newline at end of file
488 0x00000000 0x50 ADC_7176_2.o
No newline at end of file
489 .debug_aranges
No newline at end of file
490 0x00000050 0x20 commSPI_ADC.o
No newline at end of file
491 .debug_aranges
No newline at end of file
492 0x00000070 0x50 fpga_port.o
No newline at end of file
493 .debug_aranges
No newline at end of file
494 0x000000c0 0x38 main.o
No newline at end of file
495 .debug_aranges
No newline at end of file
496 0x000000f8 0x20 Ports.o
No newline at end of file
497 .debug_aranges
No newline at end of file
498 0x00000118 0x20 sys_clock.o
No newline at end of file
499
No newline at end of file
500 .debug_pubnames
No newline at end of file
501 *(.debug_pubnames)
No newline at end of file
502
No newline at end of file
503 .debug_info 0x00000000 0x14b5
No newline at end of file
504 *(.debug_info .gnu.linkonce.wi.*)
No newline at end of file
505 .debug_info 0x00000000 0x53c ADC_7176_2.o
No newline at end of file
506 .debug_info 0x0000053c 0xf0 commSPI_ADC.o
No newline at end of file
507 .debug_info 0x0000062c 0x578 fpga_port.o
No newline at end of file
508 .debug_info 0x00000ba4 0x413 main.o
No newline at end of file
509 .debug_info 0x00000fb7 0x2ab Ports.o
No newline at end of file
510 .debug_info 0x00001262 0x253 sys_clock.o
No newline at end of file
511
No newline at end of file
512 .debug_abbrev 0x00000000 0x644
No newline at end of file
513 *(.debug_abbrev)
No newline at end of file
514 .debug_abbrev 0x00000000 0x1b6 ADC_7176_2.o
No newline at end of file
515 .debug_abbrev 0x000001b6 0x83 commSPI_ADC.o
No newline at end of file
516 .debug_abbrev 0x00000239 0x19b fpga_port.o
No newline at end of file
517 .debug_abbrev 0x000003d4 0x10d main.o
No newline at end of file
518 .debug_abbrev 0x000004e1 0xaa Ports.o
No newline at end of file
519 .debug_abbrev 0x0000058b 0xb9 sys_clock.o
No newline at end of file
520
No newline at end of file
521 .debug_line 0x00000000 0x827
No newline at end of file
522 *(.debug_line .debug_line.* .debug_line_end)
No newline at end of file
523 .debug_line 0x00000000 0x1c9 ADC_7176_2.o
No newline at end of file
524 .debug_line 0x000001c9 0x101 commSPI_ADC.o
No newline at end of file
525 .debug_line 0x000002ca 0x19c fpga_port.o
No newline at end of file
526 .debug_line 0x00000466 0x185 main.o
No newline at end of file
527 .debug_line 0x000005eb 0x12c Ports.o
No newline at end of file
528 .debug_line 0x00000717 0x110 sys_clock.o
No newline at end of file
529
No newline at end of file
530 .debug_frame 0x00000000 0x278
No newline at end of file
531 *(.debug_frame)
No newline at end of file
532 .debug_frame 0x00000000 0x84 ADC_7176_2.o
No newline at end of file
533 .debug_frame 0x00000084 0x24 commSPI_ADC.o
No newline at end of file
534 .debug_frame 0x000000a8 0xb4 fpga_port.o
No newline at end of file
535 .debug_frame 0x0000015c 0xd4 main.o
No newline at end of file
536 .debug_frame 0x00000230 0x24 Ports.o
No newline at end of file
537 .debug_frame 0x00000254 0x24 sys_clock.o
No newline at end of file
538
No newline at end of file
539 .debug_str 0x00000000 0x7d6
No newline at end of file
540 *(.debug_str)
No newline at end of file
541 .debug_str 0x00000000 0x2c0 ADC_7176_2.o
No newline at end of file
542 0x303 (size before relaxing)
No newline at end of file
543 .debug_str 0x000002c0 0x22 commSPI_ADC.o
No newline at end of file
544 0x1cc (size before relaxing)
No newline at end of file
545 .debug_str 0x000002e2 0x34d fpga_port.o
No newline at end of file
546 0x5e0 (size before relaxing)
No newline at end of file
547 .debug_str 0x0000062f 0x53 main.o
No newline at end of file
548 0x3c1 (size before relaxing)
No newline at end of file
549 .debug_str 0x00000682 0xd Ports.o
No newline at end of file
550 0x3f5 (size before relaxing)
No newline at end of file
551 .debug_str 0x0000068f 0x147 sys_clock.o
No newline at end of file
552 0x2ff (size before relaxing)
No newline at end of file
553
No newline at end of file
554 .debug_loc 0x00000000 0x3d0
No newline at end of file
555 *(.debug_loc)
No newline at end of file
556 .debug_loc 0x00000000 0xfc ADC_7176_2.o
No newline at end of file
557 .debug_loc 0x000000fc 0x15d fpga_port.o
No newline at end of file
558 .debug_loc 0x00000259 0x177 main.o
No newline at end of file
559
No newline at end of file
560 .debug_macinfo
No newline at end of file
561 *(.debug_macinfo)
No newline at end of file
562
No newline at end of file
563 .debug_weaknames
No newline at end of file
564 *(.debug_weaknames)
No newline at end of file
565
No newline at end of file
566 .debug_funcnames
No newline at end of file
567 *(.debug_funcnames)
No newline at end of file
568
No newline at end of file
569 .debug_typenames
No newline at end of file
570 *(.debug_typenames)
No newline at end of file
571
No newline at end of file
572 .debug_varnames
No newline at end of file
573 *(.debug_varnames)
No newline at end of file
574
No newline at end of file
575 .debug_pubtypes
No newline at end of file
576 *(.debug_pubtypes)
No newline at end of file
577
No newline at end of file
578 .debug_ranges 0x00000000 0xd8
No newline at end of file
579 *(.debug_ranges)
No newline at end of file
580 .debug_ranges 0x00000000 0x40 ADC_7176_2.o
No newline at end of file
581 .debug_ranges 0x00000040 0x10 commSPI_ADC.o
No newline at end of file
582 .debug_ranges 0x00000050 0x40 fpga_port.o
No newline at end of file
583 .debug_ranges 0x00000090 0x28 main.o
No newline at end of file
584 .debug_ranges 0x000000b8 0x10 Ports.o
No newline at end of file
585 .debug_ranges 0x000000c8 0x10 sys_clock.o
No newline at end of file
586
No newline at end of file
587 .debug_macro
No newline at end of file
588 *(.debug_macro)
No newline at end of file
589 OUTPUT(ADCSPI_ver01.elf elf32-avr)
No newline at end of file
590 LOAD linker stubs No newline at end of file
@@ -0,0 +1,88
1 S01400004144435350495F76657230312E737265634F
No newline at end of file
2 S11300000C94B6000C94C0000C94F1010C94C00044
No newline at end of file
3 S11300100C94C0000C94C0000C94C0000C94C0005C
No newline at end of file
4 S11300200C94C0000C94C0000C94C0000C94C0004C
No newline at end of file
5 S11300300C94C0000C94C0000C94C0000C94C0003C
No newline at end of file
6 S11300400C94C0000C94C0000C94C0000C94C0002C
No newline at end of file
7 S11300500C94C0000C94C0000C94C0000C94C0001C
No newline at end of file
8 S11300600C94C0000C94C0000C94C0000C94C0000C
No newline at end of file
9 S11300700C94C0000C94C0000C94C0000C94C000FC
No newline at end of file
10 S11300800C94C0000C94C0000C94C0000C94D201D9
No newline at end of file
11 S11300900C94C0000C94C0000C94C0000C94C000DC
No newline at end of file
12 S11300A00C94C0000C94C0000C94C0000C94C000CC
No newline at end of file
13 S11300B00C94C0000C94C0000C94C0000C94C000BC
No newline at end of file
14 S11300C00C94C0000C94C0000C94C0000C94C000AC
No newline at end of file
15 S11300D00C94C0000C94C0000C94C0000C94C0009C
No newline at end of file
16 S11300E00C94C0000C94C0000C94C0000C94C0008C
No newline at end of file
17 S11300F00C94C0000C94C0000C94C0000C94C0007C
No newline at end of file
18 S11301000C94AD010C94C0000C94C0000C94C0007D
No newline at end of file
19 S11301100C94C0000C94C0000C94C0000C94C0005B
No newline at end of file
20 S11301200C94C0000C94C0000C94C0000C94C0004B
No newline at end of file
21 S11301300C94C0000C94C0000C94C0000C94C0003B
No newline at end of file
22 S11301400C94C0000C94C0000C94C0000C94C0002B
No newline at end of file
23 S11301500C94C0000C94C0000C94C0000C94C0001B
No newline at end of file
24 S11301600C94C0000C94C0000C94C00011241FBE59
No newline at end of file
25 S1130170CFEFCDBFDFE2DEBF0E9495010C94AD024C
No newline at end of file
26 S11301800C94000080E18093460687E48093C308C2
No newline at end of file
27 S1130190E0ECF8E082818823ECF7E0ECF8E083817E
No newline at end of file
28 S11301A0138282818823ECF7E0ECF8E0238130E0CD
No newline at end of file
29 S11301B0322F2227138292819923ECF78091C3086E
No newline at end of file
30 S11301C090E190934506A901482BCA0108959C012A
No newline at end of file
31 S11301D084E48093C308E0ECF8E092819923ECF77F
No newline at end of file
32 S11301E08091C3081616170674F4D901A60FB71F19
No newline at end of file
33 S11301F0E0ECF8E0138292819923ECF793819E93CB
No newline at end of file
34 S1130200A217B307B9F708958CED8093C008089539
No newline at end of file
35 S1130210CF93DF93E0E6F6E022E0228380E1818B56
No newline at end of file
36 S113022094E0918338E1328B958338E73183138AE4
No newline at end of file
37 S11302303583A0E2B6E012969C93129752968C9363
No newline at end of file
38 S11302405297C0E0D6E081E089838E838185836004
No newline at end of file
39 S1130250818722878189887F818B8185837F8860DC
No newline at end of file
40 S113026019968C9319971B969C931B9752968C9175
No newline at end of file
41 S11302705297887F816052968C93DF91CF91089535
No newline at end of file
42 S113028078940895E0E6F6E024E026839481382FFC
No newline at end of file
43 S1130290307F330F330F330F9873932B948325835D
No newline at end of file
44 S11302A0268394818F70880F880F880F9873892B09
No newline at end of file
45 S11302B08483258308950F931F93CF93DF93EC01D9
No newline at end of file
46 S11302C08C010D5F1F4F89910E944201C017D10715
No newline at end of file
47 S11302D0D1F7DF91CF911F910F910895CF93DF93C1
No newline at end of file
48 S11302E0CDB7DEB72697CDBFDEBF63E070E0CE01A9
No newline at end of file
49 S11302F001960E94E70089818C838A818D838B819A
No newline at end of file
50 S11303008E8363E070E0CE0101960E94E700CE0187
No newline at end of file
51 S113031004960E945B01CE0101960E945B01269621
No newline at end of file
52 S1130320CDBFDEBFDF91CF9108950E9415020E94D8
No newline at end of file
53 S11303308B020E9404010E94080184E08093A200C1
No newline at end of file
54 S11303400E94400100E616E0C0E60E94C200843923
No newline at end of file
55 S11303509C40D9F7F801C583F8CF1F920F920FB6CE
No newline at end of file
56 S11303600F9211248F93EF93FF938091680681FF7E
No newline at end of file
57 S113037009C0E0EAF0E082818260828381E08093B8
No newline at end of file
58 S1130380050608C0E0EAF0E082818D7F828381E087
No newline at end of file
59 S113039080930606FF91EF918F910F900FBE0F90FF
No newline at end of file
60 S11303A01F9018951F920F920FB60F9211248F93DE
No newline at end of file
61 S11303B0EF93FF938091280682FF06C0E0EAF0E005
No newline at end of file
62 S11303C082818160828305C0E0EAF0E082818E7FD1
No newline at end of file
63 S11303D08283FF91EF918F910F900FBE0F901F902A
No newline at end of file
64 S11303E018951F920F920FB60F9211242F933F93DB
No newline at end of file
65 S11303F04F935F936F937F938F939F93AF93BF9329
No newline at end of file
66 S1130400EF93FF930E946E01FF91EF91BF91AF9123
No newline at end of file
67 S11304109F918F917F916F915F914F913F912F9118
No newline at end of file
68 S11304200F900FBE0F901F901895E0E0F6E08EEF4E
No newline at end of file
69 S1130430828388E1878B868B858B848B838B828BED
No newline at end of file
70 S1130440818B21E0218398E3908B2683E0E2F6E020
No newline at end of file
71 S11304503FE03283838B828B818B808BE0E4F6E0F8
No newline at end of file
72 S11304602FE42283868B838B828B818B808B20EB82
No newline at end of file
73 S11304702183158A178A148A20E9258320E226839A
No newline at end of file
74 S1130480A0E6B6E027E812962C93129757968C9321
No newline at end of file
75 S1130490579750968C93509720E152962C935297ED
No newline at end of file
76 S11304A051962C93519748E711964C931197569671
No newline at end of file
77 S11304B09C93569755969C93559754969C93549712
No newline at end of file
78 S11304C053969C93539716964C93A0E8B6E01296D5
No newline at end of file
79 S11304D03C93129753968C93539752968C935297BE
No newline at end of file
80 S11304E051968C93519750968C93A0EEB7E093E07D
No newline at end of file
81 S11304F012969C93129751962C93519750968C93E5
No newline at end of file
82 S113050080E4828781858C7F816081878689887F6A
No newline at end of file
83 S11305108260868B0895E0E5F0E0808186608083C8
No newline at end of file
84 S1130520818181FFFDCFE0E5F0E0818182FFFDCF95
No newline at end of file
85 S113053028ED24BFE0E4F0E080818160808391E0D5
No newline at end of file
86 S113054090936000E0E5F0E08681168280818E7FE2
No newline at end of file
87 S1110550808324BF909353000895F894FFCF46
No newline at end of file
88 S9030000FC No newline at end of file
@@ -0,0 +1,44
1 ADC_7176_2.d ADC_7176_2.o: .././ADC_7176_2.c \
No newline at end of file
2 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h \
No newline at end of file
3 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\sfr_defs.h \
No newline at end of file
4 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\inttypes.h \
No newline at end of file
5 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\lib\gcc\avr\4.9.2\include\stdint.h \
No newline at end of file
6 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\stdint.h \
No newline at end of file
7 C:\Program\ Files\ (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAD_DFP\1.0.29\include/avr/iox32d4.h \
No newline at end of file
8 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\portpins.h \
No newline at end of file
9 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\common.h \
No newline at end of file
10 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\version.h \
No newline at end of file
11 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\xmega.h \
No newline at end of file
12 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\fuse.h \
No newline at end of file
13 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\lock.h \
No newline at end of file
14 .././ADC_7176_2.h .././Ports.h .././commSPI_ADC.h
No newline at end of file
15
No newline at end of file
16 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h:
No newline at end of file
17
No newline at end of file
18 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\sfr_defs.h:
No newline at end of file
19
No newline at end of file
20 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\inttypes.h:
No newline at end of file
21
No newline at end of file
22 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\lib\gcc\avr\4.9.2\include\stdint.h:
No newline at end of file
23
No newline at end of file
24 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\stdint.h:
No newline at end of file
25
No newline at end of file
26 C:\Program\ Files\ (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAD_DFP\1.0.29\include/avr/iox32d4.h:
No newline at end of file
27
No newline at end of file
28 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\portpins.h:
No newline at end of file
29
No newline at end of file
30 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\common.h:
No newline at end of file
31
No newline at end of file
32 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\version.h:
No newline at end of file
33
No newline at end of file
34 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\xmega.h:
No newline at end of file
35
No newline at end of file
36 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\fuse.h:
No newline at end of file
37
No newline at end of file
38 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\lock.h:
No newline at end of file
39
No newline at end of file
40 .././ADC_7176_2.h:
No newline at end of file
41
No newline at end of file
42 .././Ports.h:
No newline at end of file
43
No newline at end of file
44 .././commSPI_ADC.h: No newline at end of file
@@ -0,0 +1,164
1 ################################################################################
No newline at end of file
2 # Automatically-generated file. Do not edit!
No newline at end of file
3 ################################################################################
No newline at end of file
4
No newline at end of file
5 SHELL := cmd.exe
No newline at end of file
6 RM := rm -rf
No newline at end of file
7
No newline at end of file
8 USER_OBJS :=
No newline at end of file
9
No newline at end of file
10 LIBS :=
No newline at end of file
11 PROJ :=
No newline at end of file
12
No newline at end of file
13 O_SRCS :=
No newline at end of file
14 C_SRCS :=
No newline at end of file
15 S_SRCS :=
No newline at end of file
16 S_UPPER_SRCS :=
No newline at end of file
17 OBJ_SRCS :=
No newline at end of file
18 ASM_SRCS :=
No newline at end of file
19 PREPROCESSING_SRCS :=
No newline at end of file
20 OBJS :=
No newline at end of file
21 OBJS_AS_ARGS :=
No newline at end of file
22 C_DEPS :=
No newline at end of file
23 C_DEPS_AS_ARGS :=
No newline at end of file
24 EXECUTABLES :=
No newline at end of file
25 OUTPUT_FILE_PATH :=
No newline at end of file
26 OUTPUT_FILE_PATH_AS_ARGS :=
No newline at end of file
27 AVR_APP_PATH :=$$$AVR_APP_PATH$$$
No newline at end of file
28 QUOTE := "
No newline at end of file
29 ADDITIONAL_DEPENDENCIES:=
No newline at end of file
30 OUTPUT_FILE_DEP:=
No newline at end of file
31 LIB_DEP:=
No newline at end of file
32 LINKER_SCRIPT_DEP:=
No newline at end of file
33
No newline at end of file
34 # Every subdirectory with source files must be described here
No newline at end of file
35 SUBDIRS :=
No newline at end of file
36
No newline at end of file
37
No newline at end of file
38 # Add inputs and outputs from these tool invocations to the build variables
No newline at end of file
39 C_SRCS += \
No newline at end of file
40 ../ADC_7176_2.c \
No newline at end of file
41 ../commSPI_ADC.c \
No newline at end of file
42 ../fpga_port.c \
No newline at end of file
43 ../main.c \
No newline at end of file
44 ../Ports.c \
No newline at end of file
45 ../sys_clock.c
No newline at end of file
46
No newline at end of file
47
No newline at end of file
48 PREPROCESSING_SRCS +=
No newline at end of file
49
No newline at end of file
50
No newline at end of file
51 ASM_SRCS +=
No newline at end of file
52
No newline at end of file
53
No newline at end of file
54 OBJS += \
No newline at end of file
55 ADC_7176_2.o \
No newline at end of file
56 commSPI_ADC.o \
No newline at end of file
57 fpga_port.o \
No newline at end of file
58 main.o \
No newline at end of file
59 Ports.o \
No newline at end of file
60 sys_clock.o
No newline at end of file
61
No newline at end of file
62 OBJS_AS_ARGS += \
No newline at end of file
63 ADC_7176_2.o \
No newline at end of file
64 commSPI_ADC.o \
No newline at end of file
65 fpga_port.o \
No newline at end of file
66 main.o \
No newline at end of file
67 Ports.o \
No newline at end of file
68 sys_clock.o
No newline at end of file
69
No newline at end of file
70 C_DEPS += \
No newline at end of file
71 ADC_7176_2.d \
No newline at end of file
72 commSPI_ADC.d \
No newline at end of file
73 fpga_port.d \
No newline at end of file
74 main.d \
No newline at end of file
75 Ports.d \
No newline at end of file
76 sys_clock.d
No newline at end of file
77
No newline at end of file
78 C_DEPS_AS_ARGS += \
No newline at end of file
79 ADC_7176_2.d \
No newline at end of file
80 commSPI_ADC.d \
No newline at end of file
81 fpga_port.d \
No newline at end of file
82 main.d \
No newline at end of file
83 Ports.d \
No newline at end of file
84 sys_clock.d
No newline at end of file
85
No newline at end of file
86 OUTPUT_FILE_PATH +=ADCSPI_ver01.elf
No newline at end of file
87
No newline at end of file
88 OUTPUT_FILE_PATH_AS_ARGS +=ADCSPI_ver01.elf
No newline at end of file
89
No newline at end of file
90 ADDITIONAL_DEPENDENCIES:=
No newline at end of file
91
No newline at end of file
92 OUTPUT_FILE_DEP:= ./makedep.mk
No newline at end of file
93
No newline at end of file
94 LIB_DEP+=
No newline at end of file
95
No newline at end of file
96 LINKER_SCRIPT_DEP+=
No newline at end of file
97
No newline at end of file
98
No newline at end of file
99 # AVR32/GNU C Compiler
No newline at end of file
100
No newline at end of file
101
No newline at end of file
102
No newline at end of file
103
No newline at end of file
104
No newline at end of file
105
No newline at end of file
106
No newline at end of file
107
No newline at end of file
108
No newline at end of file
109
No newline at end of file
110
No newline at end of file
111
No newline at end of file
112
No newline at end of file
113 ./%.o: .././%.c
No newline at end of file
114 @echo Building file: $<
No newline at end of file
115 @echo Invoking: AVR/GNU C Compiler : 4.9.2
No newline at end of file
116 $(QUOTE)C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe$(QUOTE) -x c -funsigned-char -funsigned-bitfields -DDEBUG -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAD_DFP\1.0.29\include" -O1 -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -g2 -Wall -mmcu=atxmega32d4 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAD_DFP\1.0.29\gcc\dev\atxmega32d4" -c -std=gnu99 -MD -MP -MF "$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -MT"$(@:%.o=%.o)" -o "$@" "$<"
No newline at end of file
117 @echo Finished building: $<
No newline at end of file
118
No newline at end of file
119
No newline at end of file
120
No newline at end of file
121
No newline at end of file
122 # AVR32/GNU Preprocessing Assembler
No newline at end of file
123
No newline at end of file
124
No newline at end of file
125
No newline at end of file
126 # AVR32/GNU Assembler
No newline at end of file
127
No newline at end of file
128
No newline at end of file
129
No newline at end of file
130
No newline at end of file
131 ifneq ($(MAKECMDGOALS),clean)
No newline at end of file
132 ifneq ($(strip $(C_DEPS)),)
No newline at end of file
133 -include $(C_DEPS)
No newline at end of file
134 endif
No newline at end of file
135 endif
No newline at end of file
136
No newline at end of file
137 # Add inputs and outputs from these tool invocations to the build variables
No newline at end of file
138
No newline at end of file
139 # All Target
No newline at end of file
140 all: $(OUTPUT_FILE_PATH) $(ADDITIONAL_DEPENDENCIES)
No newline at end of file
141
No newline at end of file
142 $(OUTPUT_FILE_PATH): $(OBJS) $(USER_OBJS) $(OUTPUT_FILE_DEP) $(LIB_DEP) $(LINKER_SCRIPT_DEP)
No newline at end of file
143 @echo Building target: $@
No newline at end of file
144 @echo Invoking: AVR/GNU Linker : 4.9.2
No newline at end of file
145 $(QUOTE)C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-gcc.exe$(QUOTE) -o$(OUTPUT_FILE_PATH_AS_ARGS) $(OBJS_AS_ARGS) $(USER_OBJS) $(LIBS) -Wl,-Map="ADCSPI_ver01.map" -Wl,--start-group -Wl,-lm -Wl,--end-group -Wl,--gc-sections -mmcu=atxmega32d4 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAD_DFP\1.0.29\gcc\dev\atxmega32d4"
No newline at end of file
146 @echo Finished building target: $@
No newline at end of file
147 "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objcopy.exe" -O ihex -R .eeprom -R .fuse -R .lock -R .signature -R .user_signatures "ADCSPI_ver01.elf" "ADCSPI_ver01.hex"
No newline at end of file
148 "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objcopy.exe" -j .eeprom --set-section-flags=.eeprom=alloc,load --change-section-lma .eeprom=0 --no-change-warnings -O ihex "ADCSPI_ver01.elf" "ADCSPI_ver01.eep" || exit 0
No newline at end of file
149 "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objdump.exe" -h -S "ADCSPI_ver01.elf" > "ADCSPI_ver01.lss"
No newline at end of file
150 "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-objcopy.exe" -O srec -R .eeprom -R .fuse -R .lock -R .signature -R .user_signatures "ADCSPI_ver01.elf" "ADCSPI_ver01.srec"
No newline at end of file
151 "C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-size.exe" "ADCSPI_ver01.elf"
No newline at end of file
152
No newline at end of file
153
No newline at end of file
154
No newline at end of file
155
No newline at end of file
156
No newline at end of file
157
No newline at end of file
158
No newline at end of file
159 # Other Targets
No newline at end of file
160 clean:
No newline at end of file
161 -$(RM) $(OBJS_AS_ARGS) $(EXECUTABLES)
No newline at end of file
162 -$(RM) $(C_DEPS_AS_ARGS)
No newline at end of file
163 rm -rf "ADCSPI_ver01.elf" "ADCSPI_ver01.a" "ADCSPI_ver01.hex" "ADCSPI_ver01.lss" "ADCSPI_ver01.eep" "ADCSPI_ver01.map" "ADCSPI_ver01.srec" "ADCSPI_ver01.usersignatures"
No newline at end of file
164 No newline at end of file
@@ -0,0 +1,42
1 Ports.d Ports.o: .././Ports.c \
No newline at end of file
2 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h \
No newline at end of file
3 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\sfr_defs.h \
No newline at end of file
4 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\inttypes.h \
No newline at end of file
5 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\lib\gcc\avr\4.9.2\include\stdint.h \
No newline at end of file
6 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\stdint.h \
No newline at end of file
7 C:\Program\ Files\ (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAD_DFP\1.0.29\include/avr/iox32d4.h \
No newline at end of file
8 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\portpins.h \
No newline at end of file
9 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\common.h \
No newline at end of file
10 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\version.h \
No newline at end of file
11 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\xmega.h \
No newline at end of file
12 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\fuse.h \
No newline at end of file
13 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\lock.h \
No newline at end of file
14 .././Ports.h .././commSPI_ADC.h
No newline at end of file
15
No newline at end of file
16 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h:
No newline at end of file
17
No newline at end of file
18 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\sfr_defs.h:
No newline at end of file
19
No newline at end of file
20 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\inttypes.h:
No newline at end of file
21
No newline at end of file
22 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\lib\gcc\avr\4.9.2\include\stdint.h:
No newline at end of file
23
No newline at end of file
24 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\stdint.h:
No newline at end of file
25
No newline at end of file
26 C:\Program\ Files\ (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAD_DFP\1.0.29\include/avr/iox32d4.h:
No newline at end of file
27
No newline at end of file
28 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\portpins.h:
No newline at end of file
29
No newline at end of file
30 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\common.h:
No newline at end of file
31
No newline at end of file
32 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\version.h:
No newline at end of file
33
No newline at end of file
34 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\xmega.h:
No newline at end of file
35
No newline at end of file
36 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\fuse.h:
No newline at end of file
37
No newline at end of file
38 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\lock.h:
No newline at end of file
39
No newline at end of file
40 .././Ports.h:
No newline at end of file
41
No newline at end of file
42 .././commSPI_ADC.h: No newline at end of file
@@ -0,0 +1,42
1 commSPI_ADC.d commSPI_ADC.o: .././commSPI_ADC.c \
No newline at end of file
2 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h \
No newline at end of file
3 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\sfr_defs.h \
No newline at end of file
4 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\inttypes.h \
No newline at end of file
5 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\lib\gcc\avr\4.9.2\include\stdint.h \
No newline at end of file
6 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\stdint.h \
No newline at end of file
7 C:\Program\ Files\ (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAD_DFP\1.0.29\include/avr/iox32d4.h \
No newline at end of file
8 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\portpins.h \
No newline at end of file
9 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\common.h \
No newline at end of file
10 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\version.h \
No newline at end of file
11 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\xmega.h \
No newline at end of file
12 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\fuse.h \
No newline at end of file
13 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\lock.h \
No newline at end of file
14 .././commSPI_ADC.h .././Ports.h
No newline at end of file
15
No newline at end of file
16 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h:
No newline at end of file
17
No newline at end of file
18 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\sfr_defs.h:
No newline at end of file
19
No newline at end of file
20 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\inttypes.h:
No newline at end of file
21
No newline at end of file
22 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\lib\gcc\avr\4.9.2\include\stdint.h:
No newline at end of file
23
No newline at end of file
24 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\stdint.h:
No newline at end of file
25
No newline at end of file
26 C:\Program\ Files\ (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAD_DFP\1.0.29\include/avr/iox32d4.h:
No newline at end of file
27
No newline at end of file
28 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\portpins.h:
No newline at end of file
29
No newline at end of file
30 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\common.h:
No newline at end of file
31
No newline at end of file
32 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\version.h:
No newline at end of file
33
No newline at end of file
34 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\xmega.h:
No newline at end of file
35
No newline at end of file
36 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\fuse.h:
No newline at end of file
37
No newline at end of file
38 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\lock.h:
No newline at end of file
39
No newline at end of file
40 .././commSPI_ADC.h:
No newline at end of file
41
No newline at end of file
42 .././Ports.h: No newline at end of file
@@ -0,0 +1,50
1 fpga_port.d fpga_port.o: .././fpga_port.c \
No newline at end of file
2 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h \
No newline at end of file
3 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\sfr_defs.h \
No newline at end of file
4 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\inttypes.h \
No newline at end of file
5 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\lib\gcc\avr\4.9.2\include\stdint.h \
No newline at end of file
6 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\stdint.h \
No newline at end of file
7 C:\Program\ Files\ (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAD_DFP\1.0.29\include/avr/iox32d4.h \
No newline at end of file
8 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\portpins.h \
No newline at end of file
9 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\common.h \
No newline at end of file
10 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\version.h \
No newline at end of file
11 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\xmega.h \
No newline at end of file
12 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\fuse.h \
No newline at end of file
13 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\lock.h \
No newline at end of file
14 .././fpga_port.h \
No newline at end of file
15 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\interrupt.h \
No newline at end of file
16 .././ADC_7176_2.h .././Ports.h .././commSPI_ADC.h
No newline at end of file
17
No newline at end of file
18 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h:
No newline at end of file
19
No newline at end of file
20 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\sfr_defs.h:
No newline at end of file
21
No newline at end of file
22 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\inttypes.h:
No newline at end of file
23
No newline at end of file
24 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\lib\gcc\avr\4.9.2\include\stdint.h:
No newline at end of file
25
No newline at end of file
26 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\stdint.h:
No newline at end of file
27
No newline at end of file
28 C:\Program\ Files\ (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAD_DFP\1.0.29\include/avr/iox32d4.h:
No newline at end of file
29
No newline at end of file
30 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\portpins.h:
No newline at end of file
31
No newline at end of file
32 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\common.h:
No newline at end of file
33
No newline at end of file
34 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\version.h:
No newline at end of file
35
No newline at end of file
36 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\xmega.h:
No newline at end of file
37
No newline at end of file
38 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\fuse.h:
No newline at end of file
39
No newline at end of file
40 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\lock.h:
No newline at end of file
41
No newline at end of file
42 .././fpga_port.h:
No newline at end of file
43
No newline at end of file
44 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\interrupt.h:
No newline at end of file
45
No newline at end of file
46 .././ADC_7176_2.h:
No newline at end of file
47
No newline at end of file
48 .././Ports.h:
No newline at end of file
49
No newline at end of file
50 .././commSPI_ADC.h: No newline at end of file
@@ -0,0 +1,52
1 main.d main.o: .././main.c \
No newline at end of file
2 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h \
No newline at end of file
3 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\sfr_defs.h \
No newline at end of file
4 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\inttypes.h \
No newline at end of file
5 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\lib\gcc\avr\4.9.2\include\stdint.h \
No newline at end of file
6 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\stdint.h \
No newline at end of file
7 C:\Program\ Files\ (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAD_DFP\1.0.29\include/avr/iox32d4.h \
No newline at end of file
8 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\portpins.h \
No newline at end of file
9 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\common.h \
No newline at end of file
10 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\version.h \
No newline at end of file
11 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\xmega.h \
No newline at end of file
12 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\fuse.h \
No newline at end of file
13 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\lock.h \
No newline at end of file
14 .././Ports.h .././commSPI_ADC.h .././sys_clock.h .././ADC_7176_2.h \
No newline at end of file
15 .././fpga_port.h \
No newline at end of file
16 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\interrupt.h
No newline at end of file
17
No newline at end of file
18 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h:
No newline at end of file
19
No newline at end of file
20 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\sfr_defs.h:
No newline at end of file
21
No newline at end of file
22 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\inttypes.h:
No newline at end of file
23
No newline at end of file
24 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\lib\gcc\avr\4.9.2\include\stdint.h:
No newline at end of file
25
No newline at end of file
26 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\stdint.h:
No newline at end of file
27
No newline at end of file
28 C:\Program\ Files\ (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAD_DFP\1.0.29\include/avr/iox32d4.h:
No newline at end of file
29
No newline at end of file
30 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\portpins.h:
No newline at end of file
31
No newline at end of file
32 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\common.h:
No newline at end of file
33
No newline at end of file
34 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\version.h:
No newline at end of file
35
No newline at end of file
36 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\xmega.h:
No newline at end of file
37
No newline at end of file
38 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\fuse.h:
No newline at end of file
39
No newline at end of file
40 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\lock.h:
No newline at end of file
41
No newline at end of file
42 .././Ports.h:
No newline at end of file
43
No newline at end of file
44 .././commSPI_ADC.h:
No newline at end of file
45
No newline at end of file
46 .././sys_clock.h:
No newline at end of file
47
No newline at end of file
48 .././ADC_7176_2.h:
No newline at end of file
49
No newline at end of file
50 .././fpga_port.h:
No newline at end of file
51
No newline at end of file
52 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\interrupt.h: No newline at end of file
@@ -0,0 +1,16
1 ################################################################################
No newline at end of file
2 # Automatically-generated file. Do not edit or delete the file
No newline at end of file
3 ################################################################################
No newline at end of file
4
No newline at end of file
5 ADC_7176_2.c
No newline at end of file
6
No newline at end of file
7 commSPI_ADC.c
No newline at end of file
8
No newline at end of file
9 fpga_port.c
No newline at end of file
10
No newline at end of file
11 main.c
No newline at end of file
12
No newline at end of file
13 Ports.c
No newline at end of file
14
No newline at end of file
15 sys_clock.c
No newline at end of file
16 No newline at end of file
@@ -0,0 +1,37
1 sys_clock.d sys_clock.o: .././sys_clock.c \
No newline at end of file
2 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h \
No newline at end of file
3 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\sfr_defs.h \
No newline at end of file
4 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\inttypes.h \
No newline at end of file
5 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\lib\gcc\avr\4.9.2\include\stdint.h \
No newline at end of file
6 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\stdint.h \
No newline at end of file
7 C:\Program\ Files\ (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAD_DFP\1.0.29\include/avr/iox32d4.h \
No newline at end of file
8 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\portpins.h \
No newline at end of file
9 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\common.h \
No newline at end of file
10 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\version.h \
No newline at end of file
11 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\xmega.h \
No newline at end of file
12 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\fuse.h \
No newline at end of file
13 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\lock.h
No newline at end of file
14
No newline at end of file
15 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\io.h:
No newline at end of file
16
No newline at end of file
17 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\sfr_defs.h:
No newline at end of file
18
No newline at end of file
19 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\inttypes.h:
No newline at end of file
20
No newline at end of file
21 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\lib\gcc\avr\4.9.2\include\stdint.h:
No newline at end of file
22
No newline at end of file
23 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\stdint.h:
No newline at end of file
24
No newline at end of file
25 C:\Program\ Files\ (x86)\Atmel\Studio\7.0\Packs\atmel\XMEGAD_DFP\1.0.29\include/avr/iox32d4.h:
No newline at end of file
26
No newline at end of file
27 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\portpins.h:
No newline at end of file
28
No newline at end of file
29 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\common.h:
No newline at end of file
30
No newline at end of file
31 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\version.h:
No newline at end of file
32
No newline at end of file
33 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\xmega.h:
No newline at end of file
34
No newline at end of file
35 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\fuse.h:
No newline at end of file
36
No newline at end of file
37 c:\program\ files\ (x86)\atmel\studio\7.0\toolchain\avr8\avr8-gnu-toolchain\avr\include\avr\lock.h: No newline at end of file
@@ -0,0 +1,116
1 /*
No newline at end of file
2 * Ports.c
No newline at end of file
3 *
No newline at end of file
4 * Created: 23/11/15 13:57:48
No newline at end of file
5 * Author: Francisco
No newline at end of file
6 */
No newline at end of file
7
No newline at end of file
8 /*!
No newline at end of file
9 * \fn config_puertos
No newline at end of file
10 * \brief Configuraci�n de todos los pines de I/O a usarse
No newline at end of file
11 * para la prueba. Para el firmware final se deben dejar de configurar en este segmento
No newline at end of file
12 * los pines PR0 y PR1 que corresponden a las entradas de tierra y reloj externo.
No newline at end of file
13 * Los criterios de asignaci�n de control:
No newline at end of file
14 * Pullup: Para evitar ruido se env�a a una tensi�n conocida. De preferencia si
No newline at end of file
15 * Se sabe que la entrada ser� casi siempre alta.
No newline at end of file
16 * Pulldown: Para evitar ruido se env�a a una tensi�n conocida. De preferencia si
No newline at end of file
17 * Se sabe que la entrada ser� casi siempre baja.
No newline at end of file
18 * WiredAndpull: Para evitar cortos de una salida al exterior del board.
No newline at end of file
19 * Totem: Si se tiene certeza que el otro extremo es una salida o entrada con un valor predecible(Mismo board).
No newline at end of file
20 * \
No newline at end of file
21 */
No newline at end of file
22
No newline at end of file
23 #define F_CPU 32000000UL
No newline at end of file
24 #include <avr/io.h>
No newline at end of file
25
No newline at end of file
26 #include "Ports.h"
No newline at end of file
27 #include "commSPI_ADC.h"
No newline at end of file
28
No newline at end of file
29 inline void config_puertos(void){
No newline at end of file
30 //Configuracion pines del puerto A: PA7-PA0
No newline at end of file
31 //Pines de entrada y totem_pullup
No newline at end of file
32 PORTA.DIRCLR = PIN7_bm | PIN6_bm | PIN5_bm | PIN4_bm | PIN3_bm | PIN2_bm | PIN1_bm;
No newline at end of file
33 PORTA.PIN7CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
34 PORTA.PIN6CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
35 PORTA.PIN5CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
36 PORTA.PIN4CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
37 PORTA.PIN3CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
38 PORTA.PIN2CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
39 PORTA.PIN1CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
40 //Pin de salida A0
No newline at end of file
41 //Wired AND. Esto pues podr� irse a alta por defecto y si existe una tensi�n
No newline at end of file
42 //La l�nea tendr� el valor de tensi�n externa pero si es entrada con impedancia alta leer� el valor en alta
No newline at end of file
43 //Valor por defecto salida: PA0 = low
No newline at end of file
44 PORTA.DIRSET = PIN0_bm;
No newline at end of file
45 PORTA.PIN0CTRL = PORT_OPC_WIREDANDPULL_gc;
No newline at end of file
46 PORTA.OUTCLR = PIN0_bm;
No newline at end of file
47
No newline at end of file
48 //Configuracion pines del puerto B: PB3-PB0
No newline at end of file
49 //Pines de entrada y totem_pullup
No newline at end of file
50 PORTB.DIRCLR = PIN3_bm | PIN2_bm | PIN1_bm | PIN0_bm;
No newline at end of file
51 PORTB.PIN3CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
52 PORTB.PIN2CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
53 PORTB.PIN1CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
54 PORTB.PIN0CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
55
No newline at end of file
56 //Configuracion pines del puerto C: PC7-PC0 Con PC7-PC4:SPI
No newline at end of file
57 //Pines de entrada y totem_pullup: PC3, PC2, PC1, PC0, SPI_MISO PC6
No newline at end of file
58 //Pines de salida y totem_wiredand-pull: SPI_MOSI, SCK, SS. Valores por defecto de 1's en SCK y SS. Por defecto 0 en MOSI.
No newline at end of file
59 PORTC.DIRCLR = SPI_MISO_bm | PIN3_bm | PIN2_bm | PIN1_bm | PIN0_bm; //En este paso ya se sabe que el puerto SPI es el C
No newline at end of file
60 PORTSPI.PINSPIMISOCTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
61 PORTC.PIN3CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
62 PORTC.PIN2CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
63 PORTC.PIN1CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
64 PORTC.PIN0CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
65 //Pines de salida wiredand-pull
No newline at end of file
66 //Valor por defecto salida: PC4,PC7 = low
No newline at end of file
67 //Valor por defecto salida: PC5 = set
No newline at end of file
68 PORTSPI.DIRSET = SPI_MOSI_bm | SPI_SS_bm |SPI_SCK_bm;
No newline at end of file
69 PORTSPI.PINSPIMOSICTRL = PORT_OPC_TOTEM_gc;
No newline at end of file
70 PORTSPI.PINSPISCKCTRL = PORT_OPC_TOTEM_gc;
No newline at end of file
71 PORTSPI.PINSPISSCTRL = PORT_OPC_TOTEM_gc;
No newline at end of file
72 PORTSPI.OUTSET = SPI_SS_bm |SPI_SCK_bm;
No newline at end of file
73 PORTSPI.OUTCLR = SPI_MOSI_bm;
No newline at end of file
74
No newline at end of file
75 //Configuracion pines del puerto D: PD7-PD0
No newline at end of file
76 //Pines de entrada y totem_pullup: PIN7 y PIN0
No newline at end of file
77 //NOTA
No newline at end of file
78 //PARA EL FW FINAL REVISAR SI PD2 SER� ENTRADA O NO
No newline at end of file
79 //NOTA FIN
No newline at end of file
80 PORTD.DIRCLR = PIN7_bm | PIN2_bm | PIN1_bm| PIN0_bm;
No newline at end of file
81 PORTD.PIN7CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
82 PORTD.PIN0CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
83 //Pines de entrada y totem_pulldown: PIN2 y PIN1. Ambas ser�n entradas provenientes de la fpga
No newline at end of file
84 PORTD.PIN2CTRL = PORT_OPC_PULLDOWN_gc;
No newline at end of file
85 PORTD.PIN1CTRL = PORT_OPC_PULLDOWN_gc;
No newline at end of file
86 //Pines de salida tipo wired-and-pull
No newline at end of file
87 //Valor por defecto PD6, PD5, PD4, PD3 = low
No newline at end of file
88 PORTD.DIRSET = PIN6_bm | PIN5_bm | PIN4_bm | PIN3_bm;
No newline at end of file
89 PORTD.PIN6CTRL = PORT_OPC_WIREDANDPULL_gc;
No newline at end of file
90 PORTD.PIN5CTRL = PORT_OPC_WIREDANDPULL_gc;
No newline at end of file
91 PORTD.PIN4CTRL = PORT_OPC_WIREDANDPULL_gc;
No newline at end of file
92 PORTD.PIN3CTRL = PORT_OPC_WIREDANDPULL_gc;
No newline at end of file
93 PORTD.OUTCLR = PIN6_bm | PIN5_bm | PIN4_bm | PIN3_bm;
No newline at end of file
94
No newline at end of file
95 //Configuracion pines del puerto E: PE3-PE0
No newline at end of file
96 //Pines de entrada y totem_pullup: PIN3 - PIN0
No newline at end of file
97 PORTE.DIRCLR = PIN3_bm | PIN2_bm | PIN1_bm| PIN0_bm;
No newline at end of file
98 PORTE.PIN3CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
99 PORTE.PIN2CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
100 PORTE.PIN1CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
101 PORTE.PIN0CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
102
No newline at end of file
103 //Configuracion pines del puerto R: PR1-PR0
No newline at end of file
104 //Pines de entrada y totem_pulldown: PIN0
No newline at end of file
105 PORTR.DIRCLR = PIN1_bm| PIN0_bm;
No newline at end of file
106 PORTR.PIN1CTRL = PORT_OPC_PULLDOWN_gc;
No newline at end of file
107 //Pines de entrada y totem_pulldup:PIN1
No newline at end of file
108 PORTR.PIN0CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
109
No newline at end of file
110 //Configuraci�n como interrupci�n del pin SPI_MISO_RDY
No newline at end of file
111
No newline at end of file
112 PORTSPI.INT0MASK = SPI_MISO_bm;
No newline at end of file
113 PORTSPI.INTCTRL = ( PORTSPI.INTCTRL & ~PORT_INT0LVL_gm ) | PORT_INT0LVL_LO_gc;
No newline at end of file
114 PORTSPI.PINSPIMISOCTRL = ( PORTSPI.PINSPIMISOCTRL & ~PORT_ISC_gm ) | PORT_ISC_FALLING_gc;
No newline at end of file
115
No newline at end of file
116 } No newline at end of file
@@ -0,0 +1,21
1 /*
No newline at end of file
2 * Ports.h
No newline at end of file
3 *
No newline at end of file
4 * Created: 23/11/15 13:55:28
No newline at end of file
5 * Author: Francisco
No newline at end of file
6 */
No newline at end of file
7
No newline at end of file
8
No newline at end of file
9 #ifndef PORTS_H_
No newline at end of file
10 #define PORTS_H_
No newline at end of file
11
No newline at end of file
12 #define F_CPU 32000000UL
No newline at end of file
13 #include <avr/io.h>
No newline at end of file
14
No newline at end of file
15 #define INT_RDY PORTC_INT0_vect
No newline at end of file
16
No newline at end of file
17 void config_puertos(void);
No newline at end of file
18
No newline at end of file
19
No newline at end of file
20
No newline at end of file
21 #endif /* PORTS_H_ */ No newline at end of file
@@ -0,0 +1,31
1 /*
No newline at end of file
2 * commSPI_ADC.c
No newline at end of file
3 *
No newline at end of file
4 * Created: 23/11/15 14:08:25
No newline at end of file
5 * Author: Francisco
No newline at end of file
6 */
No newline at end of file
7
No newline at end of file
8
No newline at end of file
9 #define F_CPU 32000000UL
No newline at end of file
10 #include <avr/io.h>
No newline at end of file
11 #include "commSPI_ADC.h"
No newline at end of file
12
No newline at end of file
13 /*!
No newline at end of file
14 * \fn config_spiparm
No newline at end of file
15 * \brief Configuraci�n de los par�metros de reloj SPI
No newline at end of file
16 *
No newline at end of file
17 * fspi = fper/2 = fcpu/2 = 16MHz
No newline at end of file
18 *
No newline at end of file
19 * En nuestra aplicaci�n final el reloj ser� externo, de 16MHz. Por lo que se tendr� que realizar una
No newline at end of file
20 * nueva evaluaci�n
No newline at end of file
21 * \
No newline at end of file
22 */
No newline at end of file
23 inline void config_spiparm(void){
No newline at end of file
24 // Preescaler: clkper/2 = f_cpu/2.
No newline at end of file
25 // Master
No newline at end of file
26 // Mode 3: CPOL=1,CPHA=1
No newline at end of file
27 // MSB --- LSB
No newline at end of file
28 SPIC.CTRL = (SPI_CLK2X_bm | SPI_ENABLE_bm | SPI_MASTER_bm |
No newline at end of file
29 SPI_MODE1_bm | SPI_MODE0_bm) & ~SPI_DORD_bm;
No newline at end of file
30 }
No newline at end of file
31 No newline at end of file
@@ -0,0 +1,32
1 /*
No newline at end of file
2 * commSPI_ADC.h
No newline at end of file
3 *
No newline at end of file
4 * Created: 23/11/15 14:06:45
No newline at end of file
5 * Author: Francisco
No newline at end of file
6 */
No newline at end of file
7
No newline at end of file
8
No newline at end of file
9 #ifndef COMMSPI_ADC_H_
No newline at end of file
10 #define COMMSPI_ADC_H_
No newline at end of file
11
No newline at end of file
12 #define F_CPU 32000000UL
No newline at end of file
13 #include <avr/io.h>
No newline at end of file
14
No newline at end of file
15 #include "Ports.h"
No newline at end of file
16
No newline at end of file
17 #define PORTSPI PORTC //Puerto en el que se defini� el puerto SPI
No newline at end of file
18
No newline at end of file
19 #define PINSPISSCTRL PIN4CTRL //Pin de control de salida SS
No newline at end of file
20 #define PINSPIMOSICTRL PIN5CTRL //Pin de control de salida MOSI
No newline at end of file
21 #define PINSPIMISOCTRL PIN6CTRL //Pin de control de entrada MISO
No newline at end of file
22 #define PINSPISCKCTRL PIN7CTRL //Pin de control de salida SCK
No newline at end of file
23
No newline at end of file
24 #define SPI_SS_bm PIN4_bm // Pin de entrada - Totem
No newline at end of file
25 #define SPI_MOSI_bm PIN5_bm // Pin de salida - Totem
No newline at end of file
26 #define SPI_MISO_bm PIN6_bm // Pin de entrada - Totem
No newline at end of file
27 #define SPI_SCK_bm PIN7_bm // Pin de salida - Totem
No newline at end of file
28
No newline at end of file
29 void config_spiparm(void);
No newline at end of file
30
No newline at end of file
31
No newline at end of file
32 #endif /* COMMSPI_ADC_H_ */ No newline at end of file
@@ -0,0 +1,111
1 /*
No newline at end of file
2 * fpga_port.c
No newline at end of file
3 *
No newline at end of file
4 * Created: 23/11/15 14:33:16
No newline at end of file
5 * Author: Francisco
No newline at end of file
6 */
No newline at end of file
7
No newline at end of file
8 #define F_CPU 32000000UL
No newline at end of file
9 #include <avr/io.h>
No newline at end of file
10
No newline at end of file
11 #include "fpga_port.h"
No newline at end of file
12
No newline at end of file
13 inline void config_fpgaport()
No newline at end of file
14 {
No newline at end of file
15 //Configuracion pines del puerto D: PD6-PA1
No newline at end of file
16 //Pines de entrada CLK_FPGA, LOCK_FPGA
No newline at end of file
17 //Pines de salida CH_BIT0_FPGA, CH_BIT1_FPGA,CH_BIT2_FPGA, CH_BIT3_FPGA
No newline at end of file
18 PORT_FPGA.DIRCLR = LOCK_FPGA;
No newline at end of file
19 PORT_FPGA.LOCK_FPGA_CTRL = PORT_OPC_PULLDOWN_gc;
No newline at end of file
20 PORT_FPGA.DIRSET = CLK_FPGA;
No newline at end of file
21 PORT_FPGA.CLK_FPGA_CTRL = PORT_OPC_PULLUP_gc;
No newline at end of file
22 PORT_FPGA.OUTSET = CLK_FPGA;
No newline at end of file
23
No newline at end of file
24 //Pin de salida CH_BIT0_FPGA, CH_BIT1_FPGA,CH_BIT2_FPGA, CH_BIT3_FPGA
No newline at end of file
25 PORT_FPGA.DIRSET = CH_BIT3_FPGA | CH_BIT2_FPGA | CH_BIT1_FPGA | CH_BIT0_FPGA;
No newline at end of file
26 PORT_FPGA.CH_BIT0_FPGA_CTRL = PORT_OPC_TOTEM_gc; //PORT_OPC_WIREDANDPULL_gc;
No newline at end of file
27 PORT_FPGA.OUTSET = CH_BIT3_FPGA | CH_BIT2_FPGA | CH_BIT1_FPGA | CH_BIT0_FPGA;
No newline at end of file
28
No newline at end of file
29 //Configuracion pines del puerto B: PPS
No newline at end of file
30 //Pines de entrada PPS_FPGA
No newline at end of file
31 //Pines de entrada en pulldown
No newline at end of file
32 PORT_PPS.DIRCLR = PPS_FPGA;
No newline at end of file
33 PORT_PPS.PPS_FPGA_CTRL = PORT_OPC_PULLDOWN_gc;
No newline at end of file
34
No newline at end of file
35 //Configuracion pines del puerto A: LOCKOUT
No newline at end of file
36 //Pines de salida LOCK_OUT
No newline at end of file
37 //Pines de salida en baja
No newline at end of file
38 PORT_LOCKOUT.DIRSET = LOCK_OUT;
No newline at end of file
39 PORT_LOCKOUT.OUTCLR = LOCK_OUT;
No newline at end of file
40
No newline at end of file
41
No newline at end of file
42
No newline at end of file
43 //Configuracion de interrupciones de LOCK_FPGA
No newline at end of file
44
No newline at end of file
45 PORT_FPGA.INTCTRL = ( PORT_FPGA.INTCTRL & ~PORT_INT0LVL_gm ) | PORT_INT0LVL_HI_gc;
No newline at end of file
46 PORT_FPGA.INT0MASK = LOCK_FPGA;
No newline at end of file
47 PORT_FPGA.LOCK_FPGA_CTRL = ( PORT_FPGA.LOCK_FPGA_CTRL & ~PORT_ISC_gm ) | PORT_ISC_BOTHEDGES_gc;
No newline at end of file
48
No newline at end of file
49 //Configuracion de interrupciones de CLK
No newline at end of file
50 //PORT_FPGA.INTCTRL = ( PORT_FPGA.INTCTRL & ~PORT_INT1LVL_gm ) | PORT_INT1LVL_MED_gc;
No newline at end of file
51 //PORT_FPGA.INT1MASK = CLK_FPGA;
No newline at end of file
52 //PORT_FPGA.CLK_FPGA_CTRL = ( PORT_FPGA.CLK_FPGA_CTRL & ~PORT_ISC_gm ) | PORT_ISC_FALLING_gc;
No newline at end of file
53
No newline at end of file
54 //Configuracion de interrupciones de PPS
No newline at end of file
55 PORT_PPS.INTCTRL = ( PORT_FPGA.INTCTRL & ~PORT_INT1LVL_gm ) | PORT_INT1LVL_MED_gc;
No newline at end of file
56 PORT_PPS.INT1MASK = PPS_FPGA;
No newline at end of file
57 PORT_PPS.PPS_FPGA_CTRL = ( PORT_PPS.PPS_FPGA_CTRL & ~PORT_ISC_gm ) | PORT_ISC_RISING_gc;
No newline at end of file
58 }
No newline at end of file
59
No newline at end of file
60 void habilitar_interrupciones( uint8_t level_mask )
No newline at end of file
61 {
No newline at end of file
62 PMIC.CTRL = level_mask;
No newline at end of file
63 }
No newline at end of file
64
No newline at end of file
65 void habilitar_interrupciones_globales( void )
No newline at end of file
66 {
No newline at end of file
67 sei();
No newline at end of file
68 }
No newline at end of file
69
No newline at end of file
70 void deshabilitar_interrupciones_globales( void )
No newline at end of file
71 {
No newline at end of file
72 cli();
No newline at end of file
73 }
No newline at end of file
74
No newline at end of file
75 void envio_nibble(uint8_t fpga_dato)
No newline at end of file
76 {
No newline at end of file
77 PORT_FPGA.OUTCLR = CLK_FPGA;
No newline at end of file
78 PORT_FPGA.OUT = (PORT_FPGA.OUT & fpga_salidas_bm) | ((fpga_dato & nibble_alto_bm) << fpga_salidas_bp);
No newline at end of file
79 PORT_FPGA.OUTSET = CLK_FPGA;
No newline at end of file
80 //asm("nop");
No newline at end of file
81 PORT_FPGA.OUTCLR = CLK_FPGA;
No newline at end of file
82 PORT_FPGA.OUT = (PORT_FPGA.OUT & fpga_salidas_bm) | ((fpga_dato & nibble_bajo_bm) << fpga_salidas_bp);
No newline at end of file
83 PORT_FPGA.OUTSET = CLK_FPGA;
No newline at end of file
84
No newline at end of file
85 }
No newline at end of file
86
No newline at end of file
87 void envio_datos_fpga(void)
No newline at end of file
88 {
No newline at end of file
89 uint8_t fpga_dato[ADC_DATASZ], aux_dato[ADC_DATASZ] ;
No newline at end of file
90 adcport_read_data(fpga_dato,ADC_DATASZ);
No newline at end of file
91 aux_dato[0] = fpga_dato[0];
No newline at end of file
92 aux_dato[1] = fpga_dato[1];
No newline at end of file
93 aux_dato[2] = fpga_dato[2];
No newline at end of file
94 adcport_read_data(fpga_dato,ADC_DATASZ);
No newline at end of file
95
No newline at end of file
96 envio_dato_adc(aux_dato);
No newline at end of file
97 envio_dato_adc(fpga_dato);
No newline at end of file
98 }
No newline at end of file
99
No newline at end of file
100 void envio_dato_adc(uint8_t* dato_adc)
No newline at end of file
101 {
No newline at end of file
102 for(int i=0; i<3 ; i++)
No newline at end of file
103 envio_nibble(dato_adc[i]);
No newline at end of file
104 }
No newline at end of file
105 /*
No newline at end of file
106 __attribute__((noinline)) void delay_nop(void)
No newline at end of file
107 {
No newline at end of file
108 asm("nop");
No newline at end of file
109 }
No newline at end of file
110 */
No newline at end of file
111 No newline at end of file
@@ -0,0 +1,68
1 /*
No newline at end of file
2 * fpga_port.h
No newline at end of file
3 *
No newline at end of file
4 * Created: 23/11/15 14:20:25
No newline at end of file
5 * Author: Francisco
No newline at end of file
6 */
No newline at end of file
7
No newline at end of file
8
No newline at end of file
9 #ifndef FPGA_PORT_H_
No newline at end of file
10 #define FPGA_PORT_H_
No newline at end of file
11
No newline at end of file
12 #define F_CPU 32000000UL
No newline at end of file
13 #include <avr/io.h>
No newline at end of file
14 #include <avr/interrupt.h>
No newline at end of file
15 #include "ADC_7176_2.h"
No newline at end of file
16
No newline at end of file
17 //Port B
No newline at end of file
18 #define PORT_PPS PORTB
No newline at end of file
19 #define PPS_FPGA PIN2_bm
No newline at end of file
20 #define PPS_FPGA_CTRL PIN2CTRL
No newline at end of file
21 #define INT_PPS PORTB_INT1_vect
No newline at end of file
22
No newline at end of file
23 //Port A
No newline at end of file
24 #define PORT_LOCKOUT PORTA
No newline at end of file
25 #define LOCK_OUT PIN0_bm
No newline at end of file
26
No newline at end of file
27
No newline at end of file
28 //Port D
No newline at end of file
29 #define PORT_FPGA PORTD
No newline at end of file
30 #define LOCK_FPGA PIN1_bm
No newline at end of file
31 #define CLK_FPGA PIN2_bm
No newline at end of file
32 #define CH_BIT0_FPGA PIN3_bm
No newline at end of file
33 #define CH_BIT1_FPGA PIN4_bm
No newline at end of file
34 #define CH_BIT2_FPGA PIN5_bm
No newline at end of file
35 #define CH_BIT3_FPGA PIN6_bm
No newline at end of file
36 #define INT_LOCK_FPGA PORTD_INT0_vect
No newline at end of file
37
No newline at end of file
38 #define LOCK_FPGA_CTRL PIN1CTRL
No newline at end of file
39 #define CLK_FPGA_CTRL PIN2CTRL
No newline at end of file
40 #define CH_BIT0_FPGA_CTRL PIN3CTRL
No newline at end of file
41 #define CH_BIT1_FPGA_CTRL PIN4CTRL
No newline at end of file
42 #define CH_BIT2_FPGA_CTRL PIN5CTRL
No newline at end of file
43 #define CH_BIT3_FPGA_CTRL PIN6CTRL
No newline at end of file
44
No newline at end of file
45 void config_fpgaport();
No newline at end of file
46 void habilitar_interrupciones( uint8_t level_mask );
No newline at end of file
47 void habilitar_interrupciones_globales( );
No newline at end of file
48 void deshabilitar_interrupciones_globales( );
No newline at end of file
49
No newline at end of file
50 //Habilitar
No newline at end of file
51 #define hab_prioridad_alta PMIC_HILVLEN_bm
No newline at end of file
52 #define hab_prioridad_media PMIC_MEDLVLEN_bm
No newline at end of file
53 #define hab_prioridad_baja PMIC_LOLVLEN_bm
No newline at end of file
54
No newline at end of file
55 //M�scara de nibbles
No newline at end of file
56 #define nibble_alto_bm 0xF0
No newline at end of file
57 #define nibble_bajo_bm 0x0F
No newline at end of file
58 #define fpga_salidas_bp 3
No newline at end of file
59 #define fpga_salidas_bm 0x38
No newline at end of file
60
No newline at end of file
61 //funciones de env�o de datos
No newline at end of file
62 void envio_nibble(uint8_t fpga_dato);
No newline at end of file
63
No newline at end of file
64 //funcion interrupcion por flanco de subida de RDY
No newline at end of file
65 void envio_datos_fpga(void);
No newline at end of file
66 void envio_dato_adc(uint8_t* dato_adc);
No newline at end of file
67
No newline at end of file
68 #endif /* FPGA_PORT_H_ */ No newline at end of file
@@ -0,0 +1,77
1 /*
No newline at end of file
2 * ADCSPI_ver01.c
No newline at end of file
3 *
No newline at end of file
4 * Created: 26/10/15 12:02:22
No newline at end of file
5 * Author : Francisco
No newline at end of file
6 */
No newline at end of file
7
No newline at end of file
8 #define F_CPU 32000000UL
No newline at end of file
9 #include <avr/io.h>
No newline at end of file
10 #include "Ports.h"
No newline at end of file
11 #include "commSPI_ADC.h"
No newline at end of file
12 #include "sys_clock.h"
No newline at end of file
13 #include "ADC_7176_2.h"
No newline at end of file
14 #include "fpga_port.h"
No newline at end of file
15
No newline at end of file
16
No newline at end of file
17 int main(void)
No newline at end of file
18 {
No newline at end of file
19 //uint8_t datos_adc[3];
No newline at end of file
20 config_puertos();
No newline at end of file
21 config_sysclock();
No newline at end of file
22 config_spiparm();
No newline at end of file
23 config_fpgaport();
No newline at end of file
24
No newline at end of file
25 //datos_adc[0] = 0x00;
No newline at end of file
26 //datos_adc[1] = 0x00;
No newline at end of file
27 //datos_adc[2] = 0x00;
No newline at end of file
28 //PORTD.OUTSET = PIN5_bm;
No newline at end of file
29
No newline at end of file
30 PMIC.CTRL = hab_prioridad_alta;
No newline at end of file
31 habilitar_interrupciones_globales();
No newline at end of file
32
No newline at end of file
33 /* Replace with your application code */
No newline at end of file
34 while (1)
No newline at end of file
35 {
No newline at end of file
36 if (test_adc() == ADC_ID){
No newline at end of file
37 PORTD.OUTSET = PIN6_bm | PIN5_bm;
No newline at end of file
38 }
No newline at end of file
39 //test_adc_2(datos_adc);
No newline at end of file
40 //if (((datos_adc[0]<<16)+(datos_adc[1]<<8)+(datos_adc[2]<<0))!= 0x00){
No newline at end of file
41 //PORTD.OUTSET = PIN4_bm;
No newline at end of file
42 //}
No newline at end of file
43 }
No newline at end of file
44 return 0;
No newline at end of file
45 }
No newline at end of file
46
No newline at end of file
47
No newline at end of file
48 ISR(INT_LOCK_FPGA)
No newline at end of file
49 {
No newline at end of file
50 if((PORT_FPGA.IN & LOCK_FPGA) == LOCK_FPGA)
No newline at end of file
51 {
No newline at end of file
52 PMIC.CTRL |= hab_prioridad_media;
No newline at end of file
53 PORT_LOCKOUT.OUTSET = LOCK_OUT;
No newline at end of file
54 }
No newline at end of file
55 else
No newline at end of file
56 {
No newline at end of file
57 PMIC.CTRL &= ~hab_prioridad_media;
No newline at end of file
58 PMIC.CTRL &= ~hab_prioridad_baja;
No newline at end of file
59 PORT_LOCKOUT.OUTCLR = LOCK_OUT;
No newline at end of file
60 }
No newline at end of file
61 }
No newline at end of file
62
No newline at end of file
63 ISR(INT_PPS)
No newline at end of file
64 {
No newline at end of file
65 if((PORT_PPS.IN & PPS_FPGA) == PPS_FPGA)
No newline at end of file
66 PMIC.CTRL |= hab_prioridad_baja;
No newline at end of file
67 else
No newline at end of file
68 PMIC.CTRL &= ~hab_prioridad_baja;
No newline at end of file
69 }
No newline at end of file
70
No newline at end of file
71 ISR(INT_RDY)
No newline at end of file
72 {
No newline at end of file
73 envio_datos_fpga();
No newline at end of file
74 }
No newline at end of file
75
No newline at end of file
76
No newline at end of file
77 No newline at end of file
@@ -0,0 +1,55
1 /*
No newline at end of file
2 * sys_clock.c
No newline at end of file
3 *
No newline at end of file
4 * Created: 23/11/15 14:04:36
No newline at end of file
5 * Author: Francisco
No newline at end of file
6 */
No newline at end of file
7
No newline at end of file
8
No newline at end of file
9 /*!
No newline at end of file
10 * \fn config_sysclock
No newline at end of file
11 * \brief Configuraci�n del reloj interno del sistema
No newline at end of file
12 * Reloj interno
No newline at end of file
13 * fsys = 32MHz
No newline at end of file
14 *
No newline at end of file
15 * En nuestra aplicaci�n final el reloj ser� externo de 16MHz por lo que se tendr� que usar el PLL
No newline at end of file
16 * \
No newline at end of file
17 */
No newline at end of file
18
No newline at end of file
19 #define F_CPU 32000000UL
No newline at end of file
20 #include <avr/io.h>
No newline at end of file
21
No newline at end of file
22 void config_sysclock(void){
No newline at end of file
23
No newline at end of file
24 OSC.CTRL |= OSC_RC32MEN_bm | OSC_RC32KEN_bm; //Habilito reloj interno de 32MHz
No newline at end of file
25 do{}while((OSC.STATUS & OSC_RC32MRDY_bm) == 0); //Se espera estabilidad del reloj
No newline at end of file
26 do{}while((OSC.STATUS & OSC_RC32KRDY_bm) == 0); //Se espera estabilidad del reloj
No newline at end of file
27 CCP = CCP_IOREG_gc ; //Activo por 4 ciclos de reloj la escritura en el registro de control de reloj //Si no funciona con esta intrucci�n optimizarla
No newline at end of file
28 //con instrucciones en assembler
No newline at end of file
29 CLK.CTRL |= (CLK_SCLKSEL_RC32M_gc); //Selecciono el reloj de 32MHz //Si no hace efecto con esta implementaci�n cambiarla por instrucciones en assembler
No newline at end of file
30 DFLLRC32M.CTRL = DFLL_ENABLE_bm;
No newline at end of file
31 OSC.DFLLCTRL &= (0b00<<1); //Habilito calibraci�n interna mediante reloj de 32K
No newline at end of file
32 OSC.CTRL &= ~OSC_RC2MEN_bm; //Deshabilito el reloj interno de 2MHz para evitar consumo o lo comentamos para evitar quedarnos sin reloj de 2MHz interno
No newline at end of file
33 CPU_CCP = CCP_IOREG_gc; //Levantar protecci�n de registro
No newline at end of file
34 OSC_XOSCFAIL = (OSC_XOSCFDEN_bm); // Detecci�n de error de XOSC y de
No newline at end of file
35
No newline at end of file
36 /*
No newline at end of file
37 CLK_PSCTRL = ((0<<CLK_PSADIV_gp) & CLK_PSADIV_gm)|((0<<CLK_PSBCDIV_gp) & CLK_PSBCDIV_gm); //Prescaler A, B y C = 1
No newline at end of file
38 OSC_XOSCCTRL = OSC_XOSCSEL_EXTCLK_gc; //usar external clock
No newline at end of file
39
No newline at end of file
40 OSC.PLLCTRL = OSC_PLLSRC_XOSC_gc | ( 0x02 & OSC_PLLFAC_gm);
No newline at end of file
41
No newline at end of file
42 OSC_CTRL |= OSC_PLLEN_bm; //usar external clock
No newline at end of file
43 while(!(OSC_STATUS & OSC_XOSCRDY_bm));
No newline at end of file
44 while(!(OSC_STATUS & OSC_PLLRDY_bm));
No newline at end of file
45
No newline at end of file
46 CPU_CCP = CCP_IOREG_gc; //Levantar protecci�n de registro
No newline at end of file
47 CLK_CTRL = (CLK_SCLKSEL_PLL_gc) & CLK_SCLKSEL_gm; //CLK usa oscilador externo
No newline at end of file
48
No newline at end of file
49 OSC_CTRL &= ~OSC_RC2MEN_bm;
No newline at end of file
50
No newline at end of file
51 CPU_CCP = CCP_IOREG_gc; //Levantar protecci�n de registro
No newline at end of file
52 OSC_XOSCFAIL = (OSC_PLLFDEN_bm)|(OSC_XOSCFDEN_bm); // Detecci�n de error de XOSC y de
No newline at end of file
53 */
No newline at end of file
54
No newline at end of file
55 } No newline at end of file
@@ -0,0 +1,20
1 /*
No newline at end of file
2 * sys_clock.h
No newline at end of file
3 *
No newline at end of file
4 * Created: 23/11/15 14:03:16
No newline at end of file
5 * Author: Francisco
No newline at end of file
6 */
No newline at end of file
7
No newline at end of file
8
No newline at end of file
9 #ifndef SYS_CLOCK_H_
No newline at end of file
10 #define SYS_CLOCK_H_
No newline at end of file
11
No newline at end of file
12
No newline at end of file
13 #define F_CPU 32000000UL
No newline at end of file
14 #include <avr/io.h>
No newline at end of file
15
No newline at end of file
16 void config_sysclock(void);
No newline at end of file
17
No newline at end of file
18
No newline at end of file
19
No newline at end of file
20 #endif /* SYS_CLOCK_H_ */ No newline at end of file
@@ -0,0 +1,4
1 En esta primera versi�n los activadores de interrupciones son LOCK y PPS.
No newline at end of file
2 LOCK activa la interrupci�n deprioridad media.
No newline at end of file
3 PPS activa la interrupci�n de prioridad baja.
No newline at end of file
4 No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now