English
Language : 

AMG-XB404 Datasheet, PDF (37/73 Pages) alpha microelectronics gmbh – Fully Integrated Single Motor Controller for Electrical Motors
AMG-XB404
Fully Integrated Single Motor Controller for Electrical Motors
5.7. Micro Controller Unit (MCU)
The AMG-XB404's MCU features:
 8 bit AVR compatible RISC core
 1kByte Data SRAM
 16384 words x 16 bit program memory
 8 MHz system clock
 Watch dog timer
 Three general purpose interrupt-generating timers
 Three channel ADC function
 17 general purpose IOs
See section 5.11 page 60 for a summary of the MCU's instruction set.
5.7.1. Programming and Debug Interface
The programming interface is used to access the MCU's 16 bits wide and 16384 words deep
program memory. Programs are executed from Shadow SRAM whose contents are loaded from an
EEPROM after power-on reset. For testing purposes the loading process can be stopped, and re-
started, by using commands 19 and 20 (see table 17, p. 38). The MCU executes the program
starting at address 0 of the SRAM.
The unit is also used to debug the MCU core. The programming and debug interface is accessible
via the System SPI interface only, the associated bus addresses are undefined for the MCU core.
Before any functionality of the programming and debug interface is available the IC must be
unlocked. This is accomplished by setting the SRAM address to zero and sending the first 1024
words stored in program memory, which serve as a key, to the AMG-XB404.
Unlocking is achieved by setting low byte and high byte to the data registers and issuing the unlock
command for each data word (see Table 17 on page 38). The address will be incremented
automatically. The lock/unlock status can be checked through the IO expander as described in
section 5.2.2, p. 9.
Table 16 gives a summary of the registers associated with the programming and debug interface.
An overview of the available commands is shown in table 17.
AMG-XB404
Revision: A
2. Nov. 2012 © All rights reserved
Page 37 of 73