beautypg.com

In-application flash programming, Development and technical support, Additional documentation – Rainbow Electronics MAXQ3108 User Manual

Page 63: Maxq3108 low-power, dual-core microcontroller

background image

MAXQ3108

Low-Power, Dual-Core Microcontroller

______________________________________________________________________________________

63

In-Application Flash

Programming

From user code, flash is programmed using the ROM
utility functions from either C or assembly language.
The flash can be programmed one word at a time if so
desired. Once a new user code routine has been pro-
grammed and verified in flash, the link or call address
to that routine can be enabled. This procedure allows
continued user code execution while dynamic reconfig-
uration of user billing code and tariff schedules occurs.
The initial application code loaded through JTAG dic-
tates the in-application facility and implements recogni-
tion of the in-application request and communication.
The following function declarations show examples of
some of the ROM utility functions provided for in-appli-
cation flash programming.

/* Write one 16-bit word to code address 'dest'.

* Dest must be aligned to 16 bits.

* Returns 0 = failure, 1 = OK.

*/

int flash_write (uint16_t dest, uint16_t data);

To erase, the following function would be used:

/* Erase the given Flash page

* addr: Flash offset (anywhere within page)

*/

int flash_erasepage(uint16_t addr);

Development and Technical

Support

A variety of highly versatile, affordably priced develop-
ment tools for this microcontroller are available from
Maxim and third-party suppliers, including:

• Compilers

• In-circuit emulators

• Integrated development environments (IDEs)

• JTAG-to-serial converters for programming and

debugging

A partial list of development tool vendors can be found
on our website at

www.maxim-ic.com/MAXQ_tools

.

For technical support, go to

www.maxim-ic.com/support

.

Additional Documentation

Designers must have three documents to fully use all
the features of this device. This data sheet contains pin
descriptions, feature overviews, and electrical specifi-
cations. Errata sheets contain deviations from pub-
lished specifications. The

MAXQ Family User’s Guide

offers detailed information about device features and
operation.

• This MAXQ3108 data sheet, which contains electri-

cal/timing specifications and pin descriptions.

• The MAXQ3108 errata sheet for the specific device

revision, available at

www.maxim-ic.com/errata

.

• The

MAXQ Family User's Guide

, which contains

detailed information on core features and operation,
including programming. This document is available
on our website at

www.maxim-ic.com/MAXQUG

.