html5-img
1 / 16

ECT 358

ECT 358. Lecture 34 Other Platforms. Z8F640x Product Features. Enhanced 20MHz Z8 Encore! TM Processor Core The CPU core runs at the crystal frequency 64KB FLASH Program Memory 4KB of Register Ram Four 16-bit Timers with Capture and PWM’s

gates
Télécharger la présentation

ECT 358

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ECT 358 Lecture 34 Other Platforms

  2. Z8F640x Product Features • Enhanced 20MHz Z8 Encore!TM Processor Core • The CPU core runs at the crystal frequency • 64KB FLASH Program Memory • 4KB of Register Ram • Four 16-bit Timers with Capture and PWM’s • Two Full-Duplex, 9-Bit UARTs w/IrDA Support • SPI and I2C Ports • Up to 12-Channel, 10-Bit, A/D Conversion • Up to 60 Available I/O Pins • Built-in Debugger • In-Circuit FLASH Programming (ICFP) • Watch Dog Timer • Up to 24-Vectored, Priority Based Interrupts • Available in 40, 44, 64, 68 and 80-pin packages Watchdog Oscillator Crystal, RC Timer 12-Channel 10-bit A/D Converter Reset 16-bit Counter/ Control Timer/ Cap/ PWM 16-bit Counter/ Z8 Encore!TM Timer/ Cap/ PWM 20MHz CPU 16-bit Counter/ Timer/ Cap/ PWM FLASH Program 16-bit Counter/ Memory Timer/ Cap/ PWM 64K x 8 Register File I2C 2 4K x 8 SPI DMA Controller UART 0 On Chip Interrupt Debugger Controller UART 1 Port A Port C Port D Port B Port E Port F Port G Port H

  3. New Z8 Encore!TM Soft Core • Soft Core Features • 76 instructions (runs existing Z8TM instructions) • Linear Address Instructions to operate on the 4K Register Space • Adds LDX for data movement between register pages • Adds on-chip debug instructions: BRK, TRAP • Adds instructions for improved performance and code efficiency • Improved performance over the Z8TM • 20MHz operating speed • 2-9 cycles per instruction • Instruction fetch unit • up to 10-MIPS Operation Watchdog Oscillator Crystal, RC Timer 12-Channel 10-bit A/D Converter Reset 16-bit Counter/ Control Timer/ Cap/ PWM 16-bit Counter/ eZ8 Timer/ Cap/ PWM 20MHz CPU 16-bit Counter/ Timer/ Cap/ PWM FLASH Program 16-bit Counter/ Memory Timer/ Cap/ PWM 64K x 8 Register File I2C 2 4K x 8 SPI DMA Controller UART 0 On Chip Interrupt Debugger Controller UART 1 Port A Port C Port D Port B Port E Port F Port G Port H

  4. FLASH Program Memory • Flash Features • Up to 64KB of Flash • Page erase capability: 512 bytes/page • Endurance: 20,000 Cycles (min) • Up to 100 years of Data Retention • Byte Program Time: 20uS (min) • Page Erase Time: 10-12ms (min) • Mass Erase Time: 200-220ms (min) • Write Protective mechanism to prevent accidental programming or erasure Watchdog Oscillator Crystal, RC Timer 12-Channel 10-bit A/D Converter Reset 16-bit Counter/ Control Timer/ Cap/ PWM 16-bit Counter/ Z8 Encore!TM Timer/ Cap/ PWM 20MHz CPU 16-bit Counter/ Timer/ Cap/ PWM FLASH Program 16-bit Counter/ Memory Timer/ Cap/ PWM 64K x 8 Register File I2C 2 4K x 8 SPI DMA Controller UART 0 On Chip Interrupt Debugger Controller UART 1 Port A Port C Port D Port B Port E Port F Port G Port H

  5. Interrupt Controller Watchdog Oscillator • Interrupt Controller Features • 24 Interrupt Vectors • 12 external GPIO interrupt sources • - 4 dual-edge interrupts • - 8 selectable rising or falling edge interrupts • 12 Internal sources • Three levels of priority • Interrupt latency is max 16 system clock • - 2 cycles for Interrupt priority • - max of 9 cycles to complete current instruction and acknowledge the pending interrupt request • - 3 cycles for stacking (PC and Flags) • - 2 cycles for Vector fetching Crystal, RC Timer 12-Channel 10-bit A/D Converter Reset 16-bit Counter/ Control Timer/ Cap/ PWM 16-bit Counter/ Z8 Encore!TM Timer/ Cap/ PWM 20MHz CPU 16-bit Counter/ Timer/ Cap/ PWM FLASH Program 16-bit Counter/ Memory Timer/ Cap/ PWM 64K x 8 Register File I2C 2 4K x 8 SPI DMA Controller UART 0 On Chip Interrupt Debugger Controller UART 1 Port A Port C Port D Port B Port E Port F Port G Port H

  6. General-Purpose I/O (GPIO) Watchdog Oscillator Crystal, RC Timer • Up to 60 available GPIO pins: • - seven 8-bit ports • - one 4-bit port • Bit programmable • - Open-Drain • - High Drive Enable • - Stop Mode Recovery Source Enable • - Data Direction • - Alternate function • Each pin can sink or source either 2mA or 20mA. 12-Channel 10-bit A/D Converter Reset 16-bit Counter/ Control Timer/ Cap/ PWM 16-bit Counter/ Z8 Encore!TM Timer/ Cap/ PWM 20MHz CPU 16-bit Counter/ Timer/ Cap/ PWM FLASH Program 16-bit Counter/ Memory Timer/ Cap/ PWM 64K x 8 Register File I2C 2 4K x 8 SPI DMA Controller UART 0 On Chip Interrupt Debugger Controller UART 1 Port A Port C Port D Port B Port E Port F Port G Port H

  7. UARTS • UART Features • Full Duplex • 8 and 9-bit Asynchronous Data transfers • Even/Odd parity Generation and detection • 1–2 STOP bit selection • Separate Transmit and Receive Interrupts • Framing, Parity, Overrun, and Break Detect • 16-bit Reload Baud Rate Generator • Separate transmit and receive enables • Receive & transmit data buffer • Selectable Multi-processor Mode (9-bit UART) • Built-in IrDA Encoder-Decoder • Max data rate SysClk/8 Watchdog Oscillator Crystal, RC Timer 12-Channel 10-bit A/D Converter Reset 16-bit Counter/ Control Timer/ Cap/ PWM 16-bit Counter/ Z8 Encore!TM Timer/ Cap/ PWM 20MHz CPU 16-bit Counter/ Timer/ Cap/ PWM FLASH Program 16-bit Counter/ Memory Timer/ Cap/ PWM 64K x 8 Register File I2C 2 4K x 8 SPI DMA Controller UART 0 On Chip Interrupt Debugger Controller UART 1 Port A Port C Port D Port B Port E Port F Port G Port H

  8. Serial Peripheral Interface (SPI) • SPI Features • Full-Duplex, Synchronous, Channel • Data Transfer in Master and Slave modes • Maximum data rate of SysClk/4 • Error Detection Logic • Write and Mode Collision Detection • Four Wire Interface: • - Clock, • - Transmit, • - Receive, • - Slave Select • Dedicated BRG Watchdog Oscillator Crystal, RC Timer 12-Channel 10-bit A/D Converter Reset 16-bit Counter/ Control Timer/ Cap/ PWM 16-bit Counter/ Z8 Encore!TM Timer/ Cap/ PWM 20MHz CPU 16-bit Counter/ Timer/ Cap/ PWM FLASH Program 16-bit Counter/ Memory Timer/ Cap/ PWM 64K x 8 Register File I2C 2 4K x 8 SPI DMA Controller UART 0 On Chip Interrupt Debugger Controller UART 1 Port A Port C Port D Port B Port E Port F Port G Port H

  9. Inter-IC (I2C) • I2C Features • Up 100Kbps in Standard Mode and 400Kbpps in Fast Mode • 7 or 10-bit addressing for slaves • Unrestricted amount of data transfer • Only Master Mode is supported • Automatic configuration for open drain • Support for slave clock stretching • Dedicated BRG • Two bi-directional bus lines: • - serial data (SDA) line • - serial clock (SCL) line Watchdog Oscillator Crystal, RC Timer 12-Channel 10-bit A/D Converter Reset 16-bit Counter/ Control Timer/ Cap/ PWM 16-bit Counter/ Z8 Encore!TM Timer/ Cap/ PWM 20MHz CPU 16-bit Counter/ Timer/ Cap/ PWM FLASH Program 16-bit Counter/ Memory Timer/ Cap/ PWM 64K x 8 Register File I2C 2 4K x 8 SPI DMA Controller UART 0 On Chip Interrupt Debugger Controller UART 1 Port A Port C Port D Port B Port E Port F Port G Port H

  10. Timers • Timer Features • Four 16-bit Reload/Up-counting Timers • Vectored Timer Interrupt • 7-bit Pre-Scale • Timer Output Pin • Timer input for Gated and Capture Modes • Timer Operating Modes: • - One-Shot • - Continuous • - Counter • - PWM • - Capture • - Compare • - Gated • - Capture/Compare Watchdog Oscillator Crystal, RC Timer 12-Channel 10-bit A/D Converter Reset 16-bit Counter/ Control Timer/ Cap/ PWM 16-bit Counter/ Z8 Encore!TM Timer/ Cap/ PWM 20MHz CPU 16-bit Counter/ Timer/ Cap/ PWM FLASH Program 16-bit Counter/ Memory Timer/ Cap/ PWM 64K x 8 Register File I2C 2 4K x 8 SPI DMA Controller UART 0 On Chip Interrupt Debugger Controller UART 1 Port A Port C Port D Port B Port E Port F Port G Port H

  11. Direct Memory Access (DMA) • DMA Features • There are three DMA Channels • - Two DMA channels are used for transfer between register RAM and peripherals. • - The third DMA is used for continuous ADC updates. • Vectored DMA Interrupts • DMAx Transfers either a single byte or two-byte word Watchdog Oscillator Crystal, RC Timer 12-Channel 10-bit A/D Converter Reset 16-bit Counter/ Control Timer/ Cap/ PWM 16-bit Counter/ Z8 Encore!TM Timer/ Cap/ PWM 20MHz CPU 16-bit Counter/ Timer/ Cap/ PWM FLASH Program 16-bit Counter/ Memory Timer/ Cap/ PWM 64K x 8 Register File I2C 2 4K x 8 SPI DMA Controller UART 0 On Chip Interrupt Debugger Controller UART 1 Port A Port C Port D Port B Port E Port F Port G Port H

  12. Analog-to-Digital Converter (ADC) • ADC Features • 10-bit resolution • 12 Channels of Single-Ended ADC • Sigma-Delta converter for better accuracy • Input Signals Multiplexed with Standard I/O pads to reduce pin count • Capable of sampling up to 40KHz in continuous mode and 4KHz in single-step mode • Vectored ADC Interrupts on conversion completion • 2.1V Internal Reference Voltage • 0-VDD External Reference Voltage • Analog input range: 0 - Vref Watchdog Oscillator Crystal, RC Timer 12-Channel 10-bit A/D Converter Reset 16-bit Counter/ Control Timer/ Cap/ PWM 16-bit Counter/ Z8 Encore!TM Timer/ Cap/ PWM 20MHz CPU 16-bit Counter/ Timer/ Cap/ PWM FLASH Program 16-bit Counter/ Memory Timer/ Cap/ PWM 64K x 8 Register File I2C 2 4K x 8 SPI DMA Controller UART 0 On Chip Interrupt Debugger Controller UART 1 Port A Port C Port D Port B Port E Port F Port G Port H

  13. On-Chip Debugger (OCD) • OCD Features • Single-pin Bi-Directional Open-drain Interface • Data sent on single-pin using asynchronous data standard as defined in RS-232 • Max speed of transfer SysClk/8 • OCD Advantages • Keeps pin count low with single pin interface • OCD helps read/write to registers, programming Flash, setting breakpoints and executing code Watchdog Oscillator Crystal, RC Timer 12-Channel 10-bit A/D Converter Reset 16-bit Counter/ Control Timer/ Cap/ PWM 16-bit Counter/ Z8 Encore!TM Timer/ Cap/ PWM 20MHz CPU 16-bit Counter/ Timer/ Cap/ PWM FLASH Program 16-bit Counter/ Memory Timer/ Cap/ PWM 64K x 8 Register File I2C 2 4K x 8 SPI DMA Controller UART 0 On Chip Interrupt Debugger Controller UART 1 Port A Port C Port D Port B Port E Port F Port G Port H

  14. Reset Control • Reset Features • The Z8 Encore!TM can be reset with any of the following events: • Reset Pin Assertion • Power-on Reset • Watchdog Timer Time-out (When configured to initiate a reset) • Voltage Brown-out • Stop Mode Recovery (SMR) • Watchdog Timer Time-out • GPIO port Input Pin Transition Watchdog Oscillator Crystal, RC Timer 12-Channel 10-bit A/D Converter Reset 16-bit Counter/ Control Timer/ Cap/ PWM 16-bit Counter/ Z8 Encore!TM Timer/ Cap/ PWM 20MHz CPU 16-bit Counter/ Timer/ Cap/ PWM FLASH Program 16-bit Counter/ Memory Timer/ Cap/ PWM 64K x 8 Register File I2C 2 4K x 8 SPI DMA Controller UART 0 On Chip Interrupt Debugger Controller UART 1 Port A Port C Port D Port B Port E Port F Port G Port H

  15. Major Z8F64 Eval Board Blocks The Eval Board consists of five major blocks: 1. MCU (Z8 Encore!TM) 2. Serial communication devices (SPI and I2C) 3. Power and communication interfaces 4. LED Array 5. Expansion Module Headers 6. IrDA Port 7. Target Module Interface

  16. Setting Up The Evaluation Board 1. Connect Serial port of the PC to the Z8 Encore!™ Evaluation Board (P1). 2. Connect the Z8 Encore!™ Target Module Interface Board to the Z8TM (P4). 3. Apply power to the Z8 Encore!™ Evaluation Board (P3).

More Related