Directory / Selection

last update: December 21st, 1998

8-bit AppNotes

16-bit AppNotes

CAN specific AppNotes


8-bit logo AppNotes

Emulating a synchronous serial interface (SSC) via software routines.
The solution presented in this paper and in the attached source files emulates the most important SSC functions by using SW routines implemented in C. The code is focused on the SAB C513, but will fit to all C500 derivatives. Beyond the low level software drivers a test shell is delivered. This shell allows a quick test of the software drivers by an emulator or a starter kit demo board.

top16-bitCAN
AP083001.PDF
AP083001.EXE

95K
27K
09.98
Rel.01
Emulating an asynchronous serial interface (USART) via software routines.
The solution presented in this paper and in the attached source files emulates the most important USART functions by using SW routines implemented in C. The code is focused on the SAB C513, but will fit to all C500 derivatives. Beyond the low level software drivers a test shell is delivered. This shell allows a quick test of the software drivers by an emulator or a starter kit demo board.

top16-bitCAN
AP083101.PDF
AP083101.EXE

98K
28K
09.98
Rel.01
Simulating an asynchronous serial interface (USART) via the on-chip synchronous serial interface (SSC).
The solution presented in this paper and in the attached source files emulates the most important USART functions by using the on-chip synchronous serial communication channel (SSC). The code is focused on the SAB C513, but will fit to all C500 derivatives. Beyond the low level software drivers a test shell is delivered. This shell allows a quick test of the software drivers by an emulator or a starter kit demo board.

top16-bitCAN
AP083201.PDF
AP083201.EXE

104K
28K
09.98
Rel.01
ADIS51 - Disassembler with One-Line Assembler for the 8051 and C500 8-Bit Microcontroller Family
ADIS51 allows the analysis of program code for the microcontrollers of the 8051/C500 family. Program code in different formats can be loaded and displayed in Hex-dump or Dis-assembler format. Single instructions can be input using the built-in Assembler. Program code flow and instructions can be analysed and written into a Log-file in a list or assembler source format. SFR and bit symbol operation is provided using a symbol definition file.

top16-bitCAN
AP082701.PDF
AP082701.EXE

225K
48K
10.97
Rel.01
C504 - CCU, Block Commutation Mode
Revolution Speed Measuring in Block Commutation PWM Mode for brushless Synchronous AC Motors

top16-bitCAN
AP080012.PDF

84K
03.96
Rel.12
C504 - Generating sinusoidal Three-Phase-Currents for Induction Machines with a time-optimized Algorithm for the Capture Compare Unit
This application note proposes a time optimized algorithm for three-phase induction drive control by the Siemens microcontroller C504. Three sinewave phase currents can easily be generated and controlled by the on-chip Capture Compare Unit (CCU), requiring very few CPU computing time (about 30% at 20 kHz PWM frequency in open-loop mode)
top16-bitCAN
AP082201.PDF
AP082201.EXE
317K
690K
06.97
Rel.10
C504 Important application hints for dead time generation with the Capture / Compare Unit
Correct dead time generation for low duty cycle PWM COUTx output signals requires proper setting of offset and compare registers.
top16-bitCAN
AP082301.PDF
24K
04.97
Rel.01
C515 - CAN Bit Timing - Calculation: CP_515C.EXE
This document describes how to install and to use the "CP_515C.EXE" tool. "CP_515C.EXE" facilities the CAN Bit Timing Calculation for the C515 by automatically proposing register configurations to reach a given bus baudrate. Master/Slave Bus Arbitration

top16-bitCAN
AP082801.PDF
AP082801.EXE

12K
399K
01.98
Rel.01
C5xx / 80C5xx In-System FLASH Programming
The following approach describes the proceeding for in-system reprogramming of an external (5V-only) FLASH code memory by using the internal ROM code. Due to the ´Harvard Architecture´, an additional external logic (PLD) is used for a software switching mechanism between code and data memory.

top16-bitCAN
AP082101.PDF

90K
08.96
Rel.01
Connecting C166 and C500 Microcontrollers to CAN
Application Note of the CAN Devices C167CR, C515C, SAE 81C90/91

top16-bitCAN
AP290002.PDF

863K
06.97
Rel.01
Crystal Oscillator of the C500 and C166 Microcontroller Families
Explains the crystal oscillator functionality and gives recommendations how to get the right composition on external circuits.

top16-bitCAN
AP242003.PDF

260K
04.98
Rel.03
EMC by Simulation
Reduction of Electromagnetic Radiation by Detection and Optimization of Critical Networks on a PCB during the Layout-process
top16-bitCAN
AP242101.PDF
288K
04.97
Rel.01
Power Supply Concept for the C515C
This application note introduces a power supply concept for the C515C and deals with the enhanced feature of this controller to switch off the Address Latch Enable (ALE) output signal during accesses to internal ROM..
top16-bitCAN
AP082501.PDF
57K
05.97
Rel.01
Program Memory Expansion by using the Bankswitching Capability of the C5xx/80C5xx Family
This application note describes the proceeding for external program memory expansion from 64 KByte to 512 KByte by using the bankswitching capability of the C5xx/80C5xx Family
top16-bitCAN
AP082401.PDF
138K
06.97
Rel.01
The CAN Controller in the C515C
Describes the CAN functionality, the initialisation and the use of the CAN module - Examples concerning interrupt generation and error handling will be given.

top16-bitCAN
AP082001.PDF
AP082001.EXE

445K
19K
12.96
Rel.01

16-bit logo AppNotes

Emulating a synchronous serial interface (SSC) via software routines.
The solution presented in this paper and in the attached source files emulates the most important SSC functions by using SW routines implemented in C. The Code is focused on the SAB C161V/K/O, but will fit to all C16x derivatives. Beyond the low level software drivers a test shell is delivered. This shell allows a quick test of the software drivers by an emulator or a starter kit demo board. All files are available for Keil and Tasking C Cross Compiler.

top8-bitCAN
AP164901.PDF
AP164901.EXE

100K
75K
09.98
Rel.01
Emulating an asynchronous serial interface (ASC0) via software routines.
The solution presented in this paper and in the attached source files emulates the most important ASC functions by using SW routines implemented in C. The Code is focused on the SAB C161V/K/O, but will fit to all C16x derivatives. Beyond the low level software drivers a test shell is delivered. This shell allows a quick test of the software drivers by an emulator or a starter kit demo board. All files are available for Keil and Tasking C Cross Compiler.

top8-bitCAN
AP165001.PDF
AP165001.EXE

105K
108K
09.98
Rel.01
Emulating an asynchronous serial interface (ASC) via the on-chip synchronous serial interface (SSC).
The solution presented in this paper and in the attached source files emulates the most important ASC0 functions by using the on-chip synchronous serial communication channel (SSC). The Code is focused on the SAB C161V/K/O, but will fit to all C16x derivatives. Beyond the low level software drivers a test shell is delivered. This shell allows a quick test of the software drivers by an emulator or a starter kit demo board. All files are available for Keil and Tasking C Cross Compiler.

top8-bitCAN
AP165101.PDF
AP165101.EXE

106K
94K
09.98
Rel.01
80C166, On-chip Bootstrap Loader
With the BSL it is possible to load a program of 32 bytes into the internal RAM.

top8-bitCAN
AP160601.PDF
AP160601.EXE

218K
22K
09.94
Rel.01
ADIS16X - Disassembler with One-Line Assembler for the C166 - Family
ADIS16X allows the analysis of program code for the 16-bit microcontrollers of the C16X family. Program code in different formats can be loaded and displayed in Disassembler or Hex-dump format. Single instructions can be input using the built-in One-Line Assembler. Program code can be written into a Log-file in a list or assembler source format. SFR and bit symbol operation is provided using a symbol definition file.

top8-bitCAN
AP164002.PDF
AP164002.EXE

185K
52K
11.97
Rel.02
ATOMIC/EXTEND Instructions in BTRAP Service Routine
As long as at least one BTRAP flag is set in register TFR, ATOMIC/EXTEND instructions do not work !

