Precise Analog Emulation and True InSystemProgrammability - PowerPoint PPT Presentation

1 / 35
About This Presentation
Title:

Precise Analog Emulation and True InSystemProgrammability

Description:

Generates an error condition when selected CPU clock is below 25kHz ... COP8 World's Smallest Flash C. N. AMC. Page 25. COP8FLASH Derivatives ... – PowerPoint PPT presentation

Number of Views:46
Avg rating:3.0/5.0
Slides: 36
Provided by: rayka
Category:

less

Transcript and Presenter's Notes

Title: Precise Analog Emulation and True InSystemProgrammability


1
Precise Analog EmulationandTrue
In-System-Programmability
  • Introduction toCOP8FLASHMicrocontrollers
  • Fall 2000/ Updated 11/01

2
Agenda
  • COP8 Architecture
  • FLASH Memory
  • FLASH ISP
  • Virtual EEPROM
  • Option Register
  • On-Chip Peripherals
  • SRAM
  • Timers
  • USART, MICROWIRE?
  • Brownout Reset
  • WATCHDOG?
  • I/O Ports
  • Analog Function Blocks
  • Op-Amps
  • Analog Multiplexor
  • A/D Converter
  • Power Save Modes
  • HALT, IDLE
  • Multi-Input-Wake-Up (MIWU)
  • Dual Clock Oscillator
  • Packaging
  • Development Support
  • Software Tools
  • In-Circuit-Emulator (ICE)
  • COP8 Product Roadmap
  • Conclusion

3
COP8 CORE
8 BIT CORE
Modified HARVARD Architecture
CLOCK
HALT
INTERRUPT CONTROLLER
IDLE
MICROWIRE SPI
WAKE UP
RESET
ALU
CPU Registers
4
COP8Flash PERIPHERALS
Full Duplex USART
Brown Out
Oscillator Dual Clock Clock Doubler
10 Bit A/D
WATCHDOG
Clock Monitor
IDLE Timer (T0)
T2 (50ns)
1KB
1KB
32KB
T3 (50ns)
UP
RAM
BOOT ROM
16 Bit Timers
FLASH
8
5
FLASH Memory
  • 32K/8K/4K Byte
  • 128/64 Byte per Sector
  • Fast Sector/Chip Erase ( Page 1ms, Mass 8ms )
  • High Endurance - 100K Erase/Write Cycle
  • Supports True In System Programming
  • Single Supply Operation
  • Integrated High Voltage Generator
  • Self Timed Write and Erase operations
  • Used to Store COP8 Configuration Register (Option
    Register)

6
ISP and VIRTUAL EEPROM
  • Virtual EEPROM
  • Uses FLASH memory for non-volatile data
  • Size can grow as your needs do
  • Updated in single byte or blocks
  • Uses ROM based utilities
  • Benefits
  • Eliminate external EEPROM or battery backed SRAM
  • Variable size EEPROM (up to entire FLASH memory
    available for EEPROM use)
  • Best of all Its free

7
EEPROM Endurance Improvement
  • Recall FLASH into SRAM
  • Update Content of SRAM
  • Selectively Store/Discard SRAM
  • OR
  • Keep backup copies in FLASH in case of power
    failure

FLASH
SRAM
8
VIRTUAL EEPROM UPDATE
1
Y
2
Same Pattern
Update SRAM with new data pattern
Recall Page content into SRAM
Store SRAM to FLASH
2
Y
Erase FLASH Page
Another Page
1
DONE
9
VIRTUAL EEPROM BYTE WRITE
  • Example Byte Write
  • Set the address
  • LD ISPADHI, HI_ADDR
  • LD ISPADLO, LO_ADDR
  • Update data write register
  • LD ISPWR, Data_To_Write
  • Set the KEY bit
  • LD ISPKEY, 0x98
  • Call ISP write routine
  • JSRB CWRITEBF

10
VIRTUAL EEPROM Timing
  • Byte Write (_at_10MHz) 140ms
  • Block Write (_at_10MHz) 120ms/byte
  • No Applications Program Exec. During write cycle
  • Interrupts are latched and can be processed
    following write cycle

11
Power Save Modes
  • Dual Oscillator support
  • Halt Mode, high speed oscillator stopped
  • Idle Mode, timer T0 and selected oscillator
    active
  • Multi-Input Wakeup, to exit power save modes
    based on external events
  • Operating Voltages down to 2.7V

