Welcome to the Industrial Automation website!

NameDescriptionContent
XING-Automation
E-mail  
Password  
  
Forgot password?
  Register
当前位置:

SIEMENS C500 microcontroller architecture and instruction set

F: | Au:FAN | DA:2026-04-29 | 867 Br: | 🔊 点击朗读正文 ❚❚ ▶ | Share:

Condition 1 (Priority Blocking): Currently processing an interrupt of the same or higher priority.

Condition 2 (instruction completion blocking): The current instruction has not yet been executed to the last machine cycle. This ensures that the current instruction can be fully executed.

Condition 3 (Critical Instruction Blocking): The currently executing instruction is RETI (Interrupt Return), or an instruction that writes to the Interrupt Allow Register (IE) or Interrupt Priority Register (IP). The blocking will continue until the instruction is executed and another instruction is executed. This mechanism ensures that modifications to the interrupt system can take effect stably.

3. Precise calculation of interrupt response time

The interrupt response time is defined as the time interval between the time when the external interrupt request signal takes effect (the request flag is set) and the time when the first instruction of the interrupt service program starts executing.

According to the timing analysis in the manual, an interrupt requires at least 3 complete machine cycles from being detected to completing hardware LCALL (1 cycle for detecting flags and 2 cycles for executing LCALL). In the worst-case scenario, if the interrupt request encounters a blocking condition, the response time will be extended:

If blocked by condition 2 (instruction not completed), the maximum waiting time shall not exceed 3 cycles. Because the longest instruction (MUL or DIV) only requires 4 cycles, and interrupt detection occurs in the last cycle of each instruction.

If blocked by condition 3 (RETI or write IE/IP), the maximum waiting time should not exceed 5 cycles (1 cycle to complete the current RETI/write operation, plus up to 4 cycles to complete the immediately following instruction - if that instruction happens to be MUL or DIV).

Therefore, for a single interrupt system, the interrupt response time of C500 is always between 3 and 9 machine cycles. For a 12MHz crystal oscillator system (one machine cycle=1 µ s), this corresponds to a delay of 3 µ s to 9 µ s, providing highly predictable performance for hard real-time applications.

External Memory Access Timing and Bus Design

C500 accesses external program memory and data memory through standard bus interfaces, and understanding its timing is crucial for hardware design.

1. Address/data reuse

When accessing external memory, the P0 port assumes the time division multiplexing function for the low 8-bit address and 8-bit data, while the P2 port outputs the high 8-bit address (for MOVX @ DPTR or external fetch) or maintains its SFR content (for MOVX @ Ri). External address latches (such as 74HC373) use the falling edge of the ALE (Address Latch Enable) signal to latch the lower 8 bits of the address on port P0. Afterwards, the P0 port is switched to the data bus.

2. Two access modes

16 bit address access (MOVX @ DPTR): P2 port continuously outputs the content of DPH (high 8-bit address) throughout the entire access cycle. P0 port outputs DPL when ALE is valid, and then switches to data signal. This mode can access a complete address space of 64 KB.

8-bit address access (MOVX @ Ri): The P2 port maintains its existing SFR value throughout the entire cycle and does not automatically output the higher 8 bits of the address. The CPU uses the P0 port to output the content of Ri (8-bit address) and multiplex it with the data. This method is commonly used for "paging" expansion, where the P2 port is pre-set as a page address by software to enable external RAM access exceeding 256 bytes.

Important hardware precautions: During external memory access, the CPU will write FF H to the P0 port latch (SFR). Therefore, during external memory access, the software must not execute the MOV P0 instruction to modify the P0 port, otherwise it will damage the current bus cycle data. In addition, for the ROM free version (EA grounded), the entire 64 KB program space is external, and the P2 port will be fully occupied as an address line, which cannot be used for general-purpose I/O.


Instruction set: Functional classification and optimization of 111 instructions

The instruction set of C500 is fully compatible with the standard 8051, with a total of 111 instructions, including 49 single byte instructions (44%), 45 double byte instructions (41%), and 17 three byte instructions (15%). Efficient instruction encoding means that C500 can achieve higher code density at the same clock frequency.

Overview of Addressing Modes

C500 supports 5 addressing modes, each corresponding to a specific memory space, as shown in Table 2.

Table 2 Addressing Modes and Corresponding Memory Spaces

Memory space accessed in addressing mode

Address the R0-R7, ACC, B, CY bits of the currently selected register group DPTR

Directly addressing the low 128 bytes of internal RAM SFR

Immediate addressing of program memory (constant)

Register indirect addressing internal RAM (@ R0/@ R1/SP), external data storage (@ R0/@ R1/@ DPTR)

Base address register plus index addressing program memory (@ A+DPTR, @ A+PC), used for lookup tables

