English
Language : 

AMG-XB404 Datasheet, PDF (44/73 Pages) alpha microelectronics gmbh – Fully Integrated Single Motor Controller for Electrical Motors
AMG-XB404
Fully Integrated Single Motor Controller for Electrical Motors
ID number
Comment
0x80..0x9F
available for custom data
0xBF
time stamp (seconds since epoch)
0xC0
DMCE0 program
0xC1
DMCE0 registers
0xC2
reserved
0xC3
reserved
0xC4
PFC program
0xC5
PFC registers
0xC6
PowerStage0 pin order
0xC7
reserved
0xC8..0xDF
available for custom data
0xE0..0xFE
reserved
0xFF
end of data space
Table 19: ID overview
5.7.1.6. Debug Interface
The debug interface allows read access to the MCU's status register, stack pointer, program
counter, general purpose registers, and RAM (see commands 4, 5, 6, 7, 12, 13 in table 17). For
accessing general purpose registers a 5 bit address {SRA0[4:0]}, and for RAM data a 10 bit
address {SRA1[1:0],SRA0} has to be specified.
Four break points can be set and enabled using command 8. When the program counter reaches a
break point the MCU’s clock is stopped. This is indicated by MCU_CLKEN going LOW (see
table 16). The continue command 10 is used to re-enable the MCU’s clock.
A stepping mode is also available. In this mode the MCU clock will be stopped after each
command. The stepping mode is enabled using command 11. The MCU clock is re-enabled by
using the continue command.
5.7.2. General Purpose Input Output Interface (GPIO)
The GPIO block interfaces the IC’s general purpose IO pins, grouped in 8 bit wide IO ports. The
AMG-XB404 features 17 general purpose IOs(see figure 29). The GPIO block relays IO pins to
UART, TWI and SPI as shown in table 20.
IO pin
Signal
Direction Condition
Comment
PORTB[0]
UART TX
O
PORTB[1]
UART RX
I
UARTEN
UART data output enabled if UARTEN=1, else UART disabled
UART data input enabled if UARTEN=1, else UART disabled
PORTB[2]
TWI SCL
IO
PORTB[3]
TWI SDA
IO
TWIEN
TWI clock pin enabled if TWIEN=1, else TWI disabled
TWI data output enabled if TWIEN=1, else TWI disabled
PORTB[4] TMR 0 OC
O
OC0 ^ PORTBO[4] Timer 0 output compare
PORTB[5] TMR 1 OC
O
OC1 ^ PORTBO[5] Timer 1 output compare
PORTB[6] TMR 2 OC
O
OC2 ^ PORTBO[6] Timer 2 output compare
PORTC[2]
TMR 2 IC
I
Timer 2 input capture, always connected
PORTC[4]
SPI SCS
IO
SPI chip select pin enabled if SPIEN=1, else SPI disabled
PORTC[5]
SPI SDO
O
PORTC[6]
SPI SDI
I
SPIEN
SPI data output pin enabled if SPIEN=1, else SPI disabled
SPI data input pin enabled if SPIEN=1, else SPI disabled
PORTC[7] SPI SCLK
IO
SPI clock pin enabled if SPIEN=1, else SPI disabled
Table 20: XB404 dedicated function GPIO ports
AMG-XB404
Revision: A
2. Nov. 2012 © All rights reserved
Page 44 of 73