Specifications

Reference Design HFRD-25.2 (Rev.8; 01/09) Maxim Integrated Products
Page 27 of 42
11 Firmware
11.1 Overview
The sections below provide a brief overview of
the firmware files and state diagrams of the main
sections of the firmware implemented in the
reference design.
11.2 Compiler
The firmware for HFRD-25.2 was developed
using Atmel AVR studio 4.12, Service Pack 3,
Build 490. The software can be downloaded from
the Atmel website (www.atmel.com
).
11.3 File Summary
The firmware is composed of the following files:
1. HFRD25r2.asm - Main program file that
contains initialization commands, program loop
calls, and multipliers/dividers.
2. ADCFunc.asm - Function calls that set up and
scale ADC results.
3. APCLoop.asm - Contains counter functions
used to integrate bias and modulation setting
values.
4. ControlFunc.asm - This file contains the PWM
initialization and Precharge routines. It also
contains K-factor, linear temperature, and V
CC
compensation routines.
5. I2C_slave.asm - Includes all the function calls
related to the two-wire interface. It also includes
all memory read and write functions through the
two-wire interface.
6. MemFunctions.ams - Includes simple routines
for pulling data from EEPROM and setting up the
various registers and memory banks.
7. tn24def1.inc - Includes a file that contains
common register and pin names for simplified
programming.
11.4 State Diagrams
Simplified state diagrams for the critical functions
are shown in
Figures 2 through 9.
11.5 Firmware Files Requests
The complete and documented firmware is
available to approved Maxim Integrated Products
customers by contacting the Maxim Integrated
Products Optoelectronics group by email:
https://support.maxim-
ic.com/tech_support/submit_question.mvp?pl_id=
5.
When requesting the firmware, please include the
following information:
Name:
Company Name:
Company Address:
Company Email Address:
Phone Number:
Project Description: