công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

PIC18F4539-E/MLSQTP bảng dữ liệu(PDF) 123 Page - Microchip Technology

tên linh kiện PIC18F4539-E/MLSQTP
Giải thích chi tiết về linh kiện  Enhanced FLASH Microcontrollers with Single Phase Induction Motor Control Kernel
PDF  322 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  MICROCHIP [Microchip Technology]
Trang chủ  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC18F4539-E/MLSQTP bảng dữ liệu(HTML) 123 Page - Microchip Technology

Back Button PIC18F4539-E/MLSQTP Datasheet HTML 119Page - Microchip Technology PIC18F4539-E/MLSQTP Datasheet HTML 120Page - Microchip Technology PIC18F4539-E/MLSQTP Datasheet HTML 121Page - Microchip Technology PIC18F4539-E/MLSQTP Datasheet HTML 122Page - Microchip Technology PIC18F4539-E/MLSQTP Datasheet HTML 123Page - Microchip Technology PIC18F4539-E/MLSQTP Datasheet HTML 124Page - Microchip Technology PIC18F4539-E/MLSQTP Datasheet HTML 125Page - Microchip Technology PIC18F4539-E/MLSQTP Datasheet HTML 126Page - Microchip Technology PIC18F4539-E/MLSQTP Datasheet HTML 127Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 123 / 322 page
background image
 2002 Microchip Technology Inc.
Preliminary
DS30485A-page 121
PIC18FXX39
14.4
Developing Applications Using
the Motor Control Kernel
The Motor Control kernel allows users to develop their
applications without having knowledge of motor con-
trol. The key parameters of the motor control kernel can
be set and read through the Application Program Inter-
face (API) methods discussed in the previous section.
The overall application can be thought of as a protocol
stack, as shown in Figure 14-3. In this case, the API
methods reside between the user’s application and the
ProMPT kernel, and are used to exchange parameter
values. The motor control kernel sets the PWM duty
cycles based on the inputs from the application
software.
A typical motor control routine is shown in
Example 14-1. In this case, the motor will run at 20 Hz
for 10 seconds, accelerate to 60 Hz at the rate of
10 Hz/s, remain at 60 Hz for 20 seconds, and finally
stop.
FIGURE 14-3:
LAYERS OF THE
MOTOR CONTROL
ARCHITECTURE STACK
EXAMPLE 14-1:
MOTOR CONTROL ROUTINE USING THE ProMPT APIs
ProMPT Motor
Hardware
Application Program
Interface (API)
Application Software
Parameters
Control Kernel
Methods
and User Interface
Void main()
{
unsigned char i;
unsigned char j;
ProMPT_Init(0);
// Initialize the ProMPT block
i = ProMPT_SetFrequency(10);
// Set motor frequency to 10Hz
for (i=0;i<161;i++)
// Set counter for 10 sec @ 1/16 sec per tick
{
j = ProMPT_Tick(void);
// Tick of 1/16 sec
ProMPT_ClearTick(void);
// Clearing the Tick flag
}
ProMPT_SetAccelRate(10);
// Set acceleration rate to 10 Hz/sec
i = ProMPT_SetFrequency(60);
// Set motor frequency to 60 Hz
for (i=0;i<161;i++)
// Set counter for 20 Sec @ 1/16 sec per tick
{
// (2 loops of 10 Sec each)
j = ProMPT_Tick(void);
// Tick of 1/16 Sec
ProMPT_ClearTick(void);
// Clearing the Tick flag
j = ProMPT_Tick(void);
// Tick of 1/16 Sec
ProMPT_ClearTick(void);
// Clearing the Tick flag
}
i = ProMPT_SetFrequency(0);
// Set motor frequency to 0 Hz (stop)
while(1);
}
// End of the task



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com