2. PSW impact of arithmetic operation instructions

  • BONFIGLIOLI W63 U P80 B5 Gearbox 2G20012741
  • Bonfiglioli BE80B4 Motor with A202 Gearbox
  • BONFIGLIOLI VECTRON KEYPAD 179675500 KP500
  • Bonfiglioli RA0 60/00 Gear Reducer i182
  • Bonfiglioli C212 F P90 VV Gearbox i=9.6
  • Bonfiglioli MP105 Servomotor Gear
  • Mannesmann Demag 4APB71-4-G08-PR Getriebemotor with Bonfiglioli MVF 63/f
  • Bonfiglioli Vectron ACT401-12 FA Inverter
  • Bonfiglioli BN 80A4 COD.830820106 Motor 0.55 kW IMB5
  • Bonfiglioli TR060 Gearbox
  • Silectron Bonfiglioli FT1000-0.75S RFI Filter
  • Trasmital Bonfiglioli 710C3B50F177G34W1A52VAG Drive
  • Bonfiglioli MAC800-D1 Motorreductor
  • Bonfiglioli VF 63 V HS Worm Gearbox
  • Bonfiglioli BN90LA4 Adjustable Gear Motor 1.5kW
  • Bonfiglioli ACT 400-018 FA Frequency Inverter
  • Bonfiglioli RAO50DNP90B5-I220 Gear Unit i=200
  • Bonfiglioli ACT 401-13FA Frequency Inverter SIACT513010001
  • Bonfiglioli ACU210-18 3 FA Active Inverter 4kW
  • Trasmital Bonfiglioli 709C3B50F177G34W1A52VAG Drive
  • Bonfiglioli BN27C4 Gear Motor 0.09 kW
  • Bonfiglioli BN71A4 Electric Motor
  • Bonfiglioli Vectron VCB400-370 Inverter
  • Bonfiglioli Vectron ACU401-18FA Inverter
  • Bonfiglioli LC120 2 40 STD Gearbox
  • Bonfiglioli BN63B6 Gear Motor 0.12 kW
  • Bonfiglioli T56BN/4 Asynchronous Motor
  • AEB Atlant D712-4B5 Motor with Bonfiglioli MVF 49F1 Gearbox
  • Bonfiglioli VF110 A P100B14 Worm Gear
  • Trasmital Bonfiglioli Raupengetriebe i 1:122 2174688 2T705C3122002 Travel Drive
  • Bonfiglioli ACT 401-21A Frequency Inverter
  • Bonfiglioli VF44 U14 Worm Reducer B03181367918
  • Bonfiglioli VF49 L1 P1 P63B5 Worm Gear i=45
  • Bonfiglioli S2U230S-03F Inverter 0.4kW
  • Ferag 5690512 Uiker TR90L4 Motorreductor with Bonfiglioli C212 F9.6
  • Bonfiglioli LC120250STD80A1CD14KE Gearbox
  • Bonfiglioli W63U38 P80 B14 V5 Gearbox
  • Bonfiglioli VF49A-28-P80-B14 Worm Gearbox
  • Bonfiglioli BN71B4 W63U64P75 Gearmotor
  • Alpha VDS 063-MF1-10-141-BE Planetary Gearbox
  • Bonfiglioli BN71B4 MVF49 F1 Gearmotor i=36
  • Bonfiglioli BN 63 B6 Gear Motor 0.12kW
  • Bonfiglioli SPL400 17F SynPlus Drive 3.7kW
  • Bonfiglioli ACU 401-25A Frequency Inverter
  • Esa 3M2209B5 M71Q Motor with Bonfiglioli MVF49 Gearbox
  • Ferag 5690512 UIKER TR90L4 Gear Motor with Bonfiglioli C212
  • Bonfiglioli A302 UH35 P90 Bevel Gearbox
  • Bonfiglioli GVX1000-1.5-S Inverter Drive 1.5kW
  • Bonfiglioli W63 U 15.0 P80 B14 B Worm Drive
  • Bonfiglioli KP500 Control Panel
  • Bonfiglioli C302PP71 Speed Reducer
  • Bonfiglioli BN71B4 Motor con MVF49 Reductor
  • Bonfiglioli BN71B4 Motor with MVF49 Gearbox i36
  • Bonfiglioli SYN10S 22001AF Inverter 0.2 kW
  • Motor Power Esa 3M2209B5/M71Q with Tachometer and Bonfiglioli MVF49 Gearbox
  • Bonfiglioli SYN10 S 220 01 AF Inverter
  • MEZ UD 1104 2.5 kW BONFIGLIOLI Trasmittal 300L19 Gear Motor 300L19.00HZP90AW0A
  • Bonfiglioli Vectron ACT W 401-39 D Inverter
  • Bonfiglioli BN27C4 Gear Motor 0.09 kW
  • Bonfiglioli A302 UH40 P90 Gear Reducer
  • Bonfiglioli ACT410-193FA Frequency Inverter 5.5kW
  • Bonfiglioli VFR49 P1 240 P63 B5 B3 Gearbox
  • Bonfiglioli BN 63A 6 Motor with VF30 Combination
  • Bonfiglioli VF44 FA1 P63B14 Reducer i=60
  • Bonfiglioli BN 80 B6 FD Electric Motor
  • Bonfiglioli MVF 49F1 Reducer with ICME T 71 B4 Motor
  • Bonfiglioli BN 27 C 4 Gearmotor 0.09kW
  • Bonfiglioli MP 080 Servomotor MPC2012S000F
  • Bonfiglioli S101 1 P P71 Gear Reducer i=4.7
  • Bonfiglioli 301L251.8-HC-P90 Gearbox
  • Bonfiglioli RFI Filter F1060800-SEFL-E9S
  • GE Aviation 9410M37P01 Motor Drive Core
  • Bonfiglioli VF44 FA1 P63B14 Gearbox 60 to 1
  • Bonfiglioli K63A4 Motor 8D09020032
  • Demag 4APB71-4-G08-PR Gear Motor 0.37 kW
  • Bonfiglioli BN90LA4 Gear Motor 1.5 kW
  • Bonfiglioli VF49A-28-P80-B14 Gearbox
  • Bonfiglioli MP053 Planetary Gearbox MPA2028S000D
  • Bonfiglioli C312 P P100 Gearbox
  • Bonfiglioli S1011PP71 Gearbox 4.7 to 1
  • Bonfiglioli VF 44 V 7 P63 B5 B3 with V 0.25 F D11
  • Bonfiglioli DW3000210 AX160 Motor Gearbox
  • Bonfiglioli ACT 401-13 FC Frequency Inverter 2.2kW
  • Bonfiglioli C222 P 7.1 P90 B3 Gearbox
  • Bonfiglioli BN90S4 Motor with C212 Gearbox
  • Bonfiglioli MP130.2.9.15.24.50.130.165.S1 Gearbox
  • Bonfiglioli VF110 V HS Worm Gearbox
  • Bonfiglioli BN7IA4 Electric Motor
  • Bonfiglioli ACU 401-23A Frequency Converter
  • Bonfiglioli BN63B4 Gearmotor
  • Bonfiglioli LC12210S490002 Gear Reducer
  • Bonfiglioli BN63A4 Geared Motor with VF49
  • Bonfiglioli WR86U120P80B5B3 Gear Reducer
  • Bonfiglioli MPB1006S000C Planetary Gearbox
  • Bonfiglioli GC000011 Frequency Inverter
  • Bonfiglioli VF44 FA1 P63B14 Gearbox 60 to 1
  • Bonfiglioli BN63B6 Gear Motor 0.12 kW
  • Trasmital Bonfiglioli 301 L2 Gear Reducer
  • Bonfiglioli BN71B4 Motor with MVF49 Gearbox
  • Bonfiglioli MVF62/A Worm Gear Motor 7 to 1
  • Bonfiglioli VF W30 63UFC2 Gear Reducer
  • Bonfiglioli S1011PP71 Gearbox 4.7 to 1
  • Bonfiglioli W63 U7 P90B14 V6 Gear Reducer
  • Bonfiglioli BN63B6 FD Geared Motor with VFR49F1P63B5 Reducer
  • Bonfiglioli T56BN/4 Three Phase Motor
  • Bonfiglioli MVF62/A Worm Gearbox 7 to 1
  • Bonfiglioli VF44 FA1 P63B14 Gearbox 60 to 1
  • ICME T71B4 Motor with Bonfiglioli MVF49F1
  • Bonfiglioli BN71B4 Motor with MVF49 Gearbox
  • Bonfiglioli C31 3P P63 PV V5 Gear Reducer
  • Bonfiglioli BN80B4 Electric Motor 8F31020004
  • Bonfiglioli VF/W30/63UFC2 Gear Reducer i=168
  • Bonfiglioli MPD1006S0006 In-Line Planetary Gearbox
  • Bonfiglioli LC 120 2 40 STD 80A1 CD Gearbox
  • Bonfiglioli Vectron ZBA400-010FC Brake Unit
  • Bonfiglioli VF44 U14 Worm Gearbox B03181367918
  • Bonfiglioli 8XNC63040004 Electric Motor IP55
  • Bonfiglioli W110U P100B5 Worm Gearbox
  • Bonfiglioli VF63/FC1 P80 Gearbox 203160152 i=15
  • Bonfiglioli VMN JB00017191 Gear Unit
  • Bonfiglioli AGL202-031FC Inverter 0.37 kW
  • Bonfiglioli BN71B2 Geared Motor with VF44
  • Bonfiglioli S1011PP71 Gearbox 4.7:1
  • Bonfiglioli VF W30 63UFC2 Gear Reducer
  • Bonfiglioli VF44FA146HSB3 Gear Reducer
  • Bonfiglioli MP105 Planetary Gearbox 18:1
  • Bonfiglioli VF49 L1 P1 P63B5 Worm Gearbox
  • Bonfiglioli 55aN-4 Electric Motor