![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
TMP86F808 Pin Assignments (Top view) P-SSOP30-56-0.65/P-SDIP-400-1.78 VSS XIN XOUT TEST VDD (XTIN) P21 (XTOUT) P22 RESET 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 (STOP/INT5) P20 P14 (TXD) P00 (RXD) P01 (SCLK) P02 (MOSI) P03 (MISO) P04 P37 (AIN5/STOP5) P36 (AIN4/STOP4) P35 (AIN3/STOP3) P34 (AIN2/STOP2) P33 (AIN1) P32 (AIN0) P31 (TC4/PD4/PWM4/PPG4) P30 (TC3/PDO3/PWM3) P13 P12 (DVO) P11 (INT1) (BOOT2) P10 (INT0) (BOOT1) P07 (TC1/INT4) P06 (INT3/PPG) P05 (SS) 86F808-3 2007-08-07 TMP86F808 Block Diagram Program memory (Flash memory) Flash memory I/F TLCS-870/C CPU Address/data bus Data memory (RAM) Boot program (ROM) RESET TEST Standby control circuit System control circuit Timing generator Time base timer Watchdog timer 16-bit timer/counter TC1 Interrupt controller XIN XOUT High frequency Low frequency 8-bit timer/counter TC3 TC4 Clock generator 8-bit AD converter Serial interface SEI UART Address/data bus Key-on wake up P2 P1 P3 P0 P22 to P20 P14 to P10 I/O ports P37 to P30 P07 to P00 86F808-4 2007-08-07 TMP86F808 Pin Function The TMP86F808 has MCU mode and serial PROM mode. (1) MCU mode In the MCU mode, the TMP86F808 is a pin compatible with the TMP86C408/808 (Make sure to fix the TEST pin to low level). (2) Serial PROM mode The serial PROM mode is set by fixing TEST pin, P10 and P11 at "high" respectively when RESET pin is fixed "low". After release of reset, the built-in BOOT ROM program is activated and the built-in flash memory is rewritten by serial I/F (UART). Pin Name (Serial PROM mode) BOOT1/RXD BOOT2/TXD TEST RESET Input/ Output Input/Input Input/Output Input I/O Power supply Functions Fix "High" during reset. This pin is used as RXD pin after releasing reset. Fix "High" during reset. This pin is used as TXD pin after releasing reset. Fix to "High". Reset signal input or an internal error reset output. 5V 0V OPEN P10 P11 Pin Name (MCU mode) VDD VSS P07 to P00, P14 to P12, P22 to P20, P37 to P30 XIN XOUT Input Output Self oscillation with resonator (2 MHz, 4 MHz, 8 MHz, 16 MHz) 86F808-5 2007-08-07 TMP86F808 Operation This section describes the functions and basic operational blocks of TMP86F808. The TMP86F808 has flash memory in place of the mask ROM which is included in the TMP86C408/808. The configuration and function are the same as the TMP86C408/808. 1. Operating Mode The TMP86F808 has MCU mode and serial PROM mode. 1.1 MCU Mode The MCU mode is set by fixing the TEST pin to the low level. In the MCU mode, the operation is the same as the TMP86C408/808. 1.1.1 Program memory The TMP86F808 has a 8-Kbyte built-in flash memory (addresses E000H to FFFFH in the MCU mode). When using TMP86F808 for evaluation of TMP86C408/808, the program is written by the serial PROM mode. 0000H 0000H E000H Program FFFFH TMP86C808 E000H Program FFFFH MCU mode TMP86F808 (a) ROM Size = 8 Kbytes 0000H 0000H F000H Program FFFFH TMP86C408 F000H Program FFFFH MCU mode TMP86F808 (b) ROM Size = 4 Kbytes Figure 1.1.1 Program Memory Area Note: The area that is not in use should be set data to FFH. 86F808-6 2007-08-07 TMP86F808 1.1.2 1.1.3 Data Memory TMP86F808 has a built-in 256-byte data memory (Static RAM). Input/Output Circuitry (1) Control pins The control pins of the TMP86F808 are the same as those of the TMP86C408/808. (2) I/O ports The I/O circuitries of TMP86F808 I/O ports are the same as the those of TMP86C408/808. 86F808-7 2007-08-07 TMP86F808 2. Serial PROM Mode 2.1 Outline The TMP86F808 has a 2-Kbyte BOOT ROM for programming to flash memory. This BOOT ROM is a mask ROM that contains a program to write the flash memory on-board. The BOOT ROM is available in a serial PROM mode and it is controlled by TEST pin and RESET pin and 2 I/O pins, and is communicated with UART. There are four operation modes in a serial PROM mode: flash memory writing mode, RAM loader mode, flash memory SUM output mode and product discrimination code output mode. Operating area of serial PROM mode differs from that of MCU mode. The operating area of serial PROM mode shows in Table 2.1.1. Table 2.1.1 Operating Area of Serial PROM Mode Parameter Operating voltage High frequency Temperature Symbol VDD fc Topr Min 4.5 2, 4, 8, 16 25 5 Max 5.5 Unit V MHz C 2.2 Memory Mapping The BOOT ROM is mapped in address F800H to FFFFH. The BOOT ROM can't be accessed in MCU mode. The Figure 2.2.1 shows a memory mapping. SFR RAM 0000H 003FH 0040H 013FH 64 bytes 256 bytes SFR RAM 0000H 003FH 0040H 013FH 64 bytes 256 bytes E000H Flash memory 8192 bytes BOOT ROM FFFFH F800H 2048 bytes FFFFH MCU mode Serial PROM mode Figure 2.2.1 Memory Address Maps 86F808-8 2007-08-07 TMP86F808 2.3 2.3.1 Serial PROM Mode Setting Serial PROM Mode Control Pins To execute on-board programming, start the TMP86F808 in serial PROM mode. Setting of a serial PROM mode is shown in Table 2.3.1. Table 2.3.1 Serial PROM Mode Setting Pin TEST pin BOOT1 (RXD) BOOT2 (TXD) RESET pin Setting High (Note) (Note) High High Note: BOOT1 is RXD pin and BOOT2 is TXD pin during a serial PROM mode. 2.3.2 Pin Function In the serial PROM mode, TXD (P11) and RXD (P10) pins are used as a serial interface pin. Therefore, if the programming is executed on-board after mounting, these pins should be released from the other devices for communication in serial PROM mode. Pin Name (Serial PROM mode) Input/ Output Input/Input Input/Output Input I/O Power supply Functions Fix "High" during reset. This pin is used as RXD pin after releasing reset. Fix "High" during reset. This pin is used as TXD pin after releasing reset. Fix to "High". Reset signal input or an internal error reset output. 5V 0V OPEN P10 P11 Pin Name (MCU mode) BOOT1/RXD BOOT2/TXD TEST RESET VDD VSS P07 to P00, P14 to P12, P22 to P20, P37 to P30 XIN XOUT Input Output Self oscillation with resonator (2 MHz, 4 MHz, 8 MHz, 16 MHz) Note: When the device is used as on-board writing and other parts are already mounted in place, be careful not to affect these communication control pins. 86F808-9 2007-08-07 TMP86F808 To set a serial PROM mode, connect device pins as shown in Figure 2.3.1. TMP86F808 VDD TEST VDD(4.5 V to 5.5 V) RXD (P10) TXD (P11) XIN RESET BOOT1/RXD BOOT2/TXD XOUT VSS : Pull up Figure 2.3.1 Serial PROM Mode Port Setting 2.3.3 Activating Serial PROM Mode The following is a procedure of setting of serial PROM mode. Figure 2.3.2 shows a serial PROM mode timing. (1) Turn on the power to the VDD pin. (2) Set the RESET to low level. (3) Set the TEST, BOOT1 and BOOT2 pin to high level. (4) Wait until the power supply and clock sufficiently stabilize. (5) Release the RESET (Set to high level). (6) Input a matching data (5AH) to BOOT1/RXD pin after waiting for setup sequence. For details of the setup timing, refer to 2.14 "UART Timing". VDD TEST (Input) RESET (Input) Program BOOT1 (Input)/ RXD (Input) Indeterminate Reset mode Serial PROM mode Setup time for serial PROM mode (Rxsup) Fixed to high level by pull up BOOT2 (Input)/ TXD (Output) Matching data input Figure 2.3.2 Serial PROM Mode Timing 86F808-10 2007-08-07 TMP86F808 2.4 Interface Specifications for UART The following shows the UART communication format used in serial PROM mode. Before on-board programming can be executed, the communication format on the external controller side must also be setup in the same way as for this product. Note that although the default baud rate is 9,600 bps, it can be changed to other values as shown in Table 2.4.1. The Table 2.4.2 shows an operating frequency and baud rate in serial PROM mode. Except frequency which is not described in Table 2.4.2 can not use in serial PROM mode. Baud rate (Default): 9,600 bps Data length: 8 bits Parity addition: None Stop bit length: 1 bit Table 2.4.1 Baud Rate Modification Data Baud rate modification data Baud rate (bps) 04H 76800 05H 62500 07H 38400 0AH 31250 18H 19200 28H 9600 Table 2.4.2 Operating Frequency and Baud Rate in Serial PROM Mode Reference Baud 76800 Rate (Baud) Baud Rate 04H Modification Data Reference Frequency (bps) (%) (MHz) 2 4 8 16 - - - 76923 - - - +0.16 62500 05H (bps) - - 62500 62500 38400 07H (bps) - - 38462 38462 31250 0AH (bps) - 31250 31250 31250 19200 18H (bps) - 19231 19231 19231 9600 28H (bps) 9615 9615 9615 9615 (%) - - 0.00 0.00 (%) - - +0.16 +0.16 (%) - 0.00 0.00 0.00 (%) - +0.16 +0.16 +0.16 (%) +0.16 +0.16 +0.16 +0.16 Note: "Reference Frequency" shows the high-frequency area supported in serial PROM mode. Except the above frequency can not be supported in serial PROM mode. 2.5 Command There are five commands in serial PROM mode. After reset release, the TMP86F808 waits a matching data (5AH). Table 2.5.1 Command in Serial PROM Mode Command Data 5AH 30H 60H 90H C0H Operation Mode Setup Flash memory writing RAM loader Flash memory SUM output Product discrimination code output Remarks Matching data. Always start with this command after reset release. Writing to area from E000H to FFFFH is enable. Writing to area from 0050H to 0130H is enable. The checksum of entire flash memory area (from E000H to FFFFH) is output in order of the upper byte and the lower byte. Product discrimination code, that is expressed by 13 bytes data, is output. 86F808-11 2007-08-07 TMP86F808 2.6 Operation Mode There are four operating modes in serial PROM mode: Flash memory writing mode, RAM loader mode, flash memory SUM output mode and product discrimination code output mode. For details about these modes, refer to (1) Flash memory writing mode through (4) Product discrimination code output mode. (1) Flash memory writing mode The data are written to the specified flash memory addresses. The controller should send the write data in the Intel Hex format (Binary). For details of writing data format, refer to 2.7 "Flash Memory Writing Data Format". If no errors are encountered till the end record, the SUM of 8 Kbytes of flash memory is calculated and the result is returned to the controller. To execute the flash memory writing mode, the TMP86F808 checks the passwords except a blank product. If the passwords did not match, the program is not executed. (2) RAM loader mode The RAM loader transfers the data into the internal RAM that has been sent from the controller in Intel Hex format. When the transfer has terminated normally, the RAM loader calculates the SUM and sends the result to the controller before it starts executing the user program. After sending of SUM, the program jumps to the start address of RAM in which the first transferred data has been written. This RAM loader function provides the user's own way to control on-board programming. To execute the RAM loader mode, the TMP86F808 checks the passwords except a blank product. If the passwords did not match, the program is not executed. (3) Flash memory SUM output mode The SUM of 8 Kbytes of flash memory is calculated and the result is returned to the controller. The BOOT ROM does not support the reading function of the flash memory. Instead, it has this SUM command to use. By reading the SUM, it is possible to manage Revisions of application programs. (4) Product discrimination code output mode The product discrimination code is output as a 13-byte data, that includes the start address and the end address of ROM. (In case of TMP86F808, the start address is E000H and the end address is FFFFH.) Therefore, the controller can recognize the device information by using this function. 86F808-12 2007-08-07 TMP86F808 2.6.1 Flash Memory Writing Mode (Operation command: 30H) Table 2.6.1 shows flash memory writing mode process. Table 2.6.1 Flash Memory Writing Mode Process Number of Bytes Transferred 1st byte 2nd byte 3rd byte 4th byte Transfer Data from External Controller to TMP86F808 Matching data (5AH) - Baud rate modification data (See Table 2.4.1) - Baud Rate 9600 bps 9600 bps 9600 bps 9600 bps Transfer Data from TMP86F808 to External Controller - (Baud rate auto set) OK: Echo back data (5AH) Error: Nothing transmitted - 5th byte 6th byte Operation command data (30H) - Changed new baud rate Changed new baud rate 7th byte 8th byte 9th byte 10th byte BOOT ROM 11th byte 12th byte 13th byte 14th byte 15th byte : m'th byte m'th + 1 byte : n'th - 2 byte n'th - 1 byte n'th byte n'th + 1 byte Address 15 to 08 in which to store Password count (Note 4) Address 07 to 00 in which to store Password count (Note 4) Address 15 to 08 in which to start Password comparison (Note 4) Address 07 to 00 in which to start Password comparison (Note 4) Password string (Note 5) - Changed new baud rate Changed new baud rate Changed new baud rate Changed new baud rate Changed new baud rate Changed new baud rate Changed new baud rate Changed new baud rate Changed new baud rate Changed new baud rate Changed new baud rate OK: Echo back data Error: A1H x 3, A3H x 3, 62H x 3 (Note 1) - OK: Echo back data (30H) Error: A1H x 3, A3H x 3, 63H x 3 (Note 1) - OK: Nothing transmitted Error: Nothing transmitted - OK: Nothing transmitted Error: Nothing transmitted - OK: Nothing transmitted Error: Nothing transmitted - OK: Nothing transmitted Error: Nothing transmitted - OK: Nothing transmitted Error: Nothing transmitted - Extended Intel format (binary) (Note 2, 6) - - Changed new baud rate Changed new baud rate Changed new baud rate (Wait for the next operation) (Command data) OK: SUM (High) (Note 3) Error: Nothing transmitted OK: SUM (Low) (Note 3) Error: Nothing transmitted - Note 1: "xxH x 3" denotes that operation stops after sending 3 bytes of xxH. For details, refer to 2.8 "Error Code". Note 2: Refer to 2.10 "Intel Hex Format (Binary)". Note 3: Refer to 2.9 "Checksum (SUM)". Note 4: Refer to 2.11 "Passwords". Note 5: If all data of vector area are "00H" or "FFH", the passwords comparison is not executed because the device is considered as blank product. However, it is necessary to specify the password count storage addresses and the password comparison start address even though it is a blank product. If a password error occurs, the UART function of TMP86F808 stops without returning error code to the controller. Therefore, when a password error occurs, the TMP86F808 should be reset by RESET pin input. Note 6: The time between data records needs over 1 ms. 86F808-13 2007-08-07 TMP86F808 Description of flash memory writing mode 1. The receive data in the 1st byte is the matching data. When the boot program starts in serial PROM mode, TMP86F808 (Mentioned as "device" hereafter) waits for the matching data (5AH) to receive. Upon receiving the matching data, it automatically adjusts the UART's initial baud rate to 9,600bps. When the device has received the matching data, the device transmits the data "5AH" as an echo back to the controller. If the device can not receive the matching data, the device does not transmit the echo back data and waits for the matching data again with changing baud rate. Therefore, the controller should send the matching data continuously until the device transmits the echo back data. The receive data in the 3rd byte is the baud rate modification data. The six kinds of baud rate modification data shown in Table 2.4.1 are available. Even if baud rate changing is no need, be sure to send the initial baud rate data (28H: 9,600 bps). The changing of baud rate is executed after transmitting the echo back data. When the 3rd byte data is one of the baud rate modification data corresponding to the device's operating frequency, the device sends the echo back data which is the same as received baud rate modification data. Then the baud rate is changed. If the 3rd byte data does not correspond to the baud rate modification data, the device stops UART function after sending 3 bytes of baud rate modification error code: (62H). The receive data in the 5th byte is the command data (30H) to write the flash memory. When the 5th byte is one of the operation command data shown in Table 2.5.1, the device sends the echo back data which is the same as received operation command data (in this case, 30H). If the 5th byte data does not correspond to the operation command data, the device stops UART function after sending 3 bytes of operation command error code: (63H). The 7th byte is used as an upper bit (Bit15 to bit8) of the password count storage address. When the receiving is executed correctly (No error), the device does not send any data. If the receiving error or password error occur, the device does not send any data and stops UART function. The 9th byte is used as a lower bit (Bit7 to bit0) of the password count storage address. When the receiving is executed correctly (No error), the device does not send any data. If the receiving error or password error occur, the device does not send any data and stops UART function. The 11th byte is used as an upper bit (Bit15 to bit8) of the password comparison start address. When the receiving is executed correctly (No error), the device does not send any data. If the receiving error or password error occur, the device does not send any data and stops UART function. 2. 3. 4. 5. 6. 7. 8. 9. 10. The 13th byte is used as a lower bit (Bit7 to bit0) of the password comparison start address. When the receiving is executed correctly (No error), the device does not send any data. If the receiving error or password error occur, the device does not send any data and stops UART function. 11. The 15th through the m'th bytes are the password data. The number of passwords is the data (N) indicated by the password count storage address. The password data are compared for N entries beginning with the password comparison start address. The controller should send N bytes of password data to the device. If the passwords do not match, the device stops UART function without returning error code to the controller. If the data of vector addresses (FFE0H to FFFFH) are all "FFH", the comparison of passwords is not executed because the device is considered as a blank product. 86F808-14 2007-08-07 TMP86F808 12. The receive data in the m'th + 1 through n'th - 2 byte are received as binary data in Intel Hex format. No received data are echoed back to the controller. The data which is not the start mark (3AH for ":") in Intel Hex format is ignored and does not send an error code to the controller until the device receives the start mark. After receiving the start mark, the device receives the data record, that consists of length of data, address, record type, writing data and checksum. After receiving the checksum of data record, the device waits the start mark data (3AH) again. The data of data record is temporarily stored to RAM and then, is written to specified flash memory by page (32 bytes) writing. For details of an organization of flash memory, refer to 2. "Serial PROM Mode". Since after receiving an end record, the device starts to calculate the SUM, the controller should wait the SUM after sending the end record. If receive error or Intel Hex format error occurs, the device stops UART function without returning error code to the controller. 13. The n'th - 1 and the n'th bytes are the SUM value that is sent to the controller in order of the upper byte and the lower byte. For details on how to calculate the SUM, refer to 2.9 "Checksum (SUM)". The SUM calculation is performed after detecting the end record, but the calculation is not executed when receive error or Intel Hex format error has occurred. The time required to calculate the SUM of the 8 Kbytes of Flash memory area is approximately 100 ms at fc = 16 MHz. After the SUM calculation, the device sends the SUM data to the controller. After sending the end record, the controller can judge that the transmission has been terminated correctly by receiving the checksum. 14. After sending the SUM, the device waits for the next operation command data. 86F808-15 2007-08-07 TMP86F808 2.6.2 RAM Loader Mode (Operation command: 60H) Table 2.6.2 shows RAM loader mode process. Table 2.6.2 RAM Loader Mode Process Number of Bytes Transferred 1st byte 2nd byte 3rd byte 4th byte - Transfer Data from External Controller to TMP86F808 Matching data (5AH) Baud Rate 9600 bps 9600 bps 9600 bps 9600 bps Transfer Data from TMP86F808 to External Controller - (Baud rate auto set) OK: Echo back data (5AH) Error: Nothing transmitted - OK: Echo back data Error:A1H x 3, A3H x 3, 62H x 3 (Note 1) - OK: Echo back data (60H) Error: A1H x 3, A3H x 3, 63H x 3 (Note 1) - OK: Nothing transmitted Error: Nothing transmitted - OK: Nothing transmitted Error: Nothing transmitted - OK: Nothing transmitted Error: Nothing transmitted - OK: Nothing transmitted Error: Nothing transmitted - OK: Nothing transmitted Error: Nothing transmitted - Baud rate modification data (See Table 2.4.1) - 5th byte 6th byte Operation command data (60H) - Changed new baud rate Changed new baud rate 7th byte 8th byte 9th byte BOOT ROM 10th byte 11th byte 12th byte 13th byte 14th byte 15th byte : m'th byte m'th + 1 byte : n'th - 2 byte n'th - 1 byte n'th byte RAM - Address 15 to 08 in which to store Password count (Note 4) Address 07 to 00 in which to store Password count (Note 4) Address 15 to 08 in which to start Password comparison (Note 4) Address 07 to 00 in which to start Password comparison (Note 4) Password string (Note 5) - Changed new baud rate Changed new baud rate Changed new baud rate Changed new baud rate Changed new baud rate Changed new baud rate Changed new baud rate Changed new baud rate Changed new baud rate Changed new baud rate Extended Intel format (Binary) (Note 2) - - Changed new baud rate Changed new baud rate Changed new baud rate OK: SUM (High) (Note 3) Error: Nothing transmitted OK: SUM (Low) (Note 3) Error: Nothing transmitted The program jumps to the start address of RAM in which the first transferred data has been written. Note 1: "xxH x 3" denotes that operation stops after sending 3 bytes of xxH. For details, refer to 2.8 "Error Code". Note 2: Refer to 2.10 "Intel Hex Format (Binary)". Note 3: Refer to 2.9 "Checksum (SUM)". Note 4: Refer to 2.11 "Passwords". 86F808-16 2007-08-07 TMP86F808 Note 5: If all data of vector area are "00H" or "FFH", the passwords comparison is not executed because the device is considered as blank product. However, it is necessary to specify the password count storage addresses and the password comparison start address even though it is a blank product. If a password error occurs, the UART function of TMP86F808 stops without returning error code to the controller. Therefore, when a password error occurs, the TMP86F808 should be reset by RESET pin input. Note 6: Do not send only end record after transferring of password string. If the TMP86F808 receives the end record only after reception of password string, it does not operate correctly. Description of RAM loader mode 1. 2. 3. The process of the 1st byte through the 4th byte are the same as flash memory writing mode. The receive data in the 5th byte is the RAM loader command data (60H) to write the user's program to RAM. When the 5th byte is one of the operation command data shown in Table 2.5.1, the device sends the echo back data which is the same as received operation command data (in this case, 60H). If the 5th byte data does not correspond to the operation command data, the device stops UART function after sending 3 bytes of operation command error code: (63H). The process of the 7th byte through the m'th byte are the same as flash memory writing mode. The receive data in the m'th + 1 through n'th - 2byte are received as binary data in Intel Hex format. No received data are echoed back to the controller. The data which is not the start mark (3AH for ":") in Intel Hex format is ignored and does not send an error code to the controller until the device receives the start mark. After receiving the start mark, the device receives the data record, that consists of length of data, address, record type, writing data and checksum. After receiving the checksum of data record, the device waits the start mark data (3AH) again. The data of data record is written to specified RAM by the receiving data. Since after receiving an end record, the device starts to calculate the SUM, the controller should wait the SUM after sending the end record. If receive error or Intel Hex format error occurs, the UART function of TMP86F808 stops without returning error code to the controller. The n'th - 1 and the n'th bytes are the SUM value that is sent to the controller in order of the upper byte and the lower byte. For details on how to calculate the SUM, refer to 2.9 "Checksum (SUM)". The SUM calculation is performed after detecting the end record, but the calculation is not executed when receive error or Intel Hex format error has occurred. The SUM is calculated by the data written to RAM, but the length of data, address, record type and checksum in Intel Hex format are not included in SUM. The boot program jumps to the first address that is received as data in Intel Hex format after sending the SUM to the controller. 4. 5. 6. 7. 86F808-17 2007-08-07 TMP86F808 2.6.3 Flash Memory Memory SUM Output Mode (Operation command: 90H) Table 2.6.3 shows flash memory SUM output mode process. Table 2.6.3 Flash Memory Memory SUM Output Process Number of Bytes Transferred 1st byte 2nd byte 3rd byte 4th byte Transfer Data from External Controller to TMP86F808 Matching data (5AH) - Baud rate modification data (See Table 2.4.1) - Baud Rate 9600 bps 9600 bps 9600 bps 9600 bps Transfer Data from TMP86F808 to External Controller - (Baud rate auto set) OK: Echo back data (5AH) Error: Nothing transmitted - BOOT ROM 5th byte 6th byte Operation command data (90H) - - - Changed new baud rate Changed new baud rate 7th byte 8th byte 9th byte Changed new baud rate Changed new baud rate Changed new baud rate (Wait for the next operation) (Command data) OK: Echo back data Error: A1H x 3, A3H x 3, 62H x 3 (Note 1) - OK: Echo back data (90H) Error: A1H x 3, A3H x 3, 63H x 3 (Note 1) OK: SUM (High) (Note 2) Error: Nothing transmitted OK: SUM (Low) (Note 2) Error: Nothing transmitted - Note 1: "xxH x 3" denotes that operation stops after sending 3 bytes of xxH. For details, refer to 2.8 "Error Code". Note 2: Refer to 2.9 "Checksum (SUM)" Description of flash memory SUM output mode 1. 2. 3. The process of the 1st byte through the 4th byte are the same as flash memory writing mode. The receive data in the 5th byte is the flash memory SUM command data (90H) to calculate the entire flash memory. When the 5th byte is one of the operation command data shown in Table 2.5.1, the device sends the echo back data which is the same as received operation command data (in this case, 90H). If the 5th byte data does not correspond to the operation command data, the device stops UART function after sending 3 bytes of operation command error code: (63H). The 7th and the 8th bytes are the SUM value that is sent to the controller in order of the upper byte and the lower byte. For details on how to calculate the SUM, refer to 2.9 "Checksum (SUM)". After sending the SUM, the device waits for the next operation command data. 4. 5. 86F808-18 2007-08-07 TMP86F808 2.6.4 Product Discrimination Code Output Mode (Operation command: C0H) Table 2.6.4 shows product discrimination code output mode process. Table 2.6.4 Product Discrimination Code Output Process Number of Bytes Transferred 1st byte 2nd byte 3rd byte 4th byte Transfer Data from External Controller to TMP86F808 Matching data (5AH) - Baud rate modification data (See Table 2.4.1) - Baud Rate 9600 bps 9600 bps 9600 bps 9600 bps Transfer Data from TMP86F808 to External Controller - (Baud rate auto set) OK: Echo back data (5AH) Error: Nothing transmitted - 5th byte 6th byte Operation (C0H) - command data Changed new baud rate Changed new baud rate 7th byte 8th byte BOOT ROM 9th byte 10th byte 11th byte 12th byte 13th byte 14th byte 15th byte 16th byte 17th byte 18th byte 19th byte 20th byte (Wait for the next operation) (Command data) Changed new baud rate Changed new baud rate Changed new baud rate Changed new baud rate Changed new baud rate Changed new baud rate Changed new baud rate Changed new baud rate Changed new baud rate Changed new baud rate Changed new baud rate Changed new baud rate Changed new baud rate Changed new baud rate OK: Echo back data Error: A1H x 3, A3H x 3, 62H x 3 (Note 1) - OK: Echo back data (C0H) Error: A1H x 3, A3H x 3, 63H x 3 (Note 1) 3AH Start mark 0AH The number of transfer data (from 9th to 18th byte) 02H Length of address (2 bytes) 03H Reserved data 00H Reserved data 00H Reserved data 00H Reserved data 01H The number of ROM block (1 block) E0H First address of ROM (Upper 8 bits) 00H First address of ROM (Lower 8 bits) FFH End address of ROM (Upper 8 bits) FFH End address of ROM (Lower 8 bits) 1CH Checksum of transferred data (from 9th to 18th byte) - Note: "xxH x 3" denotes that operation stops after sending 3 bytes of xxH. For details, refer to 2.8 "Error Code". Description of product discrimination code output mode 1. 2. 3. The process of the 1st byte through the 4th byte are the same as flash memory writing mode. The receive data in the 5th byte is the product discrimination code output command data (C0H). When the 5th byte is one of the operation command data shown in Table 2.5.1, the device sends the echo back data which is the same as received operation command data (in this case, C0H). If the 5th byte data does not correspond to the operation command data, the device stops UART function after sending 3 bytes of operation command error code: (63H). The 9th and the 19th bytes are the product discrimination code. For details, refer to 2.12 "Product Discrimination Code". After sending the SUM, the device waits for the next operation command data. 4. 5. 86F808-19 2007-08-07 TMP86F808 2.7 Flash Memory Writing Data Format Flash memory area of TMP86F808 consists of 255 pages and one page size is 32 bytes. Writing to flash memory is executed by page writing. Therefore, it is necessary to send 32 bytes data (for one page) even though only a few bytes data are written. Figure 2.7.1 shows an organization of flash memory area. When the controller sends the writing data to the device, be sure to keep the format described below. 1. 2. The address of data after receiving the flash memory writing command should be the first address of page. For example, in case of page 2, the first address should be E040H. If the last data's address of data record is not end address of page, the address of the next data record should be the address + 1 and the last data's address must point to the last address of this page. For example, if the last data's address is E00FH (Page0), the address of the next data record should be E010H (Page0) and the address of the last data should be E01FH (Page0). The last data's address of data record immediately before sending the end record should be the last address of page. For example, in case of page 1, the last data's address of data record should be E03FH. Note: Do not write only the vector area (FFF0H to FFFFH) when all data of flash memory are the same data. If the vector area is only written, the next operation can not be executed because of password error. 2 3 4 3. Address 0 1 5 6 7 8 9 A B C D E F E000H E010H E020H E030H E040H E050H E060H E070H E080H E090H E0A0H E0B0H E0C0H F F F F F F F Page 0 Page 1 Page 2 Page 3 Page 4 Page 5 E E E E E E FF70H FF80H FF90H FFA0H FFB0H FFC0H FFD0H FFE0H FFF0H E F F F F Page 252 Page 253 Page 254 Page 255 E E E E Note: "F" shows the first address of each page and "E" shows the last address of each page. Figure 2.7.1 Organization of Flash Memory Area 86F808-20 2007-08-07 TMP86F808 2.8 Error Code When the device detects an error, the error codes are sent to the controller. Table 2.8.1 Error Code Transmit Data 62H, 62H, 62H 63H, 63H, 63H A1H, A1H, A1H A3H, A3H, A3H Meaning of Transmit Data Baud rate modification error occurred. Operating command error occurred. Framing error in received data occurred. Overrun error in received data occurred. 2.9 Checksum (SUM) (1) Calculation method SUM consists of byte + byte.... + byte, the checksum of which is returned in word as the result. Namely, data is read out in byte and checksum of which is calculated, with the result returned in word. Example: A1H B2H C3H D4H If the data to be calculated consists of the four bytes shown to the left, SUM of the data is A1H + B2H + C3H + D4H = 02EAH = 02H SUM (HIGH) SUM (LOW) = EAH The SUM returned when executing the flash memory write command, RAM loader command, or flash memory SUM command is calculated in the manner shown above. (2) Calculation data The data from which SUM is calculated are listed in Table 2.9.1 below. Table 2.9.1 Checksum Calculation Data Operating Mode Calculation Data Remarks Even when written to part of the flash memory area, Flash memory writing mode data in the entire memory area (8 Kbytes) is Data in the entire area (8 Kbytes) of flash calculated. memory Flash memory Checksum output The length of data, address, record type and mode checksum in Intel Hex format are not included in SUM. The length of data, address, record type and RAM loader mode Data written to RAM checksum in Intel Hex format are not included in SUM. Product discrimination code out- Checksum of transferred data (from 9th to For details, refer to "2.6.4 Product Discrimination put mode 18th byte) Code Output Mode". 86F808-21 2007-08-07 TMP86F808 2.10 Intel Hex Format (Binary) 1. After receiving the SUM of a record, the device waits for the start mark data (3AH for ":") of the next record. Therefore, the device ignores the data, which does not match the start mark data after receiving the SUM of a record. Make sure that once the controller program has finished sending the SUM of the end record, it does not send anything and waits for two bytes of data to be received (Upper and lower bytes of SUM). This is because after receiving the SUM of the end record, the boot program calculates the SUM and returns the calculated SUM in two bytes to the controller. If a receive error or Intel Hex format error occurs, the UART function of TMP86F808 stops without returning error code to the controller. In the following cases, an Intel Hex format error occurs: * * * * * When the record type is not 00H, 01H, or 02H When a SUM error occurred When the data length of an extended record (Type = 02H) is not 02H When the address of an extended record (Type = 02H) is larger than 1000H and after that, receives the data record When the data length of the end record (Type = 01H) is not 00H 2. 3. 2.11 Passwords The area in which passwords can be specified is located at addresses E000H to FF9FH. The vector area (from FFA0H to FFFFH) can not be specified as passwords area. The device compares the stored passwords with the passwords, which are received from the controller. If all data of vector area are "00H" or "FFH", the passwords comparison is not executed because the device is considered as blank product. It is necessary to specify the password count storage addresses and the password comparison start address even though it is a blank product. Table 2.11.1 Password Setting in the Blank Product and Non Blank Product Password PNSA (Password count storage addresses) PCSA (Password comparison start address) N (Password count) Setting of password Blank Product(Note 1) E000H PNSA FF9FH E000H PCSA FF9FH * No need Non Blank Product E000H PNSA FF9FH E000H PCSA FFA0-N 8N Need (Note 2) Note 1: When all data of addresses from FFE0H to FFFFH area are "00H" or "FFH", the device is judged as blank product. Note 2: The same three or more bytes consecutive data can not be used as password. When the password includes the same consecutive data (three or more bytes), the password error occurs. If the password error occured, the UART function of device stops without returning error code. Note 3: *: Don't care. Note 4: When the password doesn't match the above condition, the password error occurs. If the password error occured, the UART function of device stops without returning error code. Note 5: In case of the blank product, the device receives Intel Hex Format immediately after receiving PCSA without receiving password strings. In this time, because the device ignores the data 86F808-22 2007-08-07 TMP86F808 except the start mark data (3AH for ":") as Intel Hex Format data, even if external controller transmitted dummy password strings, process operates correctly. However, if the dummy password strings contain data "3AH", the device detects it as start mark data mistakenly, and device stops process without returning error doce. Therefore, if these process becomes issue, the external controller should not transmit the dummy password strings. UART RXD pin F0H 12H F1H 07H 01H 02H 03H 04H 05H 06H 07H PNSA PCSA Password string 08H Flash memory F012H 08H "08H" is treated as the number of password. Comparison F107H F108H F109H F10AH F10BH Example) PNSA = F012H PCSA = F107H Password string = 01H,02H,03H,04H,05H, 06H,07H,08H F10CH F10DH F10EH 01H 02H 03H 04H 05H 06H 07H 08H 8 bytes Figure 2.11.1Password Comparison Example 86F808-23 2007-08-07 TMP86F808 3. Password string A password string sent from the controller is compared with the specified data in the flash memory. If the password string does not match the specified data in the flash memory, a password error occurs and the TMP86F808 stops operating. 4. Handling of password error If a password error occurs, the UART function of TMP86F808 stops without returning error code to the controller. Therefore, when a password error occurs, the TMP86F808 should be reset by RESET pin input. 2.12 Product Discrimination Code The product discrimination code is a 13-byte data, that includes the start address and the end address of ROM. Table 2.12.1 shows the product discrimination code format. Table 2.12.1 Product Discrimination Code Format Data 1st 2nd 3rd 4th 5th 6th 7th 8th 9th 10th 11th 12th 13th The Meaning of Data Start mark (3AH) The number of transfer data (from 3rd to 13th byte) Length of address Reserved data Reserved data Reserved data Reserved data The number of ROM block The upper byte of the first address of ROM The lower byte of the first address of ROM The upper byte of the end address of ROM The lower byte of the end address of ROM Checksum of transferred data (from 3rd to 12th byte) In Case of TMP86F808 3AH 0AH 02H 03H 00H 00H 00H 01H E0H (Depends on the product) 00H (Depends on the product) FFH (Depends on the product) FFH (Depends on the product) 1CH (Depends on the product) 86F808-24 2007-08-07 TMP86F808 2.13 Flowchart START Setup UART data receive Receive data = "5A" Yes UART data transmit (Transmit data = "5A") No Change baud rate (Adjust to 9600 baud source clock) UART data receive UART data transmit (Echoed back the baud rate modification data) Change baud rate by receive data UART data receive Receive data = 30H (Flash memory write mode) Receive data = 60H (RAM loader mode) Receive data = 90H (Flash memory SUM output mode) Receive data = C0H (Product discrimination code output mode) UART data transmit (Transmit data = 30H) UART data transmit (Transmit data = 60H) UART data transmit (Transmit data = 90H) UART data transmit (Transmit data = C0H) Password certification (Compare receive data and flash memory data) Password certification (Compare receive data and flash memory data) UART data receive (Intel Hex format) UART data receive (Intel Hex format) Flash memory write process RAM write process UART data transmit (Product discrimination code) UART data transmit (Check sum) UART data transmit (Check sum) UART data transmit (Check sum) UART data transmit (Check sum) Jumps to start address of user program 86F808-25 2007-08-07 TMP86F808 2.14 UART Timing Table 2.14.1 UART Timing-1 (VDD = 4.5 V to 5.5 V, fc = 2 MHz, 4 MHz, 8 MHz, 16 MHz, Topr = 20 to 30C) Parameter Time from the reception of a matching data until the output of an echo back Time from the reception of a baud rate modification data until the output of an echo back Time from the reception of an operation command until the output of an echo back Calculation time of checksum Symbol CMeb1 CMeb2 CMeb3 CKsm The Number of Clock (fc) Approx. 600 Approx. 500 Approx. 500 Approx. 1573000 Required Minimum Time At fc = 16 At fc = 2 MHz MHz 300 s 250 s 250 s 786.5 ms 37.5 s 31.3 s 31.3 s 98.3 ms Table 2.14.2 UART Timing-2 (VDD = 4.5 V to 5.5 V, fc = 2 MHz, 4 MHz, 8 MHz, 16 MHz, Topr = 20 to 30C) Parameter Time from reset release until acceptance of start bit of RXD pin Time between a matching data and the next matching data Time from the echo back of matching data until the acceptance of baud rate modification data Time from the output of echo back of baud rate modification data until the acceptance of an operation command Time from the output of echo back of operation command until the acceptance of Password count storage addresses Symbol RXsup CMtr1 CMtr2 CMtr3 CMtr4 The Number of Clock (fc) 25000 28500 400 500 2600 Required Minimum Time At fc = 16 At fc = 2 MHz MHz 12.5 ms 14.3 ms 200 s 250 s 1.3 ms 1.56 ms 1.8 ms 25 s 31.3 s 163 s Table 2.14.3 UART Timing-3 (VDD = 4.5 V to 5.5 V, fc = 2 MHz, 4 MHz, 8 MHz, 16 MHz, Topr = 20 to 30C) Parameter Time from the stop bit of the previous data record to start bit of the next data record Symbol tSU; ST Min. 1 Max. - Unit ms RXsup RESET pin (TMP86F808) (5AH) RXD pin (TMP86F808) (5AH) TXD pin (TMP86F808) CMeb1 (5AH) RXD pin (TMP86F808) TXD pin (TMP86F808) CMtr2 CMtr3 CMtr4 (28H) (30H) (28H) (30H) CMeb2 (5AH) (5AH) CMeb3 CMtr1 STOP bit The end byte of a data record START bit RXD pin (TMP86F808) TXD pin (TMP86F808) tSU; ST 86F808-26 2007-08-07 TMP86F808 3. Electrical Characteristics Absolute Maximum Ratings Parameter Supply voltage Input voltage Output voltage Output current (Per 1 pin) (VSS = 0 V) Symbol VDD VIN VOUT IOUT1 IOH IOUT2 IOL IOUT3 IOL IOUT1 IOUT2 PD PD Tsld Tstg Topr P0, P1, P3 ports P1, P2, P3 ports P0 port P1, P2, P3 ports P0 port Pins Rating -0.3 to 6.5 -0.3 to VDD + 0.3 -0.3 to VDD + 0.3 -1.8 3.2 30 60 80 300 145 260 (10 s) -55 to 125 -40 to 85 (MCU mode) 20 to 30 (Serial PROM mode) Unit V mA Output current (Total) Power dissipation [Topr = 85C] (SDIP) Power dissipation [Topr = 85C] (SSOP) Soldering temperature (time) Storage temperature Operating temperature mW C Note: The absolute maximum ratings are rated values which must not be exceeded during operation, even for an instant. Any one of the ratings must not be exceeded. If any absolute maximum rating is exceeded, a device may break down or its performance may be degraded, causing it to catch fire or explode resulting in injury to the user. Thus, when designing products which include this device, ensure that no absolute maximum rating value will ever be exceeded. 86F808-27 2007-08-07 TMP86F808 Recommended Operating Condition 1) MCU mode (VSS = 0 V, Topr = -40 to 85C) Symbol Pins fc = 16 MHz Supply voltage VDD fc = 8 MHz Parameter Condition NORMAL1, 2 mode IDLE0, 1, 2 mode NORMAL1, 2 mode IDLE0, 1, 2 mode STOP mode Min 4.5 Max Unit 5.5 2.7 VDD x 0.70 VDD x 0.75 VDD x 0.90 VDD x 0.30 0 VDD x 0.25 VDD x 0.10 1.0 30.0 16.0 8.0 34.0 MHz kHz VDD V VIH1 Input high level VIH2 VIH3 VIL1 Input low level VIL2 VIL3 Clock frequency fc fs Except hysteresis input Hysteresis input Except hysteresis input Hysteresis input VDD 4.5 V VDD < 4.5 V VDD 4.5 V VDD < 4.5 V XIN, XOUT XTIN, XTOUT VDD = 4.5 to 5.5 V VDD = 2.7 to 5.5 V 2) Serial PROM mode (VSS = 0 V, Topr = 20 to 30C) Symbol VDD VIH1 VIH2 VIL1 VIL2 fc Except hysteresis input Hysteresis input Except hysteresis input Hysteresis input XIN, XOUT Parameter Supply voltage Input high level Input low level Clock frequency Pins Condition fc = 2 MHz, 4 MHz, 8 MHz, 16 MHz VDD = 4.5 to 5.5 V VDD = 4.5 to 5.5 V VDD = 4.5 to 5.5 V Min 4.5 VDD x 0.70 VDD x 0.75 0 2.0, 4.0, 8.0, 16 Max 5.5 VDD VDD x 0.30 VDD x 0.25 Unit V MHz Note: The recommended operating conditions for a device are operating conditions under which it can be guaranteed that the device will operate as specified. If the device is used under operating conditions other than the recommended operating conditions (Supply voltage, operating temperature range, specified AC/DC values etc.), malfunction may occur. Thus, when designing products which include this device, ensure that the recommended operating conditions for the device are always adhered to. 86F808-28 2007-08-07 TMP86F808 DC Characteristics Parameter Hysteresis voltage (VSS = 0 V, Topr = -40 to 85C) Pins Condition Min - VDD = 5.5 V, VIN = 5.5/0 V - - 100 VDD = 5.5 V, VOUT = 5.5 V VDD = 5.5 V, VOUT = 5.5/0 V VDD = 4.5 V, lOH = -0.7 mA VDD = 4.5 V, IOL = 1.6 mA VDD = 4.5 V, VOL = 1.0 V VDD = 5.5 V VIN = 5.3 V/0.2 V fc = 16 MHz fs = 32.768 kHz When a program operates on flash memory Symbol VHS IIN1 IIN2 IIN3 RIN1 RIN2 ILO1 ILO2 VOH VOL IOL TEST Typ. 0.9 - 70 200 - - - - 20 7.5 6.0 4.0 250 14.0 7.0 6.0 0.5 Max - 2 - 450 2 2 - 0.4 - 10.0 Unit V A Hysteresis input Input current Sink open drain, tri-state RESET, STOP Input resistance Output leakage current Output high voltage Output low voltage Output low current Supply current in NORMAL 1, 2 mode Supply current in IDLE1, 2 mode Supply current in IDLE0 mode Supply current in SLOW1 mode Supply current in SLEEP1 mode Supply current in SLEEP0 mode Supply current in STOP mode TEST pull down RESET pull up Sink open drain Tri-state Tri-state Except XOUT, P0 ports High current port (P0 port) k A V - - 4.1 - - - - - - - - - mA 8.0 7.0 600 25.0 15.0 15.0 10 A IDD VDD = 3.0 V VIN = 2.8 V/0.2 V fs = 32.768 kHz When a program operates on RAM VDD = 5.0 V VIN = 5.3 V/0.2 V - Note 1: Typical values show those at Topr = 25C, VDD = 5 V. Note 2: Input current (IIN1, IIN3); The current through pull-down or pull-up resistor is not included. Note 3: IDD does not include IREF current. 86F808-29 2007-08-07 TMP86F808 AD Conversion Characteristics Parameter Analog input voltage Power supply current of analog reference voltage Non linearity error Zero point error Full scale error Total error (VSS = 0 V, 4.5 V VDD 5.5 V, Topr = -40 to 85C) Condition VDD = 5.5 V VSS = 0.0 V VDD = 5.0 V VSS = 0.0 V Symbol VAIN IREF Min VSS - - - - - Typ. - 0.6 - - - - Max VDD 1.0 1 1 1 2 Unit V mA LSB (VSS = 0 V, 2.7 V VDD < 4.5 V, Topr = -40 to 85C) Parameter Analog input voltage Power supply current of analog reference voltage Non linearity error Zero point error Full scale error Total error Symbol VAIN IREF Condition VDD = 4.5V VSS = 0.0 V VDD = 2.7 V VSS = 0.0 V Min VSS - - - - - Typ. - 0.5 - - - - Max VDD 0.8 1 1 1 2 Unit V mA LSB Note 1: The total error includes all errors except a quantization error, and is defined as a maximum deviation from the ideal conversion line. Note 2: Conversion time is different in recommended value by power supply voltage. About conversion time, please refer to "10-Bit AD Converter". Note 3: Please use input voltage to AIN input pin in limit of VDD - VSS. When voltage of range outside is input, conversion value becomes unsettled and gives affect to other channel conversion value. Note 4: The relevant pin for IREF is VDD, so that the current flowing into VDD is the power supply current IDD + IREF. SEI Operating Condition (Slave mode) Parameter Transfer rate (VSS = 0 V, 2.7 V VDD 5.5 V, Topr = -40 to 85C) Condition Min 15.625k Symbol Typ. - Max fc/4 Unit bps 86F808-30 2007-08-07 TMP86F808 Recommended Oscillating Conditions XIN XOUT XTIN XTOUT C1 C2 C1 C2 High-frequency oscillation Low-frequency oscillation Note 1: To ensure stable oscillation, the resonator position, load capacitance, etc. must be appropriate. Because these factors are greatly affected by board patterns, please be sure to evaluate operation on the board on which the device will actually be mounted. Note 2: For the resonators to be used with Toshiba microcontrollers, we recommend ceramic resonators manufactured by Murata Manufacturing Co., Ltd. For details, please visit the website of Murata at the following URL: http://www.murata.com Handling Precaution * The solderability test conditions for lead-free products (indicated by the suffix G in product name) are shown below. 1. When using the Sn-63Pb solder bath Solder bath temperature = 230 C Dipping time = 5 seconds Number of times = once R-type flux used 2. When using the Sn-3.0Ag-0.5Cu solder bath Solder bath temperature = 245 C Dipping time = 5 seconds Number of times = once R-type flux used The pass criteron of the above test is as follows: Solderability rate until forming 95 % When using the device (oscillator) in places exposed to high electric fields such as cathoderay tubes, we recommend electrically shielding the package in order to maintain normal operating condition. * 86F808-32 2007-08-07 TMP86F808 Package Dimensions P-SSOP30-56-0.65 Unit: mm 86F808-33 2007-08-07 TMP86F808 P-SDIP30-400-1.78 Unit: mm 86F808-34 2007-08-07 |
Price & Availability of TMP86F808DNG
![]() |
|
|
All Rights Reserved © IC-ON-LINE 2003 - 2022 |
[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy] |
Mirror Sites : [www.datasheet.hk]
[www.maxim4u.com] [www.ic-on-line.cn]
[www.ic-on-line.com] [www.ic-on-line.net]
[www.alldatasheet.com.cn]
[www.gdcy.com]
[www.gdcy.net] |