Microcontrollers Errata Sheet August 30, 2000 / Release 2.2 Device: SAK-C167CR-L(33)M, SAF-C167CR-L(33)M, SAB-C167CR-L(33)M SAK-C167CR-4R(33)M, SAF-C167CR-4R(33)M, SAB-C167CR-4R(33)M SAK-C167CR-16R(33)M, SAF-C167CR-16R(33)M, SAB-C167CR-16R(33)M SAK-C167SR-L(33)M Stepping Code / Marking: ES-FA, FA Package: MQFP-144 This Errata Sheet describes the deviations from the current user documentation. The classification and numbering system is module oriented in a continual ascending sequence over several derivatives, as well already solved deviations are included. So gaps inside this enumeration could occur. The current documentation is: Data Sheet: C167CR/SR Data Sheet V3.1, 2000-04, User's Manual: C167CR Derivatives User's Manual V3.1, 2000-03 Instruction Set Manual 12.97 Version 1.2 Note: Devices marked with EES- or ES are engineering samples which may not be completely tested in all functional and electrical characteristics, therefore they should be used for evaluation only. The specific test conditions for EES and ES are documented in a separate Status Sheet. Microcontroller Division Errata Sheet, C167CR/SR–LM/4RM/16RM, ES-FA, FA, 2.2, Mh - 1 of 17 - Change summary to Errata Sheets Rel. 2.1 for C167CR, C167SR, C167S devices with stepping code/marking (ES-)FA: • • • • • • • Version C167S-4RM removed 33MHz versions included reference to C167CR/SR Data Sheet V3.1, 2000-04 and C167CR Derivatives User's Manual V3.1, 2000-03 PEC Transfers after JMPR (BUS.18): Notes on Keil compiler modified Unexpected Remote Frame Transmission (CAN.7) Application Hint 'PLL lock after temporary clock failure' added Links to Infineon Technologies Internet Pages modified Functional Problems: ADC.11: Modifications of ADM field while bit ADST = 0 The A/D converter may unintentionally start one auto scan single conversion sequence when the following sequence of conditions is true: (1) the A/D converter has finished a fixed channel single conversion of an analog channel n > 0 (i.e. contents of ADCON.ADCH = n during this conversion) (2) the A/D converter is idle (i.e. ADBSY = 0) (3) then the conversion mode in the ADC Mode Selection field ADM is changed to Auto Scan Single (ADM = 10b) or Continuous (ADM = 11b) mode without setting bit ADST = 1 with the same instruction Under these conditions, the A/D converter will unintentionally start one auto scan single conversion sequence, beginning with channel n-1, down to channel number 0. In case the channel number ADCH has been changed before or with the same instruction which selected the auto scan mode, this channel number has no effect on the unintended auto scan sequence (i.e. it is not used in this auto scan sequence). Note: When a conversion is already in progress, and then the configuration in register ADCON is changed, - the new conversion mode in ADM is evaluated after the current conversion - the new channel number in ADCH and new status of bit ADST are evaluated after the current conversion when a conversion in fixed channel conversion mode is in progress, and after the current conversion sequence (i.e. after conversion of channel 0) when a conversion in an auto scan mode is in progress. In this case, it is a specified operational behaviour that channels n-1 .. 0 are converted when ADM is changed to an auto scan mode while a fixed channel conversion of channel n is in progress (see e.g. C167 User's Manual, V2.0, p16-4) Workaround: When an auto scan conversion is to be performed, always start the A/D converter with the same instruction which sets the configuration in register ADCON. Microcontroller Division Errata Sheet, C167CR/SR–LM/4RM/16RM, ES-FA, FA, 2.2, Mh - 2 of 17 - PWRDN.1: Execution of PWRDN Instruction while pin NMI# = high When instruction PWRDN is executed while pin NMI# is at a high level, power down mode should not be entered, and the PWRDN instruction should be ignored. However, under the conditions described below, the PWRDN instruction may not be ignored, and no further instructions are fetched from external memory, i.e. the CPU is in a quasi-idle state. This problem will only occur in the following situations: a) the instructions following the PWRDN instruction are located in external memory, and a multiplexed bus configuration with memory tristate waitstate (bit MTTCx = 0) is used, or b) the instruction preceding the PWRDN instruction writes to external memory or an XPeripheral (XRAM, CAN), and the instructions following the PWRDN instruction are located in external memory. In this case, the problem will occur for any bus configuration. Note: the on-chip peripherals are still working correctly, in particular the Watchdog Timer will reset the device upon an overflow. Interrupts and PEC transfers, however, can not be processed. In case NMI# is asserted low while the device is in this quasi-idle state, power down mode is entered. Workaround: Ensure that no instruction which writes to external memory or an XPeripheral precedes the PWRDN instruction, otherwise insert e.g. a NOP instruction in front of PWRDN. When a multiplexed bus with memory tristate waitstate is used, the PWRDN instruction should be executed out of internal RAM or XRAM. BUS.17: Spikes on CS# Lines after access with RDCS# and/or WRCS# Spikes of about 5 ns width (measured at VOH = 0.9 Vcc) from Vcc down to Vss (worst case, typically about 0.8 Vcc (4.0 V @ Vcc = 5.0V)) may occur on Port 6 lines configured as CS# signals. The spikes occur on one CSx# line at a time for the first external bus access which is performed via a specific BUSCONx/ADDRSELx register pair (x=1..4) or via BUSCON0 (x=0) when the following two conditions are met: 1. the previous bus cycle was performed in a non-multiplexed bus mode without tristate waitstate via a different BUSCONy/ADDRSELy register pair (y=1..4, y≠x) or BUSCON0 (y=0, y≠x) and 2. the previous bus cycle was a read cycle with RDCSy# (bit BUSCONy.CSRENy = 1) or a write cycle with WRCS# (bit BUSCONy.CSWENy = 1). The position of the spikes is at the beginning of the new bus cycle which is performed via CSx#, synchronous with the rising edge of ALE and synchronous with the rising edge of RD#/WR# of the previous bus cycle. Potential effects on applications: - when CS# lines are used as CE# signals for external memories, typically no problems are expected, since the spikes occur after the rising edge of the RD# or WR# signal. when CS# lines configured as RDCS# and/or WRCS# are used e.g. as OE# signals for external devices or as clock input for shift registers, problems may occur (temporary bus contention for read cycles, unexpected shift operations, etc.). When CS# lines configured as WRCS# are used as WE# signals for external devices, no problems are expected, since a tristate waitstate should be used anyway due to the negative address hold time after WRCS# (t55) without tristate WS. Workarounds: 1. Use a memory tristate WS (i.e. leave bit BUSCONy.5 = 0) in all active BUSCON registers where RD/WR-CS# is used (i.e. bit BUSCONy.CSRENy = 1 and/or bit BUSCONy.CSWENy = 1), or 2. Use Address-CS# instead of RD/WR-CS# (i.e. leave bits BUSCONy[15:14] = 00b) for all BUSCONy registers where a non-multiplexed bus without tristate WS is configured (i.e. bit BUSCONy.5 = 1). Microcontroller Division Errata Sheet, C167CR/SR–LM/4RM/16RM, ES-FA, FA, 2.2, Mh - 3 of 17 - BUS.18: PEC Transfers after JMPR instruction Problems may occur when a PEC transfer immediately follows a taken JMPR instruction when the following sequence of 4 conditions is met (labels refer to following examples): 1. in an instruction sequence which represents a loop, a jump instruction (Label_B) which is capable of loading the jump cache (JMPR, JMPA, JB/JNB/JBC/JNBS) is taken 2. the target of this jump instruction directly is a JMPR instruction (Label_C) which is also taken and whose target is at address A (Label_A) 3. a PEC transfer occurs immediately after this JMPR instruction (Label_C) 4. in the following program flow, the JMPR instruction (Label_C) is taken a second time, and no other JMPR, JMPA, JB/JNB/JBC/JNBS or instruction which has branched to a different code segment (JMPS/CALLS) or interrupt has been processed in the meantime (i.e. the condition for a jump cache hit for the JMPR instruction (Label_C) is true) In this case, when the JMPR instruction (Label_C) is taken for the second time (as described in condition 4 above), and the 2 words stored in the jump cache (word address A and A+2) have been processed, the word at address A+2 is erroneously fetched and executed instead of the word at address A+4. Note: the problem does not occur when - the jump instruction (Label_C) is a JMPA instruction - the program sequence is executed from internal ROM/Flash Example1: Label_A: instruction x ; Begin of Loop instruction x+1 ..... Label_B: JMP Label_C ; JMP may be any of the following jump instructions: JMPR cc_zz, JMPA cc_zz, JB/JNB/JBC/JNBS ; jump must be taken in loop iteration n ; jump must not be taken in loop iteration n+1 ..... Label_C: JMPR cc_xx, Label_A ; End of Loop ; instruction must be JMPR (single word instruction) ; jump must be taken in loop iteration n and n+1 ; PEC transfer must occur in loop iteration n Example2: Label_A: instruction x ; Begin of Loop1 instruction x+1 ..... Label_C: JMPR cc_xx, Label_A ; End of Loop1, Begin of Loop2 ; instruction must be JMPR (single word instruction) ; jump not taken in loop iteration n-1, i.e. Loop2 is entered ; jump must be taken in loop iteration n and n+1 ; PEC transfer must occur in loop iteration n ..... Label_B: JMP Label_C ; End of Loop2 ; JMP may be any of the following jump instructions: JMPR cc_zz, JMPA cc_zz, JB/JNB/JBC/JNBS ; jump taken in loop iteration n-1 A code sequence with the basic structure of Example1 was generated e.g. by a compiler for comparison of double words (long variables). Microcontroller Division Errata Sheet, C167CR/SR–LM/4RM/16RM, ES-FA, FA, 2.2, Mh - 4 of 17 - Workarounds: 1. use a JMPA instruction instead of a JMPR instruction when this instruction can be the direct target of a preceding JMPR, JMPA, JB/JNB/JBC/JNBS instruction, or 2. insert another instruction (e.g. NOP) as branch target when a JMPR instruction would be the direct target of a preceding JMPR, JMPA, JB/JNB/JBC/JNBS instruction, or 3. change the loop structure such that instead of jumping from Label_B to Label_C and then to Label_A, the jump from Label_B directly goes to Label_A. Notes on compilers (as reported by compiler manufacturers): In the Hightec compiler beginning with version Gcc 2.7.2.1 for SAB C16x – V3.1 Rel. 1.1, patchlevel 5, a switch –m bus18 is implemented as workaround for this problem. In addition, optimization has to be set at least to level 1 with –u1. The Keil C compiler versions ≥ V4.02 - in combination with directive FIXPEC when OPTIMIZE(7) is selected -, and version 3.12o, including the associated run time libraries, do not generate or use instruction sequences where a JMPR instruction can be the target of another jump instruction, i.e. the conditions for this problem do not occur. With other versions, the problem may occur e.g. in nested for/while loops, when the inner loop looks as follows: Example i): while (..) { while (variable == constant) { <last statement is a modification of variable value> } } ... Example ii): for (..) { for ( ; variable < 100; variable++) { .. } } The critical JMPR-JMPR sequence does not occur when a for loop is used with constant initialization, e.g.. while (...) for (variable = 0; variable < 100; variable++) { .. } } Recommendation: use V4.03 (or higher), or V3.12o, or insert nop () in nested loops e.g. as follows: void test(int i, int k) { while (k) { nop (); while (i) { i--; }; k--; }; } In the TASKING C166 Software Development Tools, the code sequence related to problem BUS.18 can be generated in Assembly. The problem can also be reproduced in C-language by using a particular sequence of GOTOs. Microcontroller Division Errata Sheet, C167CR/SR–LM/4RM/16RM, ES-FA, FA, 2.2, Mh - 5 of 17 - With V6.0r3, TASKING tested all the Libraries, C-startup code and the extensive set of internal testsuite sources and the BUS.18 related code sequence appeared to be NOT GENERATED. To prevent introduction of this erroneous code sequence, the TASKING Assembler V6.0r3 has been extended with the CHECKBUS18 control which generates a WARNING in the case the described code sequence appears. When called from within EDE, the Assembler control CHECKBUS18 is automatically 'activated'. BUS.19: Unlatched Chip Selects at Entry into Hold Mode Unlike in standard (latched) configuration, the chip select lines in unlatched configuration (SYSCON.CSCFG = 1) are not driven high for 1 TCL after HLDA# is driven low, but start to float when HLDA# is driven low. OWD.1: Function of Bit OWDDIS/SYSCON.4 The status of bit OWDDIS/SSYCON.4 has no effect on the oscillator watchdog, i.e. the oscillator watchdog can not be disabled or enabled by bit OWDDIS. The oscillator watchdog can only be disabled by a low level on pin OWE (84). An internal pull-up holds this pin high in case it is left unconnected, thus enabling the oscillator watchdog in direct drive or prescaler mode. X9: Read Access to XPERs in Visible Mode The data of a read access to an XBUS-Peripheral (XRAM, CAN) in Visible Mode is not driven to the external bus. PORT0 is tristated during such read accesses. Note that in Visible Mode PORT1 will drive the address for an access to an XBUS-Peripheral, even when only a multiplexed external bus is enabled. CAN.7 Unexpected remote frame transmission Symptom The on-chip CAN module may send an unexpected remote frame with the identifier=0, when a pending transmit request of a message object is disabled by software. Detailed Description There are three possibilities to disable a pending transmit request of a message object (n=1..14): • • • Set CPUUPDn element Reset TXRQn element Reset MSGVALn element Either of these actions will prevent further transmissions of message object n. The symptom described above occurs when the CPU accesses CPUUPD, TXRQ or MSGVAL, while the pending transmit request of the corresponding message object is transferred to the CAN state machine (just before start of frame transmission). At this particular time the transmit request is transferred to the CAN state machine before the CPU prevents transmission. In this case the transmit request is still accepted from the CAN state machine. However the transfer of the identifier, the data length code and the data of the corresponding message object is prevented. Then the pre-charge values of the internal “hidden buffer” are transmitted instead, this causes a remote frame transmission with identifier=0 (11 bit) and data length code=0. Microcontroller Division Errata Sheet, C167CR/SR–LM/4RM/16RM, ES-FA, FA, 2.2, Mh - 6 of 17 - This behavior occurs only when the transmit request of message object n is pending and the transmit requests of other message objects are not active (single transmit request). If this remote frame loses arbitration (to a data frame with identifier=0) or if it is disturbed by an error frame, it is not retransmitted. Effects to other CAN nodes in the network The effect leads to delays of other pending messages in the CAN network due to the high priority of the Remote Frame. Furthermore the unexpected remote frame can trigger other data frames depending on the CAN node’s configuration. Workarounds 1. The behavior can be avoided if a message object is not updated by software when a transmission of the corresponding message object is pending (TXRQ element is set) and the CAN module is active (INIT = 0). If a re-transmission of a message (e.g. after lost arbitration or after the occurrence of an error frame) needs to be cancelled, the TXRQ element should be cleared by software as soon as NEWDAT is reset from the CAN module. 2. The nodes in the CAN system ignore the remote frame with the identifier=0 and no data frame is triggered by this remote frame. Microcontroller Division Errata Sheet, C167CR/SR–LM/4RM/16RM, ES-FA, FA, 2.2, Mh - 7 of 17 - Application Hints Note on Interrupt Register behaviour of the CAN module Due to the internal state machine of the CAN module, a specific delay has to be considered between resetting INTPND and reading the updated value of INTID. See Application Note AP2924 " Interrupt Register behaviour of the CAN module in Siemens 16-bit Microcontrollers" on http://www.infineon.com/cmc_upload/migrated_files/document_files/Application_Notes/ap292401.pdf Handling of the SSC Busy Flag (SSCBSY) In master mode of the High-Speed Synchronous Serial Interface (SSC), when register SSCTB has been written, flag SSCBSY is set to '1' when the baud rate generator generates the next internal clock pulse. The maximum delay between the time SSCTB has been written and flag SSCBSY=1 is up to 1/2 bit time. SSCBSY is cleared 1/2 bit time after the last latching edge. When polling flag SSCBSY after SSCTB has been written, SSCBSY may not yet be set to '1' when it is tested for the first time (in particular at lower baud rates). Therefore, e.g. the following alternative methods are recommended: 1. test flag SSCRIR (receive interrupt request) instead of SSCBSY (in case the receive interrupt request is not serviced by CPU interrupt or PEC), e.g. loop: BCLR SSCRIR ;clear receive interrupt request flag MOV SSCTB, #xyz ;send character wait_tx_complete: JNB SSCRIR, wait_tx_complete ;test SSCRIR JB SSCBSY, wait_tx_complete ;test SSCBSY to achieve original timing(SSCRIR may be set 1/2 bit time before SSCBSY is cleared) 2. use a software semaphore bit which is set when SSCTB is written and is cleared in the SSC receive interrupt routine Oscillator Watchdog and Prescaler Mode The OWD replaces the missing oscillator clock signal with the PLL clock (base frequency). In direct drive mode the PLL base frequency is used directly (fcpu = 2...5 MHz). In prescaler mode the PLL base frequency is divided by 2 (fcpu = 1...2.5 MHz). PLL lock after temporary clock failure When the PLL is locked and the input clock at XTAL1 is interrupted then the PLL becomes unlocked, provides the base frequency (2 ... 5 MHz) and the PLL unlock interrupt request flag is set. If the XTAL1 input clock starts oscillation again then the PLL stays in the PLL base frequency. The CPU clock source is only switched back to the XTAL1 oscillator clock after a hardware reset. This can be achieved via a normal hardware reset or via a software reset with enabled bidirectional reset. It is important that the hardware reset is at least active for 1 ms, after that time the PLL is locked in any case. Microcontroller Division Errata Sheet, C167CR/SR–LM/4RM/16RM, ES-FA, FA, 2.2, Mh - 8 of 17 - Deviations from Electrical- and Timing Specification: The following table lists the deviations of the DC/AC characteristics from the specification in the C167CR Data Sheet V3.1, 2000-04: Problem Parameter Symbol short name DC.IALEL.1 Limit Values Unit Test min. ALE inactive current IALEL 30 instead of 40 - Condition max. µA VOUT = VOLmax - A/D Converter Characteristics: ADCC.2.3: ADC Overload Current During exceptional conditions in the application system an overload current IOV can occur on the analog inputs of the A/D converter when VAIN > Vdd or VAIN < Vss. For this case, the following conditions are specified in the Data Sheet: IOVmax = | ±5 mA | The specified total unadjusted error TUEmax = | ±2 LSB | is only guaranteed if overload conditions occur on maximum 2 not selected analog input pins and the absolute sum of input overload currents on all analog input pins does not exceed 10 mA. (It is also allowed to distribute the overload to more than 2 not selected analog input pins). Due to an internal problem, the specified TUE value is only met for a positive overload current 0 mA ≤ IOV ≤ +5 mA (all currents flowing into the microcontroller are defined as positive and all currents flowing out of it are defined as negative). If the exceptional conditions in the application system cause a negative overload current, then the maximum TUE can be exceeded (depending on value of IOV and RAREF): Problem Description in Detail: 1. Overload Current at analog Channel ANn (n ∈ 1 ... 11) and Influence to VAREF If an overload current IOV occurs on analog input channel ANn, then an additional current IAREF (crosstalk current) is caused at pin VAREF. Depending on RAREF, the internal resistance of the reference voltage, the crosstalk current IAREF at pin VAREF can cause an additional unadjusted error AUE to all other analog channels. In case RAREF ≤ 490 Ohm [ RAREF ≤ ((LSB/2) / (IOVmax * ovf-3) ] the maximum possible additional error to all other channels is smaller than 0.5 LSB with the condition of IOVmax = | ±5 mA| at ANn. Relation between IAREF and IOV at ANn: Note: IAREF = ovf-3 * IOVn (n ∈ 1 ... 11) The influence to the reference voltage VAREF caused by IOVn (shift of VAREF) is maximum for VAINn = VAREF and the influence is minimum for VAINn = 0V (n ∈ 1... 11). The condition RAREF ≤ 490 Ohm and 0.5 LSB is calculated for the worst case at VAINn = VAREF. 2. Values of ovf-3 Parameter Overload factor-3 Symbol ovf-3 Min - 0.001 Microcontroller Division Errata Sheet, C167CR/SR–LM/4RM/16RM, ES-FA, FA, 2.2, Mh Max 0 - 9 of 17 - History List C167CR-LM (since device step BA) Functional Short Description Problem Fixed in step ADC.11 Modifications of ADM field while bit ADST = 0 BUS.17 Spikes on CS# lines after access with RDCS# and/or WRCS# (not in BE and earlier steps) BUS.18 PEC transfers after JMPR BUS.19 Unatched Chip Selects at Entry into Hold Mode (not in BE and earlier steps) OWD.1 Function of Bit OWDDIS/SYSCON.4 (not in BE and earlier steps) PWRDN.1 Execution of PWRDN Instruction while pin NMI# = high X9 Read Access to XPERs in Visible Mode CAN.7 Unexpected Remote Frame Transmission ADC.8 CC31/ADC Interference BE ADC.10 Start of Standard Conversion at End of Injected Conversion CB CPU.8 Jump instruction in EXTEND sequence BE CPU.9 PEC Transfers during instruction execution from Internal RAM CB CPU.11 Stack Underflow during Restart of Interrupted Multiply BE CPU.17 Arithmetic Overflow by DIVLU instruction RST.1 System Configuration via P0L.0 during Software/Watchdog Timer Reset SSC.8 Data Transmission in Slave Mode (Step EES-FA only) X10 P0H I/O conflict during XPER access and external 8-bit Non-multiplexed bus BE X12 P0H spikes after XPER write access and external 8-bit Non-multiplexed bus (Step BE until step DB only) (EES-)FA PINS.1 OUTPUT Signal Rise Time (DA-step only) (EES-)FA AC/DC Deviation Short Description Fixed in step (EES-)FA CB ES-FA DC.IALEL.1 ALE inactive current 30 µA (FA-steps only) ADCC.2.3 ADC Overload Current (FA-steps only) DC.IALEH.1 ALE active current 1000µA (DA-step only) (EES-)FA DC.IRWL.1 RD#/WR# active current –600µA (DA-step only) (EES-)FA DC.IP6L.1 Port 6 active current –600 µA (DA-step only) (EES-)FA DC.IP0L.1 Port 0 configuration current –110µA (DA-step only) (EES-)FA AC.t5.1 ALE high time TCL-15ns (DA-step only) (EES-)FA AC.t12.1 WR#/WRH# low time (with RW-delay) 2TCL-12ns (DA-step only) (EES-)FA AC.t13.1 WR#/WRH# low time (no RW-delay) 3TCL-12ns (DA-step only) (EES-)FA AC.t15.1 RD# to valid data in 3TCL-25ns (step BE only) (EES-)FA AC.t16.1 ALE low to valid data in 3TCL-25ns (step BE only) (EES-)FA Microcontroller Division Errata Sheet, C167CR/SR–LM/4RM/16RM, ES-FA, FA, 2.2, Mh - 10 of 17 - AC.t34.1 CLKOUT rising edge to ALE falling edge 12ns (step BE only) (EES-)FA AC.t38.2 ALE falling edge to CS# -10ns (step BE only) (EES-)FA AC.t38.1 ALE falling edge to CS# -7ns (DA-step only) (EES-)FA AC.t48.1 RDCS#/WRCS# low time (with RW-delay) 2TCL-12ns (DA-step only) (EES-)FA AC.t49.1 RDCS#/WRCS# low time (no RW-delay) 3TCL-12ns (DA-step only) (EES-)FA ADCC.2.1 ADC Overload Current (CB-step only) DA ADCC.2.2 ADC Overload Current (DA- and DB-step only) (EES-)FA History List C167SR-LM (since device step BA) Functional Short Description Problem Fixed in step ADC.11 Modifications of ADM field while bit ADST = 0 BUS.17 Spikes on CS# lines after access with RDCS# and/or WRCS# (not in BA and earlier steps) BUS.18 PEC transfers after JMPR BUS.19 Unatched Chip Selects at Entry into Hold Mode (not in BA and earlier steps) OWD.1 Function of Bit OWDDIS/SYSCON.4 (not in BA and earlier steps) PWRDN.1 Execution of PWRDN Instruction while pin NMI# = high X9 Read Access to XPERs in Visible Mode ADC.8 CC31/ADC Interference DA ADC.10 Start of Standard Conversion at End of Injected Conversion DA CPU.8 Jump instruction in EXTEND sequence DA CPU.9 PEC Transfers during instruction execution from Internal RAM DA CPU.11 Stack Underflow during Restart of Interrupted Multiply DA CPU.17 Arithmetic Overflow by DIVLU instruction RST.1 System Configuration via P0L.0 during Software/Watchdog Timer Reset DA X10 P0H I/O conflict during XPER access and external 8-bit Non-multiplexed bus DA X12 P0H spikes after XPER write access and external 8-bit Non-multiplexed bus (DA-step only) (ES-)FA PINS.1 OUTPUT Signal Rise Time (DA-step only) (ES-)FA AC/DC Deviation Short Description Fixed in step (ES-)FA DC.IALEL.1 ALE inactive current 30 µA (FA-steps only) ADCC.2.3 ADC Overload Current (specific for FA-steps) DC.IALEH.1 ALE active current 1000µA (DA-step only) (ES-)FA DC.IRWL.1 RD#/WR# active current –600µA (DA-step only) (ES-)FA DC.IP6L.1 (ES-)FA Port 6 active current –600 µA (DA-step only) Microcontroller Division Errata Sheet, C167CR/SR–LM/4RM/16RM, ES-FA, FA, 2.2, Mh - 11 of 17 - DC.IP0L.1 Port 0 configuration current –110µA (DA-step only) (ES-)FA AC.t5.1 ALE high time TCL-15ns (DA-step only) (ES-)FA AC.t12.1 WR#/WRH# low time (with RW-delay) 2TCL-12ns (DA-step only) (ES-)FA AC.t13.1 WR#/WRH# low time (no RW-delay) 3TCL-12ns (DA-step only) (ES-)FA AC.t38.1 ALE falling edge to CS# -7ns (DA-step only) (ES-)FA AC.t48.1 RDCS#/WRCS# low time (with RW-delay) 2TCL-12ns (DA-step only) (ES-)FA AC.t49.1 RDCS#/WRCS# low time (no RW-delay) 3TCL-12ns (DA-step only) (ES-)FA ADCC.2.2 ADC Overload Current (DA-step only) (ES-)FA History List C167CR-4RM (since device step AB) Functional Short Description Problem Fixed in step ADC.11 Modifications of ADM field while bit ADST = 0 BUS.17 Spikes on CS# Lines after access with RDCS# and/or WRCS# BUS.18 PEC Transfers after JMPR Instruction BUS.19 Unatched Chip Selects at Entry into Hold Mode OWD.1 Function of Bit OWDDIS/SYSCON.4 PWRDN.1 Execution of PWRDN Instruction while pin NMI# = high X9 Read Access to XPERs in Visible Mode CAN.7 Unexpected Remote Frame Transmission CPU.8 Jump instruction in EXTEND sequence AC CPU.9 PEC Transfers during instruction execution from Internal RAM AC CPU.11 Stack Underflow during Restart of Interrupted Multiply AC CPU.16 Data read access with MOVB [Rn], mem instruction to internal ROM (EES-)FA CPU.17 Arithmetic Overflow by DIVLU instruction (EES-)FA RST.1 System Configuration via P0L.0 during Software/Watchdog Timer Reset AC RST.3 Bidirectional Hardware Reset DA ADC.8 CC31/ADC Interference AC ADC.10 Start of Standard Conversion at End of Injected Conversion AC SSC.8 Data Transmission in Slave Mode (Step EES-FA only) ES-FA X12 P0H spikes after XPER write access and external 8-bit Non-multiplexed bus (EES-)FA PINS.1 OUTPUT Signal Rise Time (DA-step only) DB AC/DC Deviation Short Description Fixed in step DC.IALEL.1 ALE inactive current 30µA (problem only in FA-steps) ADCC.2.3 ADC Overload Current (specific for FA-steps) Microcontroller Division Errata Sheet, C167CR/SR–LM/4RM/16RM, ES-FA, FA, 2.2, Mh - 12 of 17 - DC.VOL.1 Output low voltage (Port0/1/4, ALE, RD#, WR#, ...) test condition 1.6mA (AC-step only) DA DC.IALEH.1 ALE active current 1000µA (EES-)FA DC.IRWL.1 RD#/WR# active current –600µA (EES-)FA DC.IP6L.1 Port 6 active current –600 µA (EES-)FA DC.IP0L.1 Port 0 configuration current –110µA (problem not in AC step) (EES-)FA DC.HYS.1 Input Hysteresis 300mV (restriction not effective in production test) - AC.t5.1 ALE high time TCL-15ns DB AC.t12.1 WR#/WRH# low time (with RW-delay) 2TCL-12ns (EES-)FA AC.t13.1 WR#/WRH# low time (no RW-delay) 3TCL-12ns (EES-)FA AC.t38.1 ALE falling edge to CS# -7ns (EES-)FA AC.t48.1 RDCS#/WRCS# low time (with RW-delay) 2TCL-12ns (EES-)FA AC.t49.1 RDCS#/WRCS# low time (no RW-delay) 3TCL-12ns (EES-)FA ADCC.2.2 ADC Overload Current (EES-)FA History List C167CR-16RM (since device step AA) Functional Short Description Problem Fixed in step ADC.10 Start of Standard Conversion at End of Injected Conversion (EES-)FA ADC.11 Modifications of ADM field while bit ADST = 0 BUS.17 Spikes on CS# lines after access with RDCS# and/or WRCS# (FA steps only) BUS.18 PEC transfers after JMPR BUS.19 Unatched Chip Selects at Entry into Hold Mode (not in step AA) OWD.1 Function of Bit OWDDIS/SYSCON.4 (not in step AA) CPU.9 PEC Transfers during instruction execution from Internal RAM (EES-)FA CPU.12 Access to internal ROM with EXTS/EXTSR instructions (EES-)FA CPU.16 Data read access with MOVB [Rn], mem instruction to internal ROM (EES-)FA CPU.17 Arithmetic Overflow by DIVLU instruction (EES-)FA PWRDN.1 Execution of PWRDN Instruction while pin NMI# = high ROM.1 Internal ROM access to locations 28000h ... 2FFFFh (EES-)FA RST.1 System Configuration via P0L.0 during Software/Watchdog Timer Reset (EES-)FA SSC.8 Data Transmission in Slave Mode (Step EES-FA only) ES-FA CAN.7 Unexpected Remote Frame Transmission X9 Read Access to XPERs in Visible Mode X12 P0H spikes after XPER write access and external 8-bit Non-multiplexed bus Microcontroller Division Errata Sheet, C167CR/SR–LM/4RM/16RM, ES-FA, FA, 2.2, Mh (EES-)FA - 13 of 17 - AC/DC Deviation Short Description Fixed in step DC.IALEL.1 ALE inactive current 30 µA (FA-steps only) ADCC.2.3 ADC Overload Current (FA-steps only) AC.t15.1 RD# to valid data in 3TCL-25ns (EES-)FA AC.t16.1 ALE low to valid data in 3TCL-25ns (EES-)FA AC.t34.1 CLKOUT rising edge to ALE falling edge 12ns (EES-)FA AC.t38.2 ALE falling edge to CS# -10ns (EES-)FA History List C167S-4RM (since device step AA) Functional Short Description Problem ADC.11 Modifications of ADM field while bit ADST = 0 BUS.17 Spikes on CS# lines after access with RDCS# and/or WRCS# (not in step AA of C167S-4RM) BUS.18 PEC transfers after JMPR BUS.19 Unatched Chip Selects at Entry into Hold Mode (not in step AA) OWD.1 Function of Bit OWDDIS/SYSCON.4 (not in step AA) PWRDN.1 Execution of PWRDN Instruction while pin NMI# = high ADC.8 CC31/ADC Interference ADC.10 Start of Standard Conversion at End of Injected Conversion CPU.8 Jump instruction in EXTEND sequence CPU.9 PEC Transfers during instruction execution from Internal RAM CPU.11 Stack Underflow during Restart of Interrupted Multiply CPU.12 Access to internal ROM with EXTS/EXTSR instructions CPU.16 Data read access with MOVB [Rn], mem instruction to internal ROM CPU.17 Arithmetic Overflow by DIVLU instruction RST.1 System Configuration via P0L.0 during Software/Watchdog Timer Reset AC/DC Deviation Short Description Microcontroller Division Errata Sheet, C167CR/SR–LM/4RM/16RM, ES-FA, FA, 2.2, Mh Fixed in step Fixed in step - 14 of 17 - In addition to the description in the C167 Derivatives User's Manual V2.0, the following feature enhancements have been implemented in the FA-step of the C167CR/SR/S. They are described in detail in the C167 Derivatives User's Manuals V2.1 .. V3.1, 1999-03 .. 2000-03. Incremental position sensor interface For each of the timers T2, T3, T4 of the GPT1 unit, an additional operating mode has been implemented which allows to interface to incremental position sensors (A, B, Top0). This mode is selected for a timer Tx via TxM = 110b in register TxCON, x = (2, 3, 4). Optionally, the contents of T5 may be captured into register CAPREL upon an event on T3. This feature is selected via bit CT3 = 1 in register T5CON.10. A detailed description of this feature is also included in the 'Documentation Addendum: GPT Incremental Interface Mode V1.0 1998-10'. Oscillator Watchdog The Oscillator Watchdog (OWD) monitors the clock at XTAL1 in direct drive and prescaler mode. In case of clock failure, the PLL Unlock/OWD Interrupt Request Flag (XP3IR) is set and the internal CPU clock is supplied with the PLL basic frequency. This feature can be disabled by a low level on pin Vpp/OWE. Bit OWDDIS/SYSCON.4 allows to disable this feature via software on device steps where problem OWD.1 is fixed. Bidirectional Reset Optionally, an internal watchdog timer or software reset will be indicated on the RSTIN# pin which will be driven low for the duration of the internal reset sequence. RSTIN# will also be driven low for the duration of the internal reset sequence when this reset was initiated by an external HW reset signal on pin RSTIN#. This option is selectable by software via bit BDRSTEN/SYSCON.3. After reset, the bidirectional reset option is disabled (BDRSTEN/SYSCON.3 = 0). Reset Source Indication in Register WDTCON Besides indication of a watchdog timer reset in bit WDTR in register WDTCON, the FA-step additionally allows indication of other reset sources and types (software reset, long/short hardware reset, etc.) in status flags in the low byte of register WDTCON. While in previous steps, only reset values 0000h or 0002h could occur for WDTCON, in the FA-step further values may occur in the low byte of WDTCON. Therefore, programs written for previous steps which evaluate the contents of WDTCON after reset and which explicitly test bit WDTR either via bit instructions or via mask operations will work identically on the FA-step. However, programs which assume that all other bits in the low byte of WDTCON except bit WDTR are always '0' (which is true for previous steps) and therefore e.g. test WDTCON with byte or word operations may work differently on the FA-step. The following table summarizes the behaviour of the reset source indication flags. Flag LHWR SHWR SWR Event WDTCON.4 WDTCON.3 WDTCON.2 1 1 1 Long HW Reset -/* 1 1 Short HW Reset -/* -/* 1 SRST instruction -/* -/* 1 WDT Reset 0 0 0 EINIT instruction SRVWDT instruction Legend: 1 = flag is set, 0 = flag is cleared, - = flag is not affected, * = flag is set when bi-directional reset option is enabled Microcontroller Division Errata Sheet, C167CR/SR–LM/4RM/16RM, ES-FA, FA, 2.2, Mh WDTR WDTCON.1 0 0 1 0 - 15 of 17 - XBUS Peripheral Enable Bit XPEN/SYSCON.2 (does not apply to C167S and C167SR) Bit SYSCON.2 has been modified into a general XBUS Peripheral Enable bit, i.e. it controls both the XRAM and the CAN module. When bit SYSCON.2 = 0 (default after reset), and an access to an address in the range EF00h ... EFFFh is made, either an external bus access is performed (if an external bus is enabled), or the Illegal Bus Trap is entered. In previous versions, the CAN module was accessed in this case. Systems where bit SYSCON.2 was set to '1' before an access to the CAN module in the address range EF00h ... EFFFh was made will work without problems with all steps of the C167CR. Clock System In total 8 different clock configuration options are selectable during reset on P0H.7..5 (direct drive, prescaler 0.5, PLL factors 2, 3, 4, 5, 1.5, 2.5). Some options are configured via settings on P0H.7..5 during reset which would have selected Direct Drive in previous steps (for details, see Appendix in Errata Sheet V1.x of respective device): Reset Configuration P0H.[7:5] 011 010 001 000 CPU Frequency fcpu = fxtal * F fxtal * 1 fxtal * 1.5 fxtal / 2 fxtal * 2.5 Notes Direct Drive 1) Prescaler Operation, 1) 1) 1) Note: previous steps have selected Direct Drive when P0H.[7:5] = 0XX, i.e. the level on P0H.6 and P0H.5 during reset was not evaluated. In addition, the internal oscillator circuit has been improved in the FA-step. It is compatible to the Type_R oscillator with respect to the size of the components for an external crystal oscillator circuit. See Application Note AP2420 'Crystal Oscillator of the C500 and C166 Microcontroller Families' on http://www.infineon.com/cgi/ecrm.dll/ecrm/scripts/prod_cat.jsp?oid=-8137, or use direct link http://www.infineon.com/cmc_upload/migrated_files/document_files/Application_Notes/ap242005.pdf External Bus Controller By default, the CS# signals (when used as address CS# signals) are switched nominally 1 TCL after the address for an external bus access is driven. This ensures a defined transition from active to inactive state without glitches. Optionally, controlled by bit CSCFG/SYSCON.6 = 1, the leading edge of the CS# signals may be generated in an unlatched mode, i.e. the CS# signals are directly derived from the addresses and are switched in the same internal clock phase as the addresses. This allows more time for the 'chip enable access time' tce of external devices, however, glitches may occur on CS# lines while the addresses are changing. Port Driver Control Register Beginning with the FA-step, the driving capability of the pad drivers can be selected via software in register PDCR (ESFR address 0F0AAh). Two driving levels (fast edge mode/reduced edge mode) can be selected for two groups of pins. Bit PDCR.0/BIPEC controls the edge characteristic of Bus Interface Pins (PORT0/1, port 4, port 6, RD#, WR#, ALE, WRH#/BHE, CLKOUT), while bit PDCR.4/NBPEC controls Non-Bus Pins (port 2, port 3, port 7, port 8, RSTOUT#, RSTIN# in bidirectional mode). The reset value '0' selects fast edge mode to ensure compatibility with previous versions and steps. Port 5 Digital Input Control via register P5DIDIS Beginning with the FA-step, the digital input stages on port 5 may be disconnected from pins used as analog inputs via register P5DIDIS. Microcontroller Division Errata Sheet, C167CR/SR–LM/4RM/16RM, ES-FA, FA, 2.2, Mh - 16 of 17 - A/D Converter Due to correction of the former problem ADC.7, injected conversions will no longer be aborted by the start of a standard conversion. The following table summarizes the ADC behaviour in this situation for all possible combinations of conversion requests. Note that a conversion request as discussed in this context is activated when the respective control bit (ADST or ADCRQ) is toggled from ’0’ to ’1’, i.e. the bit must have been zero before being set. Conversion in progress New requested conversion Standard Injected Standard Abort running conversion and start requested new conversion Complete running conversion, start requested conversion after that Injected Complete running conversion, start requested conversion after that Complete running conversion, start requested conversion after that. Bit ADCRQ will be ’0’ for the second conversion. Due to internal improvements, the internal timing of the A/D converter of the FA-step is slightly different from previous versions, which is reflected in a different way of specifying the ADC. When ADCON.[15:12] = 0000b (default), the conversion time tc of the A/D converter of the FA-step is identical to previous steps, while the sample time ts is increased by a factor of 1.33. For ADCON.[15:12] ≠ 0000b, tc and/or ts may be different from previous steps. Since the FA-step is produced in a different technology than previous steps, it is recommended to check the overall ADC accuracy in the target system with respect to the impedance of the analog signal and the analog reference voltage. This should be done in particular when the FA-step is operated at a higher frequency than previous steps. Application Support Group, Munich Microcontroller Division Errata Sheet, C167CR/SR–LM/4RM/16RM, ES-FA, FA, 2.2, Mh - 17 of 17 -