參數資料
型號: DRM014
英文描述: USB and PS/2 Multimedia Keyboard Interface Reference DesignDesigner Reference Manual
中文描述: USB和PS / 2多媒體鍵盤接口參考DesignDesigner參考手冊
文件頁數: 41/72頁
文件大?。?/td> 1177K
代理商: DRM014
Reference Design Code
Vacuum Cleaner Reference Design Code
DRM010 — Rev 0
Designer Reference Manual
MOTOROLA
Reference Design Code
For More Information On This Product,
Go to: www.freescale.com
41
unsigned char controlLoop(void)
{
unsigned char x;
x = readPot();
x = scale (x);
x = integrate(x);
x = saturate(x);
return x;
}
/******************************************************************************
function : scale()
parameters : unsigned char x - input from the A/D
returns : unsigned char x - scaled output
type : normal re-entrant
Description:
The scale function will scale the A/D measurement (0-255) to
degrees (0-180). The number is first multiplied by 180, then
divided by 255. The mul() and div() functions are optimized for
HC08 8-bit math.
*******************************************************************************/
unsigned char scale(unsigned char x)
{
unsigned int y;
y = mul(180,x);
x = div(y,255);
return x;
}
/******************************************************************************
function : integrate()
parameters : unsigned char x - input
returns : unsigned char x - output
type : normal re-entrant
Description:
F
Freescale Semiconductor, Inc.
n
.
相關PDF資料
PDF描述
DRM015 USB Hub Keyboard for the MC68HC08KH12 Designer Reference Manual
DRM018 3-Phase PM Synchronous Motor Torque Vector Control Using 56F805
DRM019 3-Phase AC Induction Motor Drive with Dead Time Distortion Correction Using the MC68HC908MR32
DRM020 3-Phase AC Induction Motor Drive with Tachogenerator Using MC68HD908MR32
DRM021 3-Phase ACIM Volt per Hertz Control Using 56F80x
相關代理商/技術參數
參數描述
DRM10 功能描述:DIP 開關/ SIP 開關 BCD 10 POS RoHS:否 制造商:Omron Electronics 位置數量:10 開關類型:DIP 執(zhí)行器:Rotary 端子節(jié)距:2.54 mm 觸點形式: 端接類型:Solder Pin 電流額定值:100 mA 電壓額定值 DC: 工作溫度范圍: 安裝:Through Hole
DRM1004 功能描述:DIP 開關/ SIP 開關 ROTARY DIP SWITCH PLASTICSHAFT RoHS:否 制造商:Omron Electronics 位置數量:10 開關類型:DIP 執(zhí)行器:Rotary 端子節(jié)距:2.54 mm 觸點形式: 端接類型:Solder Pin 電流額定值:100 mA 電壓額定值 DC: 工作溫度范圍: 安裝:Through Hole
DRM101 制造商:FREESCALE 制造商全稱:Freescale Semiconductor, Inc 功能描述:Blood Pressure Monitor Using the Flexis QE128 Family
DRM10C 功能描述:SWITCH DIP MINI SHAFT 10POS T/H RoHS:否 類別:開關 >> DIP 系列:DR 特色產品:RDM Series Rotary DIP Switch 標準包裝:70 系列:RDM 電路:十六進制 位置數:16 觸點額定電壓:0.1A @ 42VDC 觸動器類型:用于工具旋轉 觸動器電平:凹槽式 安裝類型:通孔 方向:頂部觸動 可清洗:是 其它名稱:EG4977-5RDMAR16PIT
DRM10C04 功能描述:編碼式波段開關 SW DIP MINI SHAFT 10POS T/H RoHS:否 制造商:C&K Components 位置數量:10 輸出代碼:Binary Coded Decimal 執(zhí)行器:Screwdriver 觸點額定值: 端接類型:Solder Pin 封裝:Tube