0
ECT 358 Lecture 34 Other Platforms
Z8F640x Product Features <ul><li>Enhanced 20MHz Z8 Encore! TM  Processor Core </li></ul><ul><li>The CPU core runs at the c...
New Z8 Encore! TM  Soft Core <ul><li>Soft Core Features   </li></ul><ul><li>76 instructions (runs existing Z8 TM  instruct...
FLASH Program Memory  <ul><li>Flash Features </li></ul><ul><li>Up to 64KB of Flash </li></ul><ul><li>Page erase capability...
Interrupt Controller <ul><li>Interrupt Controller Features </li></ul><ul><li>24 Interrupt Vectors </li></ul><ul><li>12 ext...
General-Purpose I/O (GPIO) <ul><li>Up to 60 available GPIO pins: </li></ul><ul><li>- seven 8-bit ports </li></ul><ul><li>-...
UARTS <ul><li>UART Features </li></ul><ul><li>Full Duplex  </li></ul><ul><li>8 and 9-bit Asynchronous Data transfers </li>...
Serial Peripheral Interface (SPI) <ul><li>SPI Features </li></ul><ul><li>Full-Duplex, Synchronous, Channel  </li></ul><ul>...
Inter-IC (I 2 C) <ul><li>I 2 C Features </li></ul><ul><li>Up 100Kbps in Standard Mode and 400Kbpps in Fast Mode </li></ul>...
Timers <ul><li>Timer Features </li></ul><ul><li>Four 16-bit Reload/Up-counting Timers </li></ul><ul><li>Vectored Timer Int...
Direct Memory Access (DMA) <ul><li>DMA Features </li></ul><ul><li>There are three DMA Channels </li></ul><ul><li>- Two DMA...
Analog-to-Digital Converter (ADC) <ul><li>ADC Features </li></ul><ul><li>10-bit resolution </li></ul><ul><li>12 Channels o...
On-Chip Debugger (OCD) <ul><li>OCD Features </li></ul><ul><li>Single-pin Bi-Directional Open-drain Interface </li></ul><ul...
Reset Control <ul><li>Reset Features </li></ul><ul><li>The Z8 Encore! TM  can be reset with any of the following events: <...
<ul><li>The Eval Board consists of five </li></ul><ul><li>major blocks: </li></ul><ul><li>1. MCU (Z8 Encore! TM ) </li></u...
<ul><li>1. Connect Serial port of the PC to the Z8 Encore!™ Evaluation Board (P1). </li></ul><ul><li>2. Connect the Z8 Enc...
Upcoming SlideShare
Loading in...5
×

L28

908

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
908
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "L28"

  1. 1. ECT 358 Lecture 34 Other Platforms
  2. 2. Z8F640x Product Features <ul><li>Enhanced 20MHz Z8 Encore! TM Processor Core </li></ul><ul><li>The CPU core runs at the crystal frequency </li></ul><ul><li>64KB FLASH Program Memory </li></ul><ul><li>4KB of Register Ram </li></ul><ul><li>Four 16-bit Timers with Capture and PWM’s </li></ul><ul><li>Two Full-Duplex, 9-Bit UARTs w/IrDA Support </li></ul><ul><li>SPI and I 2 C Ports </li></ul><ul><li>Up to 12-Channel, 10-Bit, A/D Conversion </li></ul><ul><li>Up to 60 Available I/O Pins </li></ul><ul><li>Built-in Debugger </li></ul><ul><li>In-Circuit FLASH Programming (ICFP) </li></ul><ul><li>Watch Dog Timer </li></ul><ul><li>Up to 24-Vectored, Priority Based Interrupts </li></ul><ul><li>Available in 40, 44, 64, 68 and 80-pin packages </li></ul>Watchdog Timer Oscillator Crystal, RC Reset Control Z8 Encore! TM 20MHz CPU Register File 4K x 8 DMA Controller FLASH Program Memory 64K x 8 On Chip Debugger UART 1 UART 0 SPI 12-Channel 10-bit A/D Converter I 2 C 2 Port A Port B Port C Port D Port E Port F Port G Port H 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM Interrupt Controller
  3. 3. New Z8 Encore! TM Soft Core <ul><li>Soft Core Features </li></ul><ul><li>76 instructions (runs existing Z8 TM instructions) </li></ul><ul><li>Linear Address Instructions to operate on the 4K Register Space </li></ul><ul><li>Adds LDX for data movement between register pages </li></ul><ul><li>Adds on-chip debug instructions: BRK, TRAP </li></ul><ul><li>Adds instructions for improved performance and code efficiency </li></ul><ul><li>Improved performance over the Z8 TM </li></ul><ul><ul><li>20MHz operating speed </li></ul></ul><ul><ul><li>2-9 cycles per instruction </li></ul></ul><ul><ul><li>Instruction fetch unit </li></ul></ul><ul><ul><li>up to 10-MIPS Operation </li></ul></ul>Watchdog Timer Oscillator Crystal, RC Reset Control eZ8 20MHz CPU Register File 4K x 8 DMA Controller FLASH Program Memory 64K x 8 On Chip Debugger UART 1 UART 0 SPI 12-Channel 10-bit A/D Converter I 2 C 2 Port A Port B Port C Port D Port E Port F Port G Port H 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM Interrupt Controller
  4. 4. FLASH Program Memory <ul><li>Flash Features </li></ul><ul><li>Up to 64KB of Flash </li></ul><ul><li>Page erase capability: 512 bytes/page </li></ul><ul><li>Endurance: 20,000 Cycles (min) </li></ul><ul><li>Up to 100 years of Data Retention </li></ul><ul><li>Byte Program Time: 20uS (min) </li></ul><ul><li>Page Erase Time: 10-12ms (min) </li></ul><ul><li>Mass Erase Time: 200-220ms (min) </li></ul><ul><li>Write Protective mechanism to prevent accidental programming or erasure </li></ul>Watchdog Timer Oscillator Crystal, RC Reset Control Z8 Encore! TM 20MHz CPU Register File 4K x 8 DMA Controller FLASH Program Memory 64K x 8 On Chip Debugger UART 1 UART 0 SPI 12-Channel 10-bit A/D Converter I 2 C 2 Port A Port B Port C Port D Port E Port F Port G Port H 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM Interrupt Controller
  5. 5. Interrupt Controller <ul><li>Interrupt Controller Features </li></ul><ul><li>24 Interrupt Vectors </li></ul><ul><li>12 external GPIO interrupt sources </li></ul><ul><li>- 4 dual-edge interrupts </li></ul><ul><li>- 8 selectable rising or falling edge interrupts </li></ul><ul><li>12 Internal sources </li></ul><ul><li>Three levels of priority </li></ul><ul><li>Interrupt latency is max 16 system clock </li></ul><ul><li>- 2 cycles for Interrupt priority </li></ul><ul><li>- max of 9 cycles to complete current instruction and acknowledge the pending interrupt request </li></ul><ul><li>- 3 cycles for stacking (PC and Flags) </li></ul><ul><li>- 2 cycles for Vector fetching </li></ul>Watchdog Timer Oscillator Crystal, RC Reset Control Z8 Encore! TM 20MHz CPU Register File 4K x 8 DMA Controller FLASH Program Memory 64K x 8 On Chip Debugger UART 1 UART 0 SPI 12-Channel 10-bit A/D Converter I 2 C 2 Port A Port B Port C Port D Port E Port F Port G Port H 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM Interrupt Controller
  6. 6. General-Purpose I/O (GPIO) <ul><li>Up to 60 available GPIO pins: </li></ul><ul><li>- seven 8-bit ports </li></ul><ul><li>- one 4-bit port </li></ul><ul><li>Bit programmable </li></ul><ul><li>- Open-Drain </li></ul><ul><li>- High Drive Enable </li></ul><ul><li>- Stop Mode Recovery Source Enable </li></ul><ul><li>- Data Direction </li></ul><ul><li>- Alternate function </li></ul><ul><li>Each pin can sink or source either 2mA or 20mA . </li></ul>Watchdog Timer Oscillator Crystal, RC Reset Control Z8 Encore! TM 20MHz CPU Register File 4K x 8 DMA Controller FLASH Program Memory 64K x 8 On Chip Debugger UART 1 UART 0 SPI 12-Channel 10-bit A/D Converter I 2 C 2 Port A Port B Port C Port D Port E Port F Port G Port H 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM Interrupt Controller
  7. 7. UARTS <ul><li>UART Features </li></ul><ul><li>Full Duplex </li></ul><ul><li>8 and 9-bit Asynchronous Data transfers </li></ul><ul><li>Even/Odd parity Generation and detection </li></ul><ul><li>1–2 STOP bit selection </li></ul><ul><li>Separate Transmit and Receive Interrupts </li></ul><ul><li>Framing, Parity, Overrun, and Break Detect </li></ul><ul><li>16-bit Reload Baud Rate Generator </li></ul><ul><li>Separate transmit and receive enables </li></ul><ul><li>Receive & transmit data buffer </li></ul><ul><li>Selectable Multi-processor Mode (9-bit UART) </li></ul><ul><li>Built-in IrDA Encoder-Decoder </li></ul><ul><li>Max data rate SysClk/8 </li></ul>Watchdog Timer Oscillator Crystal, RC Reset Control Z8 Encore! TM 20MHz CPU Register File 4K x 8 DMA Controller FLASH Program Memory 64K x 8 On Chip Debugger UART 1 UART 0 SPI 12-Channel 10-bit A/D Converter I 2 C 2 Port A Port B Port C Port D Port E Port F Port G Port H 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM Interrupt Controller
  8. 8. Serial Peripheral Interface (SPI) <ul><li>SPI Features </li></ul><ul><li>Full-Duplex, Synchronous, Channel </li></ul><ul><li>Data Transfer in Master and Slave modes </li></ul><ul><li>Maximum data rate of SysClk/4 </li></ul><ul><li>Error Detection Logic </li></ul><ul><li>Write and Mode Collision Detection </li></ul><ul><li>Four Wire Interface: </li></ul><ul><li>- Clock, </li></ul><ul><li>- Transmit, </li></ul><ul><li>- Receive, </li></ul><ul><li>- Slave Select </li></ul><ul><li>Dedicated BRG </li></ul>Watchdog Timer Oscillator Crystal, RC Reset Control Z8 Encore! TM 20MHz CPU Register File 4K x 8 DMA Controller FLASH Program Memory 64K x 8 On Chip Debugger UART 1 UART 0 SPI 12-Channel 10-bit A/D Converter I 2 C 2 Port A Port B Port C Port D Port E Port F Port G Port H 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM Interrupt Controller
  9. 9. Inter-IC (I 2 C) <ul><li>I 2 C Features </li></ul><ul><li>Up 100Kbps in Standard Mode and 400Kbpps in Fast Mode </li></ul><ul><li>7 or 10-bit addressing for slaves </li></ul><ul><li>Unrestricted amount of data transfer </li></ul><ul><li>Only Master Mode is supported </li></ul><ul><li>Automatic configuration for open drain </li></ul><ul><li>Support for slave clock stretching </li></ul><ul><li>Dedicated BRG </li></ul><ul><li>Two bi-directional bus lines: </li></ul><ul><li>- serial data (SDA) line </li></ul><ul><li>- serial clock (SCL) line </li></ul>Watchdog Timer Oscillator Crystal, RC Reset Control Z8 Encore! TM 20MHz CPU Register File 4K x 8 DMA Controller FLASH Program Memory 64K x 8 On Chip Debugger UART 1 UART 0 SPI 12-Channel 10-bit A/D Converter I 2 C 2 Port A Port B Port C Port D Port E Port F Port G Port H 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM Interrupt Controller
  10. 10. Timers <ul><li>Timer Features </li></ul><ul><li>Four 16-bit Reload/Up-counting Timers </li></ul><ul><li>Vectored Timer Interrupt </li></ul><ul><li>7-bit Pre-Scale </li></ul><ul><li>Timer Output Pin </li></ul><ul><li>Timer input for Gated and Capture Modes </li></ul><ul><li>Timer Operating Modes: </li></ul><ul><li>- One-Shot </li></ul><ul><li>- Continuous </li></ul><ul><li>- Counter </li></ul><ul><li>- PWM </li></ul><ul><li>- Capture </li></ul><ul><li>- Compare </li></ul><ul><li>- Gated </li></ul><ul><li>- Capture/Compare </li></ul>Watchdog Timer Oscillator Crystal, RC Reset Control Z8 Encore! TM 20MHz CPU Register File 4K x 8 DMA Controller FLASH Program Memory 64K x 8 On Chip Debugger UART 1 UART 0 SPI 12-Channel 10-bit A/D Converter I 2 C 2 Port A Port B Port C Port D Port E Port F Port G Port H 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM Interrupt Controller
  11. 11. Direct Memory Access (DMA) <ul><li>DMA Features </li></ul><ul><li>There are three DMA Channels </li></ul><ul><li>- Two DMA channels are used for transfer between register RAM and peripherals. </li></ul><ul><li>- The third DMA is used for continuous ADC updates. </li></ul><ul><li>Vectored DMA Interrupts </li></ul><ul><li>DMAx Transfers either a single byte or two-byte word </li></ul>Watchdog Timer Oscillator Crystal, RC Reset Control Z8 Encore! TM 20MHz CPU Register File 4K x 8 DMA Controller FLASH Program Memory 64K x 8 On Chip Debugger UART 1 UART 0 SPI 12-Channel 10-bit A/D Converter I 2 C 2 Port A Port B Port C Port D Port E Port F Port G Port H 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM Interrupt Controller
  12. 12. Analog-to-Digital Converter (ADC) <ul><li>ADC Features </li></ul><ul><li>10-bit resolution </li></ul><ul><li>12 Channels of Single-Ended ADC </li></ul><ul><li>Sigma-Delta converter for better accuracy </li></ul><ul><li>Input Signals Multiplexed with Standard I/O pads to reduce pin count </li></ul><ul><li>Capable of sampling up to 40KHz in continuous mode and 4KHz in single-step mode </li></ul><ul><li>Vectored ADC Interrupts on conversion completion </li></ul><ul><li>2.1V Internal Reference Voltage </li></ul><ul><li>0-VDD External Reference Voltage </li></ul><ul><li>Analog input range: 0 - Vref </li></ul>Watchdog Timer Oscillator Crystal, RC Reset Control Z8 Encore! TM 20MHz CPU Register File 4K x 8 DMA Controller FLASH Program Memory 64K x 8 On Chip Debugger UART 1 UART 0 SPI 12-Channel 10-bit A/D Converter I 2 C 2 Port A Port B Port C Port D Port E Port F Port G Port H 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM Interrupt Controller
  13. 13. On-Chip Debugger (OCD) <ul><li>OCD Features </li></ul><ul><li>Single-pin Bi-Directional Open-drain Interface </li></ul><ul><li>Data sent on single-pin using asynchronous data standard as defined in RS-232 </li></ul><ul><li>Max speed of transfer SysClk/8 </li></ul><ul><li>OCD Advantages </li></ul><ul><li>Keeps pin count low with single pin interface </li></ul><ul><li>OCD helps read/write to registers, programming Flash, setting breakpoints and executing code </li></ul>Watchdog Timer Oscillator Crystal, RC Reset Control Z8 Encore! TM 20MHz CPU Register File 4K x 8 DMA Controller FLASH Program Memory 64K x 8 On Chip Debugger UART 1 UART 0 SPI 12-Channel 10-bit A/D Converter I 2 C 2 Port A Port B Port C Port D Port E Port F Port G Port H 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM Interrupt Controller
  14. 14. Reset Control <ul><li>Reset Features </li></ul><ul><li>The Z8 Encore! TM can be reset with any of the following events: </li></ul><ul><ul><li>Reset Pin Assertion </li></ul></ul><ul><ul><li>Power-on Reset </li></ul></ul><ul><ul><li>Watchdog Timer Time-out (When configured to initiate a reset) </li></ul></ul><ul><ul><li>Voltage Brown-out </li></ul></ul><ul><ul><li>Stop Mode Recovery (SMR) </li></ul></ul><ul><ul><ul><li>Watchdog Timer Time-out </li></ul></ul></ul><ul><ul><ul><li>GPIO port Input Pin Transition </li></ul></ul></ul>Watchdog Timer Oscillator Crystal, RC Reset Control Z8 Encore! TM 20MHz CPU Register File 4K x 8 DMA Controller FLASH Program Memory 64K x 8 On Chip Debugger UART 1 UART 0 SPI 12-Channel 10-bit A/D Converter I 2 C 2 Port A Port B Port C Port D Port E Port F Port G Port H 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM 16-bit Counter/ Timer/ Cap/ PWM Interrupt Controller
  15. 15. <ul><li>The Eval Board consists of five </li></ul><ul><li>major blocks: </li></ul><ul><li>1. MCU (Z8 Encore! TM ) </li></ul><ul><li>2. Serial communication devices (SPI and I 2 C) </li></ul><ul><li>3. Power and communication interfaces </li></ul><ul><li>4. LED Array </li></ul><ul><li>5. Expansion Module Headers </li></ul><ul><li>6. IrDA Port </li></ul><ul><li>7. Target Module Interface </li></ul>Major Z8F64 Eval Board Blocks
  16. 16. <ul><li>1. Connect Serial port of the PC to the Z8 Encore!™ Evaluation Board (P1). </li></ul><ul><li>2. Connect the Z8 Encore!™ Target Module Interface Board to the Z8 TM (P4). </li></ul><ul><li>3. Apply power to the Z8 Encore!™ Evaluation Board (P3). </li></ul>Setting Up The Evaluation Board
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×