12
COP8FLASH Oscillator modes
20MHz CPU clock
High Speed Mode
Reset
2MHz
Dual Clock Slow
Dual Clock Fast
64kHz CPU clock
20MHz CPU clock
32kHz
32kHz
All frequency values assume 10MHz/32kHz external
oscillators
13
COP8FLASH Clock Modes
14
Multi-Input Wakeup
WKEDG
WKPND
0
L0
L1
Reset HALT IDLE
L2
L3
L4
L5
L6
L7
Port L must be Input
0
0
0
0
0
0
0
0
LPEN 0
WKEN
0
ICNTRL
Internal Data Bus
15
COP8FLASH On-Chip Peripherals
  • SRAM
  • The Special Function Segment (128) Dedicated for
    memory mapped on-chip resources and registers
  • Additional memory blocks available for variable
    storage
  • Timers
  • Idle timer
  • 3-General purpose

16
COP8FLASH Timers
  • Timers
  • T0 16-bit free-running Idle timer
  • T1 16-bit multifunction timer, clocked by
    instruction clock (500ns_at_10MHz oscillator)
  • T2, T3 16-bit high-speed multifunction timers,
    clocked at instruction clock or CPU clock
    (500ns/50ns)
  • T1,T2,T3 Operating Modes
  • Processor Independent PWM
  • Counter
  • Event Capture

17
Multifunction Timer Block Diagram
18
COP8FLASH On-Chip Peripherals
  • MICROWIRE/Plus?
  • Supports both MICROWIRE/Plus and SPI
  • Operate in Master/Slave mode
  • 3-Wire Synch Serial Interface(CLK, SO, SI)
  • CPU independent
  • USART
  • Synch/Asynch Operation
  • USART - 7,8,9 Data 1,2 Stop, Parity (all)
  • Break generation/detection
  • Internal Baud Rate Generator
  • Split Baud Rate

19
COP8FLASH Brownout
  • Generates Reset and keeps device in Reset as long
    as Vcc is below the brownout trip voltage
  • Brownout trip voltage available in two settings
  • COP8SBR 2.7-2.9V
  • COP8SCR 4.2-4.5V
  • COP8SDR No Brownout
  • Generates Power-On Reset

20
COP8FLASH System Monitoring Functions
  • Windowed Watchdog
  • Fixed Lower Limit (2K TIDLE timer tick)
  • Upper Window Select (8K - 64K IDLE timer tick)
  • Clock Monitor
  • Detects slow or stopped clocks to CPU
  • Generates an error condition when selected CPU
    clock is below 25kHz
  • Provides same type of safety as a separate
    oscillator for the watchdog timer

7
6
5
4
3
2
1
0
Service Register (WDSVR)
21
COP8FLASH Windowed Watchdog
Upper Window
Low Window
Time


Too Early
WDSVR write pulse
Too Late
On Time




G1/WDOUT
16-32 tIDLE
16-32 tIDLE
22
COP8FLASH I/O Structure
  • I/O High sink/source capability (10mA/1.6mA)
  • I/O pins read back(i.e., true external pin
    status)
  • Individually software configurable I/O options
    for each pin( Hi-Z, Open Drain, Weak Pullup,
    Push-Pull)

23
COP8FLASH A/D Converter
  • 10-bit SAR A/D
  • Single Ended/Differential mode
  • Versatile 16 Channel MUX
  • Internal connection to A/D
  • External I/O pad

CH 0
MUX
0 1 1 0 1 0 0 1 1 0
A/D
CH 15
24
COP8 Worlds Smallest Flash µC
  • Advantages
  • Significant Board space savings.
  • 44 LLP is 66 smaller than PQFP 44
  • Just 7mm7mm
  • More I/O per mm2.
  • 44LLP 40 I/Os vs. 8pinSO 6 I/O
  • Available NOW
  • Also in 48TSSOP and 56TSSOP

25
COP8FLASH Derivatives
COP8CxR COP8CxE COP8CFE COP8CxC
COP8CFC
FLASH 32k 8k 8k
4k 4k RAM 1k 256
256 128 128 A/D yes yes
yes yes
yes Brown out yes yes no
yes no Dual Clock yes yes no
yes no UART yes yes no
yes no 16-bit timers T1,T2 T1,T2
T1,T2 T1,T2 T1,T2
T3 Availability Q2Y01 Q4Y01
Q4Y01 Q1Y02 Q1Y02 Available
Packages 44 ( PLCC, LLP ) 48 ( TSSOP
) 56 ( TSSOP ) 68 ( PLCC ) Temperature
Range Industrial -40...85C Extended
-40...125C
26
COP8FLASH ON-CHIP FEATURES
  • Common Features
  • IDLE timer (T0)
  • MIWU
  • Watchdog/Clock monitor
  • Clock Doubler
  • Virtual EEPROM
  • In-System-Programmable (ISP)
  • All Port Outputs are High Current
  • Optional Features
  • ADC (10 bit resolution /16 channel)
  • Dual OpAmp with Temp Sensor (Q2Y01)
  • USART
  • Extra I/O Ports
  • Dual Clock
  • Brown-Out Reset

