-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclbBitstream.S
More file actions
172 lines (157 loc) · 4.3 KB
/
Copy pathclbBitstream.S
File metadata and controls
172 lines (157 loc) · 4.3 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
163
164
165
166
167
168
169
170
171
/*
© [2026] Microchip Technology Inc. and its subsidiaries.
Subject to your compliance with these terms, you may use this Microchip
software and any derivatives exclusively with Microchip products.
You are responsible for complying with third party license terms
applicable to your use of third party software (including open source
software) that may accompany this Microchip software. SOFTWARE IS "AS IS."
NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS
SOFTWARE, INCLUDING ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT,
MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT
WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY
KIND WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF
MICROCHIP HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE
FORESEEABLE. TO THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S
TOTAL LIABILITY ON ALL CLAIMS RELATED TO THE SOFTWARE WILL NOT
EXCEED AMOUNT OF FEES, IF ANY, YOU PAID DIRECTLY TO MICROCHIP FOR
THIS SOFTWARE.
CLB bitstream data for PIC16F13145 family devices.
If the CLB data must be at a particular address, define the
'CLB_CONFIG_ADDR' C macro to set the address. If the location of the data
does not matter, then leave this macro undefined. The compiler will
automatically find an optimal place in program memory.
If the CLB_CONFIG_ADDR macro is not being used, the data may be
referenced in C with the 'start_clb_config' symbol.
For example:
extern uint16_t start_clb_config;
uint16_t addr;
addr = &start_clb_config;
NOTE: Always use the address of this symbol and not the value.
This module requires C preprocessing.
This can be enabled via the command line option: -xassembler-with-cpp
*/
#include "clb1_defs.h"
// #define CLB_CONFIG_ADDR <address of bitstream>
#if !(defined(_16F13113) || defined(_16F13114) || defined(_16F13115) \
|| defined(_16F13123) || defined(_16F13124) || defined(_16F13125) \
|| defined(_16F13143) || defined(_16F13144) || defined(_16F13145))
#error This module is only suitable for PIC16F13145 family devices
#endif
// Check to verify that the header file matches the generated bitstream
#if CLB_BITSTREAM_LENGTH != 102
#error The CLB module for this device has a 102 words long bitstream
#endif
#ifdef CLB_CONFIG_ADDR
psect clb_config,global,class=STRCODE,abs,ovrld,delta=2,noexec,split=0,merge=0,keep
#else
psect clb_config,global,class=STRCODE,delta=2,noexec,split=0,merge=0,keep
#endif
global _start_clb_config
psect clb_config
#ifdef CLB_CONFIG_ADDR
ORG CLB_CONFIG_ADDR
#endif
_start_clb_config:
dw 0x2814;
dw 0x1D42;
dw 0x2C20;
dw 0x3E1F;
dw 0x03F0;
dw 0x3E1F;
dw 0x03E1;
dw 0x3E1F;
dw 0x33F8;
dw 0x059F;
dw 0x19F0;
dw 0x3FFF;
dw 0x008F;
dw 0x3E1F;
dw 0x03E1;
dw 0x3E1F;
dw 0x28D5;
dw 0x3D46;
dw 0x2A6A;
dw 0x0F5F;
dw 0x17F5;
dw 0x0A1F;
dw 0x03E1;
dw 0x3E1F;
dw 0x3098;
dw 0x0581;
dw 0x2C50;
dw 0x3E1F;
dw 0x03F0;
dw 0x3E1F;
dw 0x03E1;
dw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