Maxim Integrated High-Speed Microcontroller Users Guide: Network Microcontroller Supplement User Manual

Page 215

Advertising
background image

2.

rom_redirect_init

Copies the redirect call table from ROM to external memory 0100h–017Fh.

3. ----

SETB EPFI instruction enables power-fail interrupt

4. ----

Prints part of the opening message "DS80C400 Silicon Software"

5. ----

Clears internal direct memory (scratchpad) 00h–FFh

6. ----

Clears external system xdata memory between 0180h–(start address of BLOB - 1) that is used for

network and task manager data structures.

7.

mm_init

Initialize heap memory according to upper/lower bound addresses passed to

rom_init. If the default heap-memory allocation is used, the address range is ~(start address of

BLOB +1000h) – FFFFh.

8.

km_init

Initialize kernel memory

9. ----

Prints more of the opening message "- Copyright (C) "

10. ----

Internal functions to manipulate the 1-Wire bus, make timing measurements, and calculate an

appropriate setting for the 1-Wire clock divisor register.

11.

ow_init

Initialize 1-Wire master. As an input parameter, the

ow_init function requires that ACC contain the

desired value to program into the 1-Wire clock divisor register. If

ow_init is called as part of the

rom_init function, this input parameter is passed automatically from the previous internal functions.

12.

network_init

Initialize network layer

13. ----

Prints more of the opening message "S/N: "

14.

eth_init

Initialize driver

15. ----

Prints the 8-byte serial number "NNNNNNNNNNNNNNNN"

16.

init_sockets

Initialize socket layer

17. ----

Prints more of the opening message "MAC ID: "

18.

tick_init

Initialize Timer0 periodic interrupt

19. ----

Prints the 6-byte MAC address "MMMMMMMMMMMM"

20.

task_genesis

Initialize scheduler and create an idle thread

21. ----

SETB EA enables interrupts

*The function call

rom_init takes care of all required initialization. This includes copying the interrupt vector table (rom_copyivt) and

function redirect table

(rom_redirect_init), as well as calling all of the above initialization routines. The rom_init function also prints a

copyright message. No extended documentation of these functions is currently available.

High-Speed Microcontroller User’s

Guide: Network Microcontroller

Supplement

215

Maxim Integrated

Advertising