COP8C Product News
The following sections describe new features in Byte Craft Limited Products.
As of 1 September 2005, Byte Craft Limited's corporate address will be:
Byte Craft Limited
A2-490 Dutton Drive
Waterloo, Ontario, Canada
N2L 6H7
phone: +1 519.888.6911
fax : +1 519.746.6751
<support@bytecraft.com>
COP8C supports new microcontroller devices from National Semiconductor. This section describes new header files that we have included for these devices.
From National documentation:
Part Numbering Scheme: Example: COP8 CB E 9 H VA 8 | | | | | | CB: Low Brownout Voltage \ | | | | | | CC: High Brownout Voltage |--------/ | | | | | CD: No Brownout | | | | | | CF: CD w/o USART, Dual ck / | | | | | | | | | | E: 8k Program Memory }-----------/ | | | | | | | | 9: Flash Program Memory }--------------/ | | | | | | H: 44 pins \-----------------/ | | I: 48 pins / | | | | LQ: LLP \ | | MT: TSSOP |--------------------/ | VA: PLCC / | | 7: -40 to +125 Degrees C \ | 8: -40 to +85 Degrees C |-----------------------/ 9: 0 to +70 Degrees C /
When targeting one of these parts, use one of the following header files:
| Header File | Part Characteristics | Part Numbers | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8CxR9.H |
(32k Flash, 1k RAM, 10 bit A/D, 3 timers) |
|
||||||||||||||||||
8CxE9.H |
(8k Flash, 256 RAM, 10-bit A/D, 2 timers) |
|
||||||||||||||||||
8CFE9.H |
(Same as 8CBE9 but No USART, no Dual Clock) |
|
||||||||||||||||||
8SxE9.H |
(Same as 8CxE9, but no A/D) |
|
||||||||||||||||||
8AxE9.H |
(10-bit A/D, 2 Op-amps, Temp Sensor, 4.5V Supply) |
|
* Part numbers reflect all possible combinations and may not actually exist.
Before beginning development, ensure that a header file for your target part is available. If you require a header file that does not appear in the include/dev subfolder of the COP8C installation, use the form at http://www.bytecraft.com/header.html to request it. Byte Craft Limited regularly issues new header files with product updates.
The COP8C compiler supports direct communication to debug environments. Embedded BCdirect commands can be used to pre-set breakpoints, pass set up information, and embed print and log statements without impacting generated code. BCdirect information is passed as messages in the .COD file.
#pragma option RAMMAP;
This option is now on by default. It graphically displays RAM usage at the end of the listing file.
COP8C supports the ANSI standard uses for the static storage class modifier:
-
When variables are declared and initialized at the same time, the compiler generates code to load the variables with the values. For static local variables, this is only done once at the beginning of the program. Further calls to the function do not reinitialize the variables, thus preserving their values..
-
When used with the linker, it limits the scope of global variables to the module in which they are declared.
The COP8C compiler is now available for the HP 700 series under HP-UX and for the SUN SPARC under either Solaris or SUN-OS. There is also a version of the COP8C compiler available to run on the NEC-PC development platform.
You can set the value stored in unused ROM locations with the #pragma option fillrom statement:
#pragma option fillrom value;where value is an 8-bit integer expression.
The default integer size of Code Development Systems is 8 bits. If the symbol __INT16 is defined, it indicates that the default integer size is 16 bits.
The __INT16 preprocessor symbol is defined by the compiler when either the +i is set on the command line, or the #pragma option +h directive appears in a source file.

July 2008: