English
Language : 

COP8SBR9_15 Datasheet, PDF (34/104 Pages) Texas Instruments – 8-Bit CMOS Flash Based Microcontroller with 32k Memory
COP8SBR9, COP8SCR9, COP8SDR9
SNOS537I – JUNE 2000 – REVISED MARCH 2013
www.ti.com
As described in Option Register, there is a bit, FLEX, that controls whether the device exits RESET
executing from the flash memory or the Boot ROM. The user must program the FLEX bit as appropriate
for the application. In the erased state, the FLEX bit = 0 and the device will power-up executing from Boot
ROM. When FLEX = 0, this assumes that either the MICROWIRE/PLUS ISP routine or external
programming is being used to program the device. If using the MICROWIRE/PLUS ISP routine, the
software in the boot ROM will monitor the MICROWIRE/PLUS for commands to program the flash
memory. When programming the flash program memory is complete, the FLEX bit will have to be
programmed to a 1 and the device will have to be reset, either by pulling external Reset to ground or by a
MICROWIRE/PLUS ISP EXIT command, before execution from flash program memory will occur.
If FLEX = 1, upon exiting Reset, the device will begin executing from location 0000 in the flash program
memory. The assumption, here, is that either the application is not using ISP, is using MICROWIRE/PLUS
ISP by jumping to it within the application code, or is using a customized ISP routine. If a customized ISP
routine is being used, then it must be programmed into the flash memory by means of the
MICROWIRE/PLUS ISP or external programming as described in the preceding paragraph.
5.10.3 REGISTERS
There are six registers required to support ISP: Address Register Hi byte (ISPADHI), Address Register
Low byte (ISPADLO), Read Data Register (ISPRD), Write Data Register (ISPWR), Write Timing Register
(PGMTIM), and the Control Register (ISPCNTRL). The ISPCNTRL Register is not available to the user.
5.10.3.1 ISP Address Registers
The address registers (ISPADHI & ISPADLO) are used to specify the address of the byte of data being
written or read. For page erase operations, the address of the beginning of the page should be loaded.
For mass erase operations, 0000 must be placed into the address registers. When reading the Option
register, FFFF (hex) should be placed into the address registers. Registers ISPADHI and ISPADLO are
cleared to 00 on Reset. These registers can be loaded from either flash program memory or Boot ROM
and must be maintained for the entire duration of the operation.
NOTE
The actual memory address of the Option Register is 7FFF (hex), however the
MICROWIRE/PLUS ISP routines require the address FFFF (hex) to be used to read the
Option Register when the Flash Memory is secured.
Bit 7
Addr15
Bit 6
Addr14
Table 5-3. High Byte of ISP Address
Bit 5
Addr 13
ISPADHI
Bit 4
Bit 3
Addr12
Addr11
Bit 2
Addr10
Bit 1
Addr9
Bit 0
Addr8
Bit 7
Addr7
Bit 6
Addr6
Table 5-4. Low Byte of ISP Address
Bit 5
Addr5
ISPADLO
Bit 4
Bit 3
Addr4
Addr3
Bit 2
Addr2
Bit 1
Addr1
Bit 0
Addr0
5.10.3.2 ISP Read Data Register
The Read Data Register (ISPRD) contains the value read back from a read operation. This register can be
accessed from either flash program memory or Boot ROM. This register is undefined on Reset.
34
Functional Description
Copyright © 2000–2013, Texas Instruments Incorporated
Submit Documentation Feedback
Product Folder Links: COP8SBR9 COP8SCR9 COP8SDR9