OP7100
90
s
Troubleshooting
Common Programming Errors
Values for constants or variables out of range. Table A-1 lists accept-
able ranges for variables and constants.
Mismatched types. For example, the literal constant
3293
is of type
int
(16-bit integer). However, the literal constant
3293.0
is of type
float
. Although Dynamic C can handle some type mismatches,
avoiding type mismatches is the best practice.
Counting up from, or down to, one instead of zero. In software, ordinal
series often begin or terminate with zero, not one.
Confusing a functions definition with an instance of its use in a listing.
Not ending statements with semicolons.
Not inserting commas as required in functions parameter lists.
Leaving out ASCII space character between characters forming a
different legalbut unwantedoperator.
Confusing similar-looking operators such as
&&
with
&
,
==
with
=
,
and
//
with
/
.
Inadvertently inserting ASCII nonprinting characters into a source-code
file.
Table A-1. Ranges of Dynamic C
Function Types
Type
Range
int
–32,768 (–2
15
) to
+32,767 (2
15
– 1)
long int
−
2,147,483,648 (
−
2
31
) to
+2147483647 (2
31
– 1)
float
1.18 × 10
-38
to
3.40 × 10
38
char
0 to 255
Содержание OP7100
Страница 1: ...OP7100 Serial Graphic Display User s Manual 019 0065 020418 J ...
Страница 10: ...OP7100 x s About This Manual ...
Страница 16: ...OP7100 16 s Overview ...
Страница 50: ...OP7100 50 s Hardware ...
Страница 51: ...OP7100 Software s 51 CHAPTER 4 SOFTWARE Chapter 4 describes the Dynamic C functions used with the OP7100 ...
Страница 72: ...OP7100 72 s Software ...
Страница 80: ...OP7100 80 s Graphics Programming ...
Страница 86: ...OP7100 86 s Installation ...
Страница 96: ...OP7100 96 s Specifications ...
Страница 110: ...110 s Serial Interface Board 2 OP7100 ...
Страница 111: ...OP7100 Backup Battery s 111 APPENDIX E BACKUP BATTERY ...
Страница 114: ...OP7100 114 s Backup Battery ...
Страница 122: ...OP7100 122 s Index ...