Z8F042AHH020EG Zilog, Z8F042AHH020EG Datasheet - Page 133

IC ENCORE XP MCU FLASH 4K 20SSOP

Z8F042AHH020EG

Manufacturer Part Number
Z8F042AHH020EG
Description
IC ENCORE XP MCU FLASH 4K 20SSOP
Manufacturer
Zilog
Series
Encore!® XP®r
Datasheet

Specifications of Z8F042AHH020EG

Core Processor
Z8
Core Size
8-Bit
Speed
20MHz
Connectivity
IrDA, UART/USART
Peripherals
Brown-out Detect/Reset, LED, LVD, POR, PWM, Temp Sensor, WDT
Number Of I /o
17
Program Memory Size
4KB (4K x 8)
Program Memory Type
FLASH
Eeprom Size
128 x 8
Ram Size
1K x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 3.6 V
Data Converters
A/D 7x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 105°C
Package / Case
20-SSOP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
269-4156
Z8F042AHH020EG
PS022517-0508
SPI Baud Rate Generator
necessary for SS to deassert between characters to generate the interrupt. The SPI in
SLAVE mode also generates an interrupt if the SS signal deasserts prior to transfer of all
the bits in a character (see description of Slave Abort Error). Writing a 1 to the IRQ bit in
the SPI Status Register clears the pending SPI interrupt request. The
cleared to 0 by the ISR to generate future interrupts. To start the transfer process, an SPI
interrupt can be forced by software writing a 1 to the STR bit in the SPICTL Register.
If the SPI is disabled, an SPI interrupt can be generated by a BRG time-out. This timer
function must be enabled by setting the BIRQ bit in the SPICTL Register. This BRG
time-out does not set the IRQ bit in the SPISTAT Register, just the SPI interrupt bit in the
interrupt controller.
In SPI MASTER mode, the BRG creates a lower frequency serial clock (SCK) for data
transmission synchronization between the Master and the external Slave. The input to the
BRG is the system clock. The SPI Baud Rate High and Low Byte Registers combine to
form a 16-bit reload value, BRG[15:0], for the SPI Baud Rate Generator. The SPI baud
rate is calculated using the following equation:
Minimum baud rate is obtained by setting BRG[15:0] to 0000H for a clock divisor value
of (2 X 65536 = 131072).
When the SPI is disabled, BRG functions as a basic 16-bit timer with interrupt on
time-out. Follow the steps below to configure BRG as a timer with interrupt on time-out:
1. Disable the SPI by clearing the SPIEN bit in the SPI Control Register to 0.
2. Load the desired 16-bit count value into the SPI Baud Rate High and Low Byte
3. Enable BRG timer function and associated interrupt by setting the BIRQ bit in the SPI
When configured as a general-purpose timer, the interrupt interval is calculated using the
following equation:
Interrupt Interval (s) = System Clock Period (s) ×BRG[15:0] ]
registers.
Control Register to 1.
SPI Baud Rate (bits/s)
=
System Clock Frequency (Hz)
------------------------------------------------------------------------------ -
2xBRG[15:0]
Z8 Encore! XP
Product Specification
Serial Peripheral Interface
IRQ
®
bit must be
F0822 Series
120

Related parts for Z8F042AHH020EG