Auxiliary files, Include/header files, Auxiliary files 5.8. include/header files – Maxim Integrated 71M6513H Power Meter IC Family Software User Manual

Page 69

Advertising
background image

71M651x Software User’s Guide

5.7.AUXILIARY FILES

A variety of startup files is provided with the Demo Kits. The function of these files is as follows:

1.

STARTUP.A51:
This file provides memory and stack initialization. It is part of the Keil compiler package.

2.

STARTUP_SECURE.A51:
This file is almost identical to STARTUP.A51. The only difference is that this variation sets the SECURE bit.
This bit enables security provisions that prevent external reading of flash memory and CE program memory.
The code segment below sets the security bit located at SFR register address 0xB2:

STARTUP1:

CLR 0xA8^7

; Disable interrupts

MOV 0B2h,#40h ; Set security bit.

MOV 0E8h,#0FFh ; Refresh nonmaskable watchdog

3.

INIT.A51:
A secondary startup file. It is part of the Keil compiler package. This code is executed, if the application
program contains initialized variables at file level.

5.8.INCLUDE/HEADER FILES

API.H - Common basic library function definitions used for the API, such as soft_reset(), API_init(),
ce_config(), etc. The library routines can be called without prior knowledge of the hardware.

API_struct.H - API structures, enumerates, and defines.

ce651x.H - CE data and structure declarations

cli.H - Result code and Common ASCII code definition used for CLI

demo_options.H - _DEMO_OPTIONS declaration

help.H - HELP messages prototype declarations

iic.H - IIC API declaration for IIC control

io651x.H - 651x register definitions.

options.H - Options selected for compile time.

portable.H - System and data format definition.

reg_banks.H - Compile time register bank usage

reg651x.H - Register definition of 651x SFRs and IOs

reg80515.H - Register definition of 80515 SFRs and Internal memory.

Revision 2.4

TERIDIAN Proprietary

69 of 137

© Copyright 2005-2006 TERIDIAN Semiconductor Corporation

Advertising