27
COP8FLASH Application Examples
  • Whitegoods and Appliances
  • Store large amount of history data in Virtual
    EEPROM
  • Remote firmware updates
  • Quick end of line customization
  • Smart Sensor Systems
  • Adaptive Calibration
  • Up to 16-Channel 10-bit A/D
  • A/D supports ext. filter/amplification
  • Handheld Entertainment Units
  • Dual-Clock/low-power
  • Multi-Input-Wake-Up facilitates lowest power key
    scan
  • 10-bit A/D for touch screen interface

28
COP8 Tools
  • Development and Support Tools
  • WCOP8 Integrated Development Environment (IDE)
    (KKD 3.01) with NSC Assembler (NSASM 5.3)
  • IAR Embedded Workbench Tool Suite(ASM, C)
  • Byte Craft C-Compiler (BC-C 3.0)
  • MetaLink In-Circuit Emulators
  • Flash Starter Kit
  • ICU Reference Design Boards
  • COP8FLASH In-System-Programming Software
  • Online WEBENCH development environment.
  • http//www.national.com/cop8/

29
In System Emulation Support
VCC RESET G0 G1 G2 GND G3
  • Built-In Hardware Monitor
  • 14-pin Interface Header
  • ICE without Intrusion

COP8FLASH
System
  • Benefits
  • Accurate/Precise Analog Signals Processing and
    Verification
  • Eliminate Socket, Increase System Reliability
  • Added In Field Debugging and Upgrading
  • Lower ISE cost, eliminates bond-out chip

30
In-System Emulators
Features Included in All COP8-EM/DM/IMFlash
  • Symbolic Debug
  • Source-Level Debug
  • Changed-Value Highlighting
  • Watch Window(s)
  • Code Memory Window(s)
  • Internal Data Memory Window(s)
  • Power Supply Included
  • Serial Cable Included
  • Real-time Emulation
  • Max. Frequency 20 MHz
  • Low Voltage Support
  • Programming Capability
  • All Pinouts Supported
  • RS-232 Connection to PC
  • 115.2Kb Max Baud Rate

31
COP8FLASH Tools
  • order at
  • www.national.com/cop8flash
  • Three emulators
  • Entry Level
  • Order Number COP8-EMFLASH-00
  • Price 235.-
  • Mid-Level
  • Order Number COP8-DMFLASH-00
  • Price 800.-
  • Full-Featured
  • Order Number COP8-IMFLASH-00
  • Price 1995.-

32
COP8FLASH Reference Design
  • order at
  • www.national.com/cop8flash
  • COP8FLASH reference design
  • order number COP8-REF-FL1
  • price 99.-
  • Multimeter - On-board/Off-board
    Voltage/Current/Frequency Measurements
  • Communication/InterfacesRS232/485, IrDA, uWire,
    I/O
  • Matrix LC Display
  • Expansion Connectors (keypad, etc.)
  • Sensors - Temperature, Light
  • RF option
  • Emulation connector
  • In-System Programming connector
  • COP8 Firmware Source code provided
  • Host PC SW provided

33
Web Site
  • www.national.com/cop8flash
  • Your information source for everything related to
    COP8FLASH
  • WEBENCH online development
  • Datasheets, Manuals, Application Notes
  • Free In System Programming Software
  • Development Tools
  • Order Samples, Parts and Tools

34
In-System Programming Software
  • free download at
  • www.national.com/cop8

35
COP8 Software Collateral
  • order at
  • www.national.com/cop8
  • COP8 CDROMs
  • order number COP8-NSEVAL
  • WCOP8 IDE (Integrated Development Environment),
    COP8-NSASM (Assembler), COP8-MLSIM (Simulator),
    COP8C evaluation version, DriveWay COP8
    evaluation version, Manuals, COP8 datasheets and
    application notes
  • price 3 shipping (if ordered via web, else
    free)
  • order number COP8-NSDEV
  • same as COP8-NSEVAL, but contains licensed
    version of Metalink Windows debugger and
    simulator. This CD ships with all development
    tools.
  • Price 10.
Write a Comment
User Comments (0)
About PowerShow.com