top8-bitCAN
AP160502.PDF

23K
03.97
Rel.01
Biquad IIR Filter - C166 Family with Signal Processing Capabilities
Many applications like disk drives need both, controller and signal processing capabilities.
top8-bitCAN
AP160102.PDF
95K
03.97
Rel.01
Bootstrap Loader - IDB / Half Duplex
Some members of the C166 family do not support half duplex mode directly during bootstrap loader mode.
top8-bitCAN
AP161202.PDF
28K
03.97
Rel.01
Bootstrap Loader Versions
Any current step of the SAB 80C166, C167 and C165 except of the respective bond-out chips implements an on-chip bootstrap loader.

top8-bitCAN
AP161302.PDF

28K
03.97
Rel.01
Bootstrap Loader Support on C163-16F Flash Devices (Bx-step)
C163-16F Flash devices have no internal boot ROM and therefore no bootstrap loader which is needed for in-system programming of virgin Flash in single chip applications. From design step Bx on C163-16F Flash devices provide a mechanism for switching the reset vector depending on PORT0 configuration. This application note gives hints and examples how this feature can be used to achieve bootstrap loader support on C163-16F Flash.

top8-bitCAN
AP165201.PDF
AP165201.EXE

28K
169K
07.98
Rel.01
The Bootstrap Loader Tool
The Bootstrap Loader Tool can download a program (in Intel Hex Format) from the PC via the bootstrap loader of the microcontroller in any location of the internal or external RAM.

top8-bitCAN
AP164401.PDF
AP164401.EXE

984K
3,42M
01.98
Rel.01
'C' CAN Driver Routines for the C166 Family
This application note describes CAN protocol driver software routines written in 'C' for the members of the Siemens 16-bit microcontroller family C166 which are equipped with an on-chip CAN module (e.g. C167CR, C164CI).
top 8-bit CAN
AP292201.PDF
AP292201.EXE
233K
44K
4.97
Rel.01
C163 on-chip Flash Programming Tool
This Flash Programming Tool allows to program the on-chip Flash memory of the C163 (design step BA or later). Therefore a "boot support" (bootstrap loader program) must be available either in the Flash memory itself or in an external memory. The Flash Programming Tool takes care that this bootstrap loader code will never be erased accidentally.

top8-bitCAN
AP164301.PDF
AP164301.EXE

108K
3,3M
01.98
Rel.01
C165 / C167, On-chip Bootstrap Loader
With the BSL it is possible to load a program of 32 bytes into the internal RAM.
AP160612.EXE will cover the C167 / C165, too!

top8-bitCAN
AP160701.PDF
AP160701.EXE

207K
27K
01.94
Rel.01
C167CR - CAN Bit Timing - Calculation: CP_167CR.EXE
This document describes how to install and to use the "CP_167CR.EXE" tool. "CP_167CR.EXE" facilities the CAN Bit Timing Calculation for the C167 by automatically proposing register configurations to reach a given bus baudrate. Master/Slave Bus Arbitration

top8-bitCAN
AP164101.PDF
AP164101.EXE

12K
399M
01.98
Rel.01
C167CR - CAN Interrupt structure
Describes the functionality of the CAN interrupt structure and gives an implementation example of a standard CAN interrupt subroutine.

top8-bitCAN
AP162101.PDF

60K
12.96
Rel.01
C167CR - Specification Update
Master/Slave Bus Arbitration
top8-bitCAN
AP161902.PDF
82K
03.97
Rel.01
Connecting an Fast External A/D Converter on the CAPCOM- Unit
Connecting a Fast External A/D Converter (800ns Conversion-Time) by using the PEC and the 50ns Resolution on the CAPCOM-Unit
top8-bitCAN
AP163302.PDF
108K
03.96
Rel.01
Connecting C166 and C500 Microcontrollers to CAN
Application Note of the CAN Devices C167CR, C515C, SAE 81C90/91

top8-bitCAN
AP290002.PDF

