05-03-2012, 04:58 PM
Embedded 8051 Application Development for IRMCF/K300 Series Motor Control IC
an-1110.pdf (Size: 274.39 KB / Downloads: 28)
INTRODUCTION
The 8051 microprocessor, included in the IRMCF/K300 series of motion control
ICs, can be used to implement a large variety of control and protection functions
for motor control applications. The instruction set and basic operation of the
IRMCF/K300 Series 8051 microprocessor is consistent with the standard Intel
8051 processor. A number of peripheral devices and special functions have been
added to customize the operation for motor control applications.
The IRMCF/K300 series ICs contain two processors: an 8051 processor and the
Motion Control Engine (MCE). The 8051 and MCE interact through a shared
RAM, accessible by both processors. The MCE is designed specifically to
implement motor control loops, process feedback signals, and calculate PWM
switching signals. The 8051 mediates between external control signals (such as
the front panel of a washing machine) and the MCE, which ultimately produces
the signals that operate the motor.
Purpose
The purpose of this application note is to describe the implementation of 8051
microprocessor control for use in the IRMCF300 and IRMCK300 series of motion
control ICs. This document covers required initializations, settings and functions
for 8051 control of the IC. Some examples and sample code are presented.
This application note assumes that the user has experience with embedding
software programming.
The sample code and examples given here are intended to allow the designer to
create a control interface to replace MCEDesigner once the application
development has been completed. One of the main tasks is to recreate
MCEDesigner functions in the 8051 code. After code development and testing
with the IRMCF version of the IC, the embedded 8051 code is intended to be
written to the ROM of the IRMCK300 series ICs.
GETTING STARTED GUIDE
This section explains how to get started with 8051 application software
development using the FS2 debug pod, Keil uVision tools, and the IRMCF300
Series IC. Though this guide applies to a general hardware configuration, often
the IRMCS3041 Reference Design Board is referenced as a specific case.
Warning!
When connecting the FS2 debug pod to the circuit board, the FS2
hardware can be damaged by the high voltage on the board if
appropriate isolation is not used. The problem arises because the
DC bus minus (GND) is not at the same potential as earth (or
wall) ground. For this reason, if proper isolation is not used, it is recommended
that the board be powered by a DC power supply with isolated ground when
using the FS2 hardware.
Hardware and Software Start-up
To properly start up the board and software, follow these steps:
1. Apply power to the controller board, and then turn on the FS2 pod.
2. Start Keil uVision2. Choose Project