MAXQ7670
Microcontroller with 10-Bit ADC,
PGA, 64KB Flash, and CAN Interface
______________________________________________________________________________________ 25
frequency is limited to SYSCLK/2 in master mode and
SYSCLK/8 in slave mode. Figure 10 shows the function-
al diagram of the SPI port. Figures 1 and 2 illustrate the
timing parameters listed in the
Electrical Characteristics
table.
General-Purpose Digital I/Os
The MAXQ7670 provides seven general-purpose digital
I/Os (GPIOs). Some of the GPIOs include an additional
special function (SF), such as a timer input/output. For
example, the state of P0.6/T0 is programmable to
depend on timer channel 0 logic. When used as a port,
each I/O is configurable for high-impedance, weak
pullup to DVDDIO or pulldown to GNDIO. At power-up,
each GPIO is configured as an input with a pullup to
DVDDIO. In addition, each GPIO can be programmed
to cause an interrupt (on falling or rising edges). In stop
mode, use any interrupt to wake-up the device.
The port direction (PD) register determines the
input/output direction of each I/O. The port output (PO)
register contains the current state of the logic output
buffers. When an I/O is configured as an output, writing
to the PO register controls the output logic state.
Reading the PO register shows the current state of the
output buffers, independent of the data direction. The
port input (PI) register is a read-only register that
always reflects the logic state of the I/Os.
SFR DATA BUS
READ BUFFER
SHIFT REGISTER
LSB(0)
MSB (15)
MISO
MASTER
SLAVE
SLAVE
SPI CONTROL UNIT
SYSCLK
SPI INTERRUPT
/2 MASTER (MAX)
/8 SLAVE (MAX)
SHIFT CLK
07
SPI CONTRL REG (SPICN)
SPI CONTRL REG (SPICF)
SPI CONTRL REG (SPICK)
MASTER/SLAVE SELECT
SCLK OUT
SCLK IN
SPI ENABLE
MASTER
MOSI
SCLK
DVDDIO
DVDDIO
SLAVE
MASTER
MAXQ7670
SS
Figure 10. SPI Functional Diagram
MAXQ7670
Microcontroller with 10-Bit ADC,
PGA, 64KB Flash, and CAN Interface
26 ______________________________________________________________________________________
The drive capability of the I/O, when configured for out-
put, depends on the value in the PS0 (pad drive
strength) register and can be set for either 1mA or
2mA. When an I/O is configured as an input, writing to
the PO register enables/disables the pullup/pulldown
resistor. The value in the PRO (pad resistive pull direc-
tion) register sets the enabled resistor at the I/O as
either a pullup to DVDDIO or pulldown to GNDIO.
Refer to the
MAXQ7670 User’s Guide
for more detailed
information.
Port Characteristics
The MAXQ7670 includes a bidirectional 7-bit I/O port
(P0) whose features include:
Schmitt trigger input circuitry with software-selectable
high-impedance or weak pullup to DVDDIO or pull-
down to GNDIO
Software-selectable push-pull CMOS output drivers
capable of sinking and sourcing 0.5mA
Falling or rising edge interrupt capability
P0.4, P0.6, and P0.7 I/Os contain an additional special
function, such as a logic input/output for a timer channel
Selectable pad drive strength and resistive pull direction
Refer to the
MAXQ7670 User’s Guide
for more details.
Figure 11 illustrates the functional blocks of an I/O.
MAXQ20 Core Architecture
The MAXQ7670’s core is a member of the low-cost,
high-performance, CMOS, fully static, 16-bit MAXQ20
core µCs. The MAXQ7670 is structured on a highly
advanced, accumulator-based, 16-bit RISC architec-
ture. Fetch and execution operations complete in one
cycle without pipelining because the instruction con-
tains both the op code and data. The result is a stream-
lined 1 million instructions-per-second-per-megahertz
(MIPS/MHz) µC.
The highly efficient core is supported by a 16-level
hardware stack, enabling fast subroutine calling and
task switching. The internal data pointers manipulate
data quickly and efficiently. Multiple data pointers allow
more than one function to access data memory without
having to save and restore data pointers each time. The
data pointers can automatically increment or decre-
ment following an operation, eliminating the need for
software intervention and increasing application speed.
Instruction Set
The instruction set is composed of fixed-length, 16-bit
instructions that operate on registers and memory loca-
tions. The highly orthogonal instruction set allows arith-
metic and logical operations to use any register along
with the accumulator. Special-function registers (also
called peripheral registers) control the peripherals and
are subdivided into register modules. The modular fam-
ily architecture allows new devices and modules to
reuse code developed for existing products. The archi-
tecture is transport-triggered. This means that writes or
reads from certain register locations can also cause
side effects to occur. These side effects form the basis
for the higher-level op codes defined by the assembler,
such as ADDC, OR, JUMP, etc.
Memory Organization
The MAXQ7670 incorporates the following memory
areas (see Figure 12):
8KB (4K x 16) utility ROM
64KB (32K x 16) of flash memory for program storage
2048 bytes (1024 x 16) of SRAM for storage of tempo-
rary variables
16-level stack memory for storage of program return
addresses and general-purpose use
A 16-bit-wide x 16 deep internal hardware stack pro-
vides storage for program return addresses and gener-
al-purpose use. The MAXQ7670 core implicitly uses the
stack when executing an interrupt service routine (ISR)
and also when running CALL, RET, and RETI instruc-
tions. The stack can also be explicitly used by the
MAXQ7670
V
DVDDIO
P
N
PI0._
PO0._
PS0._
PD0._
PULLUP/
PULLDOWN
LOGIC
PR0._
PD0._
PO0._
P0._
Figure 11. Digital I/O Circuitry
MAXQ7670
Microcontroller with 10-Bit ADC,
PGA, 64KB Flash, and CAN Interface
______________________________________________________________________________________ 27
application code to store data when context switching
(e.g., during a call or an interrupt). Storing and retriev-
ing data is executed through the PUSH, POP, and POPI
instructions.
The incorporation of flash memory allows device repro-
gramming, eliminating the expense of discarding one-
time programmable devices during development and
field upgrades (see Figure 13 for the flash memory sec-
tor maps).
A 16-word key protects the flash memory from access
by unauthorized individuals. Without supplying the 16-
word key, the password lock (PWL) bit in the SC regis-
ter remains set, and the utility ROM is inaccessible.
Supplying the 16-word key makes the utility ROM trans-
parent. The password-unlock command is issued
through the TAP interface. The 16-word password is
compared to the password in the program space to
determine its validity.
Enabling a pseudo-Von Neumann memory map places
the utility ROM, code, and data memory into a single
contiguous memory map. Use this mapping scheme for
applications that require dynamic program modification
or unique memory configurations.
EXECUTING
FROM
PROGRAM
SPACE
DATA SPACE
(WORD MODE)
1024 x 16
DATA RAM
4K x 16
UTILITY ROM
32K x 16
PROGRAM
FLASH
FFFFh
A3FFh
7FFFh
0000h
A400h
A000h
8FFFh
8000h
8FFFh
8000h
03FFh
0000h
FFFFh
7FFFh
0400h
9000h
DATA SPACE
(BYTE MODE)
8K x 8
UTILITY ROM
2048 x 8
DATA RAM
FFFFh
7FFFh
0400h
03FFh
0000h
9000h
8FFFh
8000h
1024 x 16
DATA RAM
4K x 16
UTILITY ROM
Figure 12. MAXQ7670 Memory Map
32K x 16
PROGRAM
FLASH
7FFFh
0000h
1 PAGE = 256 WORDS
PAGE 127
PAGE 126
PAGE 125
PAGE 2
PAGE 1
PAGE 0
Figure 13. Flash Memory Sector Maps

MAXQ7670EVKIT+

Mfr. #:
Manufacturer:
Maxim Integrated
Description:
Development Boards & Kits - Other Processors MAXQ7670 Eval Kit
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union