-
1. 下列說法正確的是 ( )
A. Java語言不區(qū)分大小寫
B. Java程序以類為基本單位
C. JVM為Java虛擬機JVM的英文縮寫
D. 運行Java程序需要先安裝JDK
2. 下列說法中錯誤的是 ( )
A. Java語言是編譯執(zhí)行的
B. Java中使用了多進程技術(shù)
C. Java的單行注視以//開頭
D. Java語言具有很高的安全性
3. 下面不屬于Java語言特點的一項是( )
A. 安全性
B. 分布式
C. 移植性
D. 編譯執(zhí)行
4. 下列語句中,正確的項是 ( )
A . int $e,a,b=10
B. char c,d=’a’
C. float e=0.0d
D. double c=0.0f
標簽:
Java
A.
B.
C.
上傳時間:
2017-01-04
上傳用戶:netwolf
-
比例-積分-微分(PID)是過程控制中最常用的一種控制算法。算法簡單而且容易理解,應(yīng)用十分廣泛。但由于應(yīng)用領(lǐng)域的不同,功能上差別很大,系統(tǒng)的控制要求及關(guān)心的控制對象也不相同。數(shù)字PID控制比連續(xù)PID控制更為優(yōu)越,因為計算機程序的靈活性,很容易克服連續(xù)PID控制中存在的問題,經(jīng)修正而得到更完善的數(shù)字PID算法。本文以三相全控整流橋阻性負載為實際電路,控制主電路電壓,旨在提出一種智能數(shù)字PID控制系統(tǒng)的設(shè)計思路,并給出了詳細的硬件設(shè)計及初步軟件設(shè)計思路。 PID控制系統(tǒng)采用高性能、低功耗的ARM微處理器S3C44BO作為核心處理單元,內(nèi)部的10位ADC作為信號采集模塊,采用了矩陣鍵盤和640*480的液晶作為人機接口;串口作為通信模塊實現(xiàn)了上位機的監(jiān)控。采用芯片內(nèi)部自帶的PWM模塊,輸出16M Hz PWM信號并經(jīng)過一階低通濾波器得到0~5V的控制信號用于觸發(fā)主電路控制器,實現(xiàn)PID整定。 軟件方面,分析和研究了uC/OSⅡ的內(nèi)核源碼,實現(xiàn)了其在32位微處理器上的移植,作為管理各個子程序執(zhí)行的系統(tǒng)軟件。選用了圖形處理軟件uC/GUI用于完成LCD顯示及控制。PID算法采用了增量式數(shù)字PID算法,采用規(guī)一化算法進行參數(shù)選取。上位機部分采用了C#語言進行編寫。另外,采用了RTC(Real Time Clock)作為系統(tǒng)時鐘,可以實現(xiàn)系統(tǒng)的定時運行、定時模式切換等。在上位機上也可以方便的控制程序的執(zhí)行,實現(xiàn)遠程監(jiān)控。 在論文的最后詳細的介紹了智能PID控制系統(tǒng)在三相全控橋主電路中的具體應(yīng)用。總結(jié)了調(diào)試中遇到的問題,對今后工作中需要進一步改善和探索的地方進行了展望。
標簽:
ARM
PID
控制系統(tǒng)
上傳時間:
2013-08-01
上傳用戶:lvzhr
-
TLC2543是TI公司的12位串行模數(shù)轉(zhuǎn)換器,使用開關(guān)電容逐次逼近技術(shù)完成A/D轉(zhuǎn)換過程。由于是串行輸入結(jié)構(gòu),能夠節(jié)省51系列單片機I/O資源;且價格適中,分辨率較高,因此在儀器儀表中有較為廣泛的應(yīng)用。
TLC2543的特點
(1)12位分辯率A/D轉(zhuǎn)換器;
(2)在工作溫度范圍內(nèi)10μs轉(zhuǎn)換時間;
(3)11個模擬輸入通道;
(4)3路內(nèi)置自測試方式;
(5)采樣率為66kbps;
(6)線性誤差±1LSBmax;
(7)有轉(zhuǎn)換結(jié)束輸出EOC;
(8)具有單、雙極性輸出;
(9)可編程的MSB或LSB前導(dǎo);
(10)可編程輸出數(shù)據(jù)長度。
TLC2543的引腳排列及說明
TLC2543有兩種封裝形式:DB、DW或N封裝以及FN封裝,這兩種封裝的引腳排列如圖1,引腳說明見表1
TLC2543電路圖和程序欣賞
#include<reg52.h>
#include<intrins.h>
#define uchar unsigned char
#define uint unsigned int
sbit clock=P1^0; sbit d_in=P1^1;
sbit d_out=P1^2;
sbit _cs=P1^3;
uchar a1,b1,c1,d1;
float sum,sum1;
double sum_final1;
double sum_final;
uchar duan[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};
uchar wei[]={0xf7,0xfb,0xfd,0xfe};
void delay(unsigned char b) //50us
{
unsigned char a;
for(;b>0;b--)
for(a=22;a>0;a--);
}
void display(uchar a,uchar b,uchar c,uchar d)
{
P0=duan[a]|0x80;
P2=wei[0];
delay(5);
P2=0xff;
P0=duan[b];
P2=wei[1];
delay(5);
P2=0xff;
P0=duan[c];
P2=wei[2];
delay(5);
P2=0xff;
P0=duan[d];
P2=wei[3];
delay(5);
P2=0xff;
}
uint read(uchar port)
{
uchar i,al=0,ah=0;
unsigned long ad;
clock=0;
_cs=0;
port<<=4;
for(i=0;i<4;i++)
{
d_in=port&0x80;
clock=1;
clock=0;
port<<=1;
}
d_in=0;
for(i=0;i<8;i++)
{
clock=1;
clock=0;
}
_cs=1;
delay(5);
_cs=0;
for(i=0;i<4;i++)
{
clock=1;
ah<<=1;
if(d_out)ah|=0x01;
clock=0;
}
for(i=0;i<8;i++)
{
clock=1;
al<<=1;
if(d_out) al|=0x01;
clock=0;
}
_cs=1;
ad=(uint)ah;
ad<<=8;
ad|=al;
return(ad);
}
void main()
{
uchar j;
sum=0;sum1=0;
sum_final=0;
sum_final1=0;
while(1)
{
for(j=0;j<128;j++)
{
sum1+=read(1);
display(a1,b1,c1,d1);
}
sum=sum1/128;
sum1=0;
sum_final1=(sum/4095)*5;
sum_final=sum_final1*1000;
a1=(int)sum_final/1000;
b1=(int)sum_final%1000/100;
c1=(int)sum_final%1000%100/10;
d1=(int)sum_final%10;
display(a1,b1,c1,d1);
}
}
標簽:
2543
TLC
上傳時間:
2013-11-19
上傳用戶:shen1230
-
HIGH SPEED 8051 μC CORE
- Pipe-lined Instruction Architecture; Executes 70% of Instructions in 1 or 2
System Clocks
- Up to 25MIPS Throughput with 25MHz System Clock
- 22 Vectored Interrupt Sources
MEMORY
- 4352 Bytes Internal Data RAM (256 + 4k)
- 64k Bytes In-System Programmable FLASH Program Memory
- External Parallel Data Memory Interface – up to 5Mbytes/sec
DIGITAL PERIPHERALS
- 64 Port I/O; All are 5V tolerant
- Hardware SMBusTM (I2CTM Compatible), SPITM, and Two UART Serial
Ports Available Concurrently
- Programmable 16-bit Counter/Timer Array with 5 Capture/Compare
Modules
- 5 General Purpose 16-bit Counter/Timers
- Dedicated Watch-Dog Timer; Bi-directional Reset
CLOCK SOURCES
- Internal Programmable Oscillator: 2-to-16MHz
- External Oscillator: Crystal, RC, C, or Clock
- Real-Time Clock Mode using Timer 3 or PCA
SUPPLY VOLTAGE ........................ 2.7V to 3.6V
- Typical Operating Current: 10mA @ 25MHz
- Multiple Power Saving Sleep and Shutdown Modes
100-Pin TQFP (64-Pin Version Available)
Temperature Range: –40°C to +85°C
標簽:
C8051F020
上傳時間:
2013-10-12
上傳用戶:lalalal
-
目錄:
1. Character Type Functions - 字符類型函數(shù)
2. Standard C Input/Output Functions - 標準輸入輸出函數(shù)
3. Standard Library Functions - 標準庫和內(nèi)存分配函數(shù)
4. Mathematical Functions - 數(shù)學(xué)函數(shù)
5. String Functions - 字符串函數(shù)
6. BCD Conversion Functions - BCD 轉(zhuǎn)換函數(shù)
7. Memory Access Functions - 存儲器訪問函數(shù)
8. Delay Functions - 延時函數(shù)
9. LCD Functions - LCD函數(shù)
10. LCD Functions for displays with 4x40 characters - 4×40 字符型LCD函數(shù)
11. LCD Functions for displays connected in 8 bit memory mapped mode -以8 位外部存儲
器模式接口的LCD顯示函數(shù)
12. I2C Bus Functions - I2C 總線函數(shù)
13. National Semiconductor LM75 Temperature Sensor Functions - LM75 溫度傳感器函數(shù)
14. Dallas Semiconductor DS1621 Thermometer/Thermostat Functions - DS1621 溫度計函
數(shù)
15. Philips PCF8563 Real Time Clock Functions - PCF8563 實時時鐘函數(shù)
16. Philips PCF8583 Real Time Clock Functions - PCF8583 實時時鐘函數(shù)
17. Dallas Semiconductor DS1302 Real Time Clock Functions - DS1302 實時時鐘函數(shù)
18. Dallas Semiconductor DS1307 Real Time Clock Functions - DS1307 實時時鐘函數(shù)
19. 1 Wire Protocol Functions - 單線通訊協(xié)議函數(shù)
20. Dallas Semiconductor DS1820/DS1822 Temperature Sensors Functions - DS1820/1822
溫度傳感器函數(shù)
21. SPI Functions - SPI 函數(shù)
22. Power Management Functions - 電源管理函數(shù)
23. Gray Code Conversion Functions - 格雷碼轉(zhuǎn)換函數(shù)
標簽:
AVR
庫函數(shù)
上傳時間:
2013-10-22
上傳用戶:歸海惜雪
-
實時時鐘是微機保護裝置的重要部件,在討論PCF8583結(jié)構(gòu)與功能的基礎(chǔ)上,提出采用dsPIC33F系列微處理器與串行I2C時鐘PCF8583的接口設(shè)計方案,給出了相應(yīng)的接口電路與軟件流程。該設(shè)計方案結(jié)構(gòu)簡單,可靠性高,開發(fā)周期短,具有一定的實用與參考價值。所設(shè)計的微機保護裝置已投入現(xiàn)場運行,效果良好。
Abstract:
Real-time clock chip is an important part in microcomputer protection device.Based on discussing the structure and function of PCF8583,a new interface scheme which uses dsPIC33F microprocessor and serial clock chip(I2C)PCF8583is proposed.The method of the circuit design and the main software flow are introduced in this paper.The scheme has simple structure,higher reliability and shorter exploitation cycle,so has definite practicality or reference value.The microcomputer protection device has been put into operation with better effects.
標簽:
8583
PCF
串行時鐘
中的應(yīng)用
上傳時間:
2013-11-18
上傳用戶:Thuan
-
NXP Semiconductor designed the LPC2400 microcontrollers around a 16-bit/32-bitARM7TDMI-S CPU core with real-time debug interfaces that include both JTAG andembedded Trace. The LPC2400 microcontrollers have 512 kB of on-chip high-speedFlash memory. This Flash memory includes a special 128-bit wide memory interface andaccelerator architecture that enables the CPU to execute sequential instructions fromFlash memory at the maximum 72 MHz system clock rate. This feature is available onlyon the LPC2000 ARM Microcontroller family of products. The LPC2400 can execute both32-bit ARM and 16-bit Thumb instructions. Support for the two Instruction Sets meansEngineers can choose to optimize their application for either performance or code size atthe sub-routine level. When the core executes instructions in Thumb state it can reducecode size by more than 30 % with only a small loss in performance while executinginstructions in ARM state maximizes core performance.
標簽:
2478
lpc
使用手冊
上傳時間:
2013-11-15
上傳用戶:zouxinwang
-
The LPC2292/2294 microcontrollers are based on a 16/32-bit ARM7TDMI-S CPU with real-time emulation and embedded trace support, together with 256 kB of embedded high-speed flash memory. A 128-bit wide memory interface and a unique accelerator architecture enable 32-bit code execution at the maximum clock rate. For critical code size applications, the alternative 16-bit Thumb mode reduces code by more than 30 pct with minimal performance penalty.
With their 144-pin package, low power consumption, various 32-bit timers, 8-channel 10-bit ADC, 2/4 (LPC2294) advanced CAN channels, PWM channels and up to nine external interrupt pins these microcontrollers are particularly suitable for automotive and industrial control applications as well as medical systems and fault-tolerant maintenance buses. The number of available fast GPIOs ranges from 76 (with external memory) through 112 (single-chip). With a wide range of additional serial communications interfaces, they are also suited for communication gateways and protocol converters as well as many other general-purpose applications.
Remark: Throughout the data sheet, the term LPC2292/2294 will apply to devices with and without the /00 or /01 suffix. The suffixes /00 and /01 will be used to differentiate from other devices only when necessary.
標簽:
lpc
datasheet
2292
2294
上傳時間:
2014-12-30
上傳用戶:aysyzxzm
-
The NXP LPC315x combine an 180 MHz ARM926EJ-S CPU core, High-speed USB 2.0OTG, 192 KB SRAM, NAND flash controller, flexible external bus interface, an integratedaudio codec, Li-ion charger, Real-Time Clock (RTC), and a myriad of serial and parallelinterfaces in a single chip targeted at consumer, industrial, medical, and communicationmarkets. To optimize system power consumption, the LPC315x have multiple powerdomains and a very flexible Clock Generation Unit (CGU) that provides dynamic clockgating and scaling.The LPC315x is implemented as multi-chip module with two side-by-side dies, one fordigital fuctions and one for analog functions, which include a Power Supply Unit (PSU),audio codec, RTC, and Li-ion battery charger.
標簽:
315x
LPC
315
ARM
上傳時間:
2014-01-17
上傳用戶:Altman
-
Abstract: This application note explains how to design an intelligent lighting controller that senses and measures the ambient lightlevel with an ambient light sensor (ALS). Equipped with a real-time clock (RTC), the controller also knows when to turn lighting on oroff at specified times. The system presented in this document can be used to control all luminaires that are mains-supply operated.Controller software is also provided in hex format.
標簽:
智能照明控制器
測量
環(huán)境光線
上傳時間:
2013-11-18
上傳用戶:AbuGe