863K
06.97
Rel.01
Crystal Oscillator of the C500 and C166 Microcontroller Families
Explains the crystal oscillator functionality and gives recommendations how to get the right composition on external circuits.

top8-bitCAN
AP242003.PDF

260K
04.98
Rel.03
EMC by Simulation
Reduction of Electromagnetic Radiation by Detection and Optimization of Critical Networks on a PCB during the Layout-process
top8-bitCAN
AP242101.PDF
288K
04.97
Rel.01
Fast - Fourier - Transformation
The Fast Fourier Transformation (FFT) is an algorithm frequently used in various applications, like telecommunication, signal and image processing. It transforms the time domain into the frequency domain where the spectrum of amplitude and frequency can be analyzed.
top8-bitCAN
AP163402.PDF
AP163402.EXE
178K
34K
03.97
Rel.01
Fast interrupts and CAPCOM Interference

top8-bitCAN
AP160201.PDF

84K
06.95
Rel.11
Fuel Injection Control for a 12 Cylinder Formula 1 Engine
Consequently, the C166 finds many applications in areas such as motor control and automotive enginemanagement where the production of precisely timed pulse trains are required.
top8-bitCAN
AP163502.PDF
308K
03.97
Rel.01
Hardware I2C-bus in slave mode by using polling and interrupt methods for C161RI microcontroller
This is a software module for hardware I2C-bus in slave mode by using software polling and hardware interrupt methods for C161RI microcontroller. The I2C-bus is used in many applications mainly to communicate between devices connected to the bus.

top8-bitCAN
AP164510.PDF
AP164510.EXE

156K
19K
02.98
Rel.01
How to make Instruction Sequences uninterruptable

top8-bitCAN
AP160902.PDF

119K
03.97
Rel.01
Implementation of the power management features with the Keil compiler (SAB C161RI BB)
This Application Note describes the implementation of power management features by means of the C166 Keil compiler (COMPILER C166 V3.05a, Linker L166 V3.05, Obj.-Hex. Converter HEX86 FILE CONVERTER V2.0). The power management makes that microcontroller very useful in power sensitive telecommunication applications.

top8-bitCAN
AP165801.PDF
AP165801.EXE

111 K
19 K
09.98
Rel.01
In-circuit Programming of C163 Flash Devices
With the SAB-C163-16F Siemens offers a 16-bit microcontroller with 128 KBytes on chip flash memory which uses the standard 5 Volt power supply for all read and write / erase functions. This application note gives hints and examples for in-circuit programming of C163 Flash devices (CPU mode). Also a software programming tool using the Ertec EVA163 evaluation board as hardware platform is encluded.

top8-bitCAN
AP162903.PDF
AP162903.EXE

76K
1,09M
04.98
Rel.03
In-circuit Programming of the C166 Family Flash Devices
Two flash devices, the SAB 88C166 with 32 Kbytes on-chip flash memory and the C167CR-16F with 128 Kbytes on-chip flash memory
SW version for the 88C166

top8-bitCAN
AP160860.PDF
AP160841.EXE

41K
162K
12.96
Rel.01
In-circuit Programming of the C166 Family Flash Devices
Two flash devices, the SAB 88C166 with 32 Kbytes on-chip flash memory and the C167CR-16F with 128 Kbytes on-chip flash memory
SW version for the C167CR-16F

top8-bitCAN
AP160860.PDF
AP160960.EXE

41K
123K
12.96
Rel.01
Input Signal Rise and Fall Times
All inputs of the C166-family have Schmitt-Trigger input characteristics.

top8-bitCAN
AP161001.PDF

43K
03.97
Rel.01
In-System Programming of C163-16F Flash Devices
Siemens C163-16F 16-bit microcontrollers provide 128 KBytes Flash memory on-chip. This application note gives hints and examples for in-system programming of C163-16F Flash devices. In-system programming is supported by the Windows-based OTP/ Flash memory programming tool "Memtool".

top8-bitCAN
AP162904.PDF
AP162904.EXE

72K
1.09M
07.98
Rel.03
In-System Programming of C164 OTP Devices
Siemens C164CI 16-bit microcontrollers provide 64 KByte OTP memory on-chip. This application note gives hints and examples for in-system programming of C164CI OTP devices. Memory programming and memory uploading is supported by the Windows-based memory tools "Memtool" and "ROM_UP".

top8-bitCAN
AP163901.PDF
AP163901.EXE

36K
1,8M
03.98
Rel.01
Interrupt Register behavior of the CAN module in Siemens 16-bit Microcontrollers
Description of the update beahavior of the CAN INTID value after INTPND bit is reset

top8-bitCAN
AP292401.PDF

40K
06.98
Rel.01
Interrupted MUL/DIV Instructions
Two possible software implementations will be compared

top8-bitCAN
AP161101.PDF

66K
03.97
Rel.01
Measurement on the C166 Family
I/O - "Scope Probes Connected to an Output Pin"
top8-bitCAN
AP161502.PDF
27K
03.97
Rel.01
Flash Protection on 88C166 Flash Devices
Siemens 88C166 16-bit microcontrollers provide 32 KBytes Flash memory on-chip, which can be protected against data operand acceses and program branches into the Flash from any location outside the Flash. This Application Note gives hints and examples how the Flash protection on 88C166 Flash devices can be enabled and how the protection can be temporary disabled (e.g. for program updates) by a program running inside the Flash. Run AP160612.EXE -d <-- option "-d" to create the right directory structure!

top8_bitCAN
AP165301.PDF
AP165301.EXE

76K
1.4 MB
07.98
Rel.01
PEC - "Lowering the own Interrupt Priority"
Very often it is needed to lower the interrupt priority while running a interrupt-service-routine (ISR),like after the last PEC-transfer.
top8-bitCAN
AP163602.PDF
66K
03.97
Rel.01
Port Intialization and Direction Control
discusses various aspects of the initialization of port pins as outputs; effects of single Bit and Bit field (BFLDL/H) instructions

top8-bitCAN
AP164601.PDF

108K
66K
02.98
Rel.01
Pre- and post-scale 32-Bit-Values for the MDU (Shifting/Rotating of Double-Words)
By using the MDU it is very often necessary to scale the value before or after the calculation to avoid truncation errors during the calculation.
top8-bitCAN
AP161702.PDF
34K
03.97
Rel.01
Reset and System Startup Configuration via PORT0
This application note presents an overview about different reset types and the behaviour concerning the system startup configuration via PORT0. The calculation for the Pull-up/down resistors at PORT0 is also included.

top8-bitCAN
AP163702.PDF

95K
06.98
Rel.02
Software emulation of the I2C-bus using the General Purpose Timer unit 1 of the C166 family
This is a software emulation of the I2C-bus by using two general purpose timers of a microcontroller from the C166 family. The I2C-bus is used in many applications mainly to communicate between devices connected to the bus.
top8-bitCAN
AP162401.PDF
AP162401.EXE
200K
22K
01.97
Rel.01
Software emulation of I2C-bus using CPU time of C166 family
This is a software emulation of I2C-bus using CPU time of the C166 family to generate the clock and data.
top8-bitCAN
AP162501.PDF
AP162501.EXE
203K
21K
02.97
Rel.01
Software emulation of the I2C-bus using the High-Speed Synchronous Serial Interface of C166 family
This is a software emulation of I2C-bus using High-Speed Synchronous Serial Interface of the C166 family to generate the clock and data.
top8-bitCAN
AP162601.PDF
AP162601.EXE
212K
21K
02.97
Rel.01
Software Modifications of Register WDTCON
The time period which is monitored by the Watchdog Timer is programmable via register WDTCON in two ways...
top8-bitCAN
AP161602.PDF
24K
12.96
Rel.01
Software module of M3L-bus by using USART for C16x microcontroller family
Software module of M3L-bus by using Asynchronous/Synchronous serial channel (USART) in synchronous mode for C16X microcontroller family. The M3L-bus is used mainly to communicate between the microcontroller and Television application IC like MegaText, and Compact Text.
top8-bitCAN
AP162301.PDF
AP162302.EXE
158K
01.97
Rel.01
Software module of M3L-bus by using HS-SSC for C16x microcontroller family
This is a software module of M3L-bus by using High-Speed Synchronous Serial Channel for C16X microcontroller family. The M3L-bus is used mainly to communicate between the microcontroller and Television application IC like MegaText, and Compact Text.
top8-bitCAN
AP162701.PDF
AP162701.EXE
167K
20K
01.97
Rel.01
Timing - Reading the AC Characteristics
Explains in detail the structure of the timing specification in the datasheets

top8-bitCAN
AP160402.PDF

121K
03.97
Rel.01
Using the SSC (SPI) Interface in a Multimaster System
In the SAB C165 and C167, an internal High-Speed Synchronous Serial Interface is implemented providing serial communication between C167 / C165 or other microcontrollers with a transfer rate up to 5 Mbaud. The demo software is a multimaster full-duplex system in which at a given time one microcontroller is configured as master while all others are in slave mode.
top8-bitCAN
AP163201.PDF
AP163201.EXE
471K
153K
06.96
Rel.01

CAN logo specific ApNotes

'C' CAN Driver Routines for the C166 Family
This application note describes CAN protocol driver software routines written in 'C' for the members of the Siemens 16-bit microcontroller family C166 which are equipped with an on-chip CAN module (e.g. C167CR, C164CI).
top 8-bit 16-bit
AP292201.PDF
AP292201.EXE
233K
44K
05.97
Rel.01
C167CR - CAN Bit Timing - Calculation: CP_167CR.EXE This document describes how to install and to use the "CP_167CR.EXE" tool. "CP_167CR.EXE" facilities the CAN Bit Timing Calculation for the C167 by automatically proposing register configurations to reach a given bus baudrate. Master/Slave Bus Arbitration top 8-bit 16-bit
AP164101.PDF
AP164101.EXE
12K
400K
01.98
Rel.0
C167CR - CAN Interrupt structure
Describes the functionality of the CAN interrupt structure and gives an implementation example of a standard CAN interrupt subroutine.

top8-bit16-bit
AP162101.PDF

60K
12.96
Rel.01
C515 - CAN Bit Timing - Calculation: CP_515C.EXE This document describes how to install and to use the "CP_515C.EXE" tool. "CP_515C.EXE" facilities the CAN Bit Timing Calculation for the C515 by automatically proposing register configurations to reach a given bus baudrate. Master/Slave Bus Arbitration top 8-bit 16-bit
AP082801.PDF
AP082801.EXE
12K
400K
01.98
Rel.0
The CAN Controller in the C515C
Describes the CAN functionality, the initialisation and the use of the CAN module - Examples concerning interrupt generation and error handling will be given.

top8-bit16-bit
AP082001.PDF
AP082001.EXE

445K
19K
12.96
Rel.01
Connecting C166 and C500 Microcontrollers to CAN
Application Note of the CAN Devices C167CR, C515C, SAE 81C90/91

top8-bit16-bit
AP290002.PDF

833K
06.97
Rel.01
Interrupt Register behavior of the CAN module in Siemens 16-bit Microcontrollers
Description of the update beahavior of the CAN INTID value after INTPND bit is reset

top8-bit16-bit
AP292401.PDF

40K
06.98
Rel.01
On-Board Communication via CAN without Transceiver
Describes communication between controller devices with CAN modules without CAN transceivers.

top8-bit16-bit
AP292101.PDF

20K
12.96
Rel.01
SAE 81C90/91 - CAN Bit Timing - Calculation: CP_81C90.EXE This document describes how to install and to use the "CP_81C90.EXE" tool. "CP_81C90.EXE" facilities the CAN Bit Timing Calculation for the SAE 81C90/91 by automatically proposing register configurations to reach a given bus baudrate. top 8-bit 16-bit
AP292301.PDF
AP292301.EXE
12K
400K
01.98
Rel.01


For any correspondence regarding Siemens products featured on this page, please contact us.

© Siemens AG 1999, D-80312 Munich