-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathATMEGA328P_E1_Flowcode.fcfx
More file actions
162 lines (162 loc) · 6.66 KB
/
ATMEGA328P_E1_Flowcode.fcfx
File metadata and controls
162 lines (162 loc) · 6.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<root>
<document schema='101' license='-1,88263627,K38DMR' title='' description='' target='AVR.ATMEGA.ATMEGA328P' >
<config data='!0,ff!8,ff!10,ff%0,3f%6,1%7,1' clkspd='8000000' simspd='1' usewdt='0' constif='0' />
<plugins >
<dll_dbg_icd enabled='0' >
<data name='debug' value='1' />
<data name='userpins' value='0' />
<data name='speed' value='0' />
<data name='usev9' value='0' />
<data name='breaks' value='8' />
<data name='stacks' value='8' />
<data name='clkport' value='1' />
<data name='clkbit' value='6' />
<data name='dataport' value='1' />
<data name='databit' value='7' />
<data name='ghostype' value='0' />
<data name='monitor' value='1' />
<data name='ictloop' value='0' />
<data name='ictrate' value='20000' />
<data name='ictmask' value='0' />
<data name='anlpres' value='255' />
<data name='digmask1' value='-1' />
<data name='digmask2' value='-1' />
</dll_dbg_icd>
<dll_models enabled='1' />
<dll_upgrader enabled='1' />
<dll_webhelp enabled='1' />
</plugins>
<supplement use='0' head='' body='' />
<debug />
<components >
<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
<definition guid='8213918c-9c5d-41c0-9d41-d94419cd1c90' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='Misc' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' iconpath='' />
<component class_type='root' codename='panel' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
<resources />
<properties />
<values />
<events />
<apis />
<variables >
<variable public='0' >
<def class_type='variable' name='false' type='b1' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
</variable>
<variable public='0' >
<def class_type='variable' name='PRTD' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
</variable>
<variable public='0' >
<def class_type='variable' name='true' type='s16' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
</variable>
</variables>
<macros >
<macro >
<flowline name='Main' description='' >
<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
<command class_type='loop' title='Loop' ccode='// Loop
// Loop: While 1
while (1)
{
' type='0' exp='1' >
<flowline >
<command class_type='input' title='Input' ccode='// Input
// Input: PORTA -> M_PORTB
FCV_M_PORTB = FCP_GET(F, A, 0xFF, 0);' mode='2' port='1048579' mask='255' exp='PRTD' />
<command class_type='switch' title='Switch' textarea='52,64,52,64' ccode='// Switch
// Switch: $PORTD?
switch (FCP_GET(F, D, 0xff, 0x0))
{
' exp='PRTD' >
<case >
<flowline >
<command class_type='output' title='Output' ccode='// Output
// Output: 0 -> A3
FCP_SET(B, A, 0x08, 3, (0));' mode='1' port='1048579' mask='8' exp='0' />
</flowline>
</case>
<case exp='3' >
<flowline >
<command class_type='output' title='Output' ccode='// Output
// Output: 1 -> A3
FCP_SET(B, A, 0x08, 3, (1));' mode='1' port='1048579' mask='8' exp='1' />
</flowline>
</case>
<case exp='5' >
<flowline >
<command class_type='output' title='Output' mode='1' port='1048579' mask='8' exp='1' />
</flowline>
</case>
<case exp='6' >
<flowline >
<command class_type='output' title='Output' mode='1' port='1048579' mask='8' exp='1' />
</flowline>
</case>
</command>
</flowline>
</command>
</flowline>
</macro>
</macros>
<component class_type='ref' guid='4ac72986-ad7d-49ce-afe5-9128831debc9' vmin='1' vmaj='1' codename='switch_array_slide1' x='-80' y='48' z='1.10241' xsz='0.804282' ysz='1' zsz='0.629949' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='1' poslock='1' >
<resources />
<properties />
<values >
<value target='count' data='3' />
<value target='port' data='003' />
<value target='pin0' data='$PORTD.0' />
<value target='pin1' data='$PORTD.1' />
<value target='pin2' data='$PORTD.2' />
<value target='pin3' data='$PORTA.3' />
<value target='pin4' data='$PORTA.4' />
<value target='pin5' data='$PORTA.5' />
<value target='pin6' data='$PORTA.6' />
<value target='pin7' data='$PORTA.7' />
<value target='debounce' data='0' />
<value target='polarity' data='000' />
<value target='align' data='000' />
<value target='spacing' data='12.000000' />
<value target='reverse' data='0' />
<value target='show_labels' data='004' />
<value target='label_color' data='16777215' />
</values>
<events />
<apis />
<variables />
<macros />
</component>
<component class_type='ref' guid='d92e8259-f3a8-4176-a8c4-fe7ca42b2c3f' vmin='1' vmaj='1' codename='led_5mm1' x='-80' y='64' z='-1.90735e-007' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='1' poslock='0' >
<resources />
<properties />
<values >
<value target='pin' data='$PORTD.3' />
<value target='polarity' data='001' />
<value target='on_color' data='4652800' />
<value target='length' data='4.000000' />
<value target='show_label' data='002' />
<value target='label_property' data='pin' />
<value target='label_color' data='16777215' />
<value target='label_scale' data='1.000000' />
<value target='label_auto_scale' data='0' />
<value target='label_position' data='001' />
</values>
<events />
<apis />
<variables />
<macros />
</component>
</component>
</components>
<keymap />
<panel2d shadows='0' lighting='2' brightness='0' perspective='0' >
<background rgb='2960685' img='' style='0' />
<camera xe='-80' ye='56' ze='142.886' xt='-80' yt='56' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
</panel2d>
<panel3d shadows='0' lighting='2' brightness='0' perspective='0' >
<background rgb='8409120' img='' style='0' />
<table rgb='7360576' img='' style='0' size='25' />
<camera xe='-3.67394e-014' ye='0' ze='-300' xt='0' yt='0' zt='0' xquat='0' yquat='1' zquat='0' wquat='6.12323e-017' />
</panel3d>
<layout >
<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAArgMAAOwCAAA' zoom='60' scrollx='0' scrolly='0' flags='0' />
</layout>
</document>
</root>