Many
Manuals
search
Catégories
Marques
Accueil
MikroElektronika
PC/postes de travail
PIC Microcontrollers PIC16
Manuel d'utilisateur
MikroElektronika PIC Microcontrollers PIC16 Manuel d'utilisateur Page 165
Télécharger
Partager
Partage
Ajouter à mon manuel
Imprimer
Page
/
172
Table des matières
MARQUE LIVRES
Noté
.
/ 5. Basé sur
avis des utilisateurs
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
172
Figure: Example of interfacing MAX7219 with PIC MCU via SPI
mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
1
6
0
mikr
oBASIC
MikroElektronika:
Development
tools
-
Books
-
Compilers
making it simple...
page
MAX7219
DOUT
SEGD
SEGDP
SEGE
SEGC
ISET
SEGG
SEGB
SEGF
DIN
DIG0
DIG4
GND
DIG6
DIG2
DIG7
DIG3
GND
DIG5
V+
DIG1
LOAD
SEGA
CLK
4MHz
+5V
8
.
8
.
8
.
8
.
8
.
8
.
8
.
8
.
PIC16F877
RA0/AN0
RA2/AN2/Vref-
RA3/AN3/Vref+
RA4/TOCKI
RA5/AN4
RE0/RD/AN5
RE1/WR/AN6
RE2/CS/AN7
Vdd
Vss
OSC1
OSC2
RCO/T1OSO
RC1/T1OSI
RC3
RD0/PSP0
RD1/PSP1
MCLR/Vpp/THV
RC2/CCP1
RA1/AN1
RB7/PGD
RB6/PGC
RB5
RB4
RB3/PGM
RB2
RB1
RB0/INT
Vdd
Vss
RD6/PSP6
RD7/PSP7
RD5/PSP5
RD4/PSP4
RC7/RX/DT
RC6/TX/CK
RC5
RC4
RD3/PSP3
RD2/PSP2
+5V
8
g
a
b
c
d
f
g
dp
e
fK
a
b
cd
p
K
d
e
Reset
10K
10K
1
2
...
160
161
162
163
164
165
166
167
168
169
170
171
172
MikroElektronika
1
Table of Contents
2
To readers note
5
C H A P T E R
6
CODE EDITOR
8
Advanced Editor Features
9
Comment /
10
Uncomment Icon
10
CODE EXPLORER
11
CREATING FIRST PROJECT
12
Compile Icon
15
Debug Icon
15
PROJECTS
18
Managing Source Files
19
Compile and Link Source Code
21
DEBUGGER
22
ERROR WINDOW
24
ASSEMBLY VIEW
25
STATISTICS
26
Chapter
27
Procedures (Details) Window
28
INTEGRATED TOOLS
29
KEYBOARD SHORTCUTS
31
Reference
33
IDENTIFIERS
34
KEYWORDS
35
DATA TYPES
36
For example:
38
Numerals
40
Character Strings
40
CONSTANTS
41
VARIABLES
44
Additional
45
' beginning of a module
46
COMMENTS
48
EXPRESSIONS
49
DECLARATIONS AND STATEMENTS
51
Statements
52
DIRECTIVES
53
' byte at the same time
54
' example for P16F877A
54
PROCEDURES AND FUNCTIONS
55
' some code
56
' routine
56
' case end
58
Main Unit File
61
Compiler
62
Output Generator
62
SCOPE (IDENTIFIER VISIBILITY)
63
PROGRAM ORGANIZATION
65
TYPE CONVERSION
67
Example 1:
68
Example 2:
69
Example 3:
69
' B becomes $00ff
70
' B becomes -10
71
' C becomes 213
71
1 01 11 100
72
0 00 0 00 01
72
1 1 1 10000
72
OPERATORS
78
Runtime Behavior
80
Arithmetic Operators
81
Specific
83
Boolean Operators
84
Logical (Bitwise) Operators
85
' Bb becomes $00a0
86
' Bb becomes $70f4
86
Overview
89
Rules for
89
Comparing
89
Expressions
89
CONDITIONAL STATEMENTS
92
Select Case Statement
93
If Statement
95
Examples
96
For Statement
98
Do..Loop Until Statement
100
While Statement
101
ASM Statement
102
PIC MCU SPECIFIC
103
COMPILER ERROR MESSAGES
106
Library Routines
109
Built-in and
109
BUILT-IN ROUTINES
110
LIBRARY ROUTINES
112
1-Wire Library
113
PIC16F877
115
ADC Library
116
Figure (ADC HW connection)
117
CAN Library
118
CAN_OP_MODE
124
CAN_TX_MSG_FLAGS
124
CAN_RX_MSG_FLAGS
125
CAN_MASK
125
CAN_FILTER
126
CAN_CONFIG_FLAGS
126
PCA82C250
129
Shielded pair, less
129
CANSPI Library
130
CAN Library Constants
136
Compact Flash Library
139
Compact Flash Connector
144
(TOP VIEW)
144
Compact Flash Card
144
EEPROM Library
145
I2C Library
146
LCD Library
150
Commands
151
Figure: LCD HW connection
152
PWM Library
153
Figure: PWM demonstration
154
RS485 Library
155
RS485slave_write
158
Connecting PC and PIC via
160
RS485 communication line
160
SPI Library
161
Value Meaning
163
8. 8. 8. 8. 8. 8. 8. 8
165
USART Library
166
Figure: RS232 HW connection
168
Numeric Formatting Routines
169
Utilities
171
Commentaires sur ces manuels
Pas de commentaire
Publish
Produits connexes et manuels pour PC/postes de travail MikroElektronika PIC Microcontrollers PIC16
PC/postes de travail MikroElektronika PIC Microcontrollers PIC16 Fiche technique
(194 pages)
PC/postes de travail MikroElektronika PIC Microcontrollers PIC12 Guide de l'utilisateur
(38 pages)
PC/postes de travail MikroElektronika PIC Microcontrollers PIC16 Spécifications
(186 pages)
PC/postes de travail MikroElektronika PIC Microcontrollers PIC18 Manuel d'utilisateur
(40 pages)
PC/postes de travail MikroElektronika PIC Microcontrollers PIC18 Manuel d'utilisateur
(88 pages)
Imprimer le document
Imprimer la page 165
Commentaires sur ces manuels