This document is a User Manual for the Cyan Technology eCOG1X family of 16-bit microcontrollers.
Notes within this document are used to highlight
related or additional information to the user which is of
interest or can prevent incorrect or undesirable operation.
These notes are identified by the symbol shown on the left of
this paragraph.
In this document any reference to eCOG1X means the generic chip and is applicable to all versions. All eCOG1X devices are suffixed according to their version. Any reference to a particular device such as eCOG1X0A5 is specific to that version.
The on-chip I/O registers may be accessed as complete registers, or as named bit fields within the registers. The CyanIDE development tools provide the include file registers.h which contains structure definitions for all on-chip registers and bit fields, and mask symbols for use within the registers. To access any register, use the structure prefix rg. To access a bit field within a register, use the structure prefix fd. For example:
// Write to baud rate register rg.duart1.a_baud = 0xA55A; // Write to data size bit field in frame configuration register fd.duart1.frame_cfg.a_data_size = 0;
This convention for accessing the peripheral registers is used in all the source code examples in this document.
Note that using the fd prefix to access bit fields within the registers generates a read-modify-write code sequence, which reads the complete register, modifies the selected bits, then writes the modified data back to the complete register. In some circumstances it may be preferable to avoid the read-modify-write sequence by writing explicitly a bit pattern value to the complete register.
This product is not designed or intended to be used for on-line control of aircraft, aircraft navigation or communications systems or in air traffic control applications or in the design, construction, operation or maintenance of any nuclear facility, or for any medical use related to life support equipment or systems intended to be surgically implanted into the body or any other life-critical application, whose failure to perform per documented instructions, can be reasonably expected to cause loss of life or significant injury. Cyan specifically disclaims any express or implied warranty of fitness for any or all of such uses.