5位的操作數(shù)X和Y輸入后暫存在寄存器A和B中,兩位的操作控制碼control暫存在寄存器C中,按照control碼的不同,分布實(shí)現(xiàn)下列操作:
00控制X+Y
01控制X-Y
10控制X and Y
11控制 X xor Y
運(yùn)算結(jié)果暫存在寄存器D中,然后輸出。
5位的操作數(shù)X和Y輸入后暫存在寄存器A和B中,兩位的操作控制碼control暫存在寄存器C中,按照control碼的不同,分布實(shí)現(xiàn)下列操作:
00控制X+Y
01控制X-Y
10控制X and Y
11控制 X xor Y
運(yùn)算結(jié)果暫存在寄存器D中,然后輸出。
basic.c */
/**//* Project:NeuroBasic, basic package*//**/
/* Survey:This is a simple Basic b-code compiler which*/
/*can be used as a comfortable command shell for */
/* any program. The actual compiler is found in */
/*compiler.c.*/
/*The functions m_fctptr() and user_server()*/
/*build an interface to an
給定兩個(gè)集合A、B,集合內(nèi)的任一元素x滿足1 ≤ x ≤ 109,并且每個(gè)集合的元素個(gè)數(shù)不大于105。我們希望求出A、B之間的關(guān)系。
任 務(wù) :給定兩個(gè)集合的描述,判斷它們滿足下列關(guān)系的哪一種:
A是B的一個(gè)真子集,輸出“A is a proper subset of B”
B是A的一個(gè)真子集,輸出“B is a proper subset of A”
A和B是同一個(gè)集合,輸出“A equals B”
A和B的交集為空,輸出“A and B are disjoint”
上述情況都不是,輸出“I m confused!”
隨著光伏發(fā)電系統(tǒng)快速發(fā)展,以及電動(dòng)汽車充電樁的普及,傳統(tǒng)的剩余電流保護(hù)器無法滿足實(shí)際需求。介紹了一款B型剩余電流保護(hù)器,采用磁調(diào)制剩余電流互感器和零序電流互感器采集剩余電流。根據(jù)GB/T 22794—2017標(biāo)準(zhǔn)要求,可識(shí)別1 kHz及以下的正弦交流、帶和不帶直流分量的脈動(dòng)直流、平滑直流等剩余電流信號(hào)。經(jīng)信號(hào)調(diào)理電路將電壓信號(hào)送到單片機(jī)進(jìn)行采集和判斷。通過試驗(yàn)測試,該樣機(jī)在測試精度和速度上均符合國家標(biāo)準(zhǔn)的相關(guān)要求。The rapid development of photovoltaic power generation systems and the popularity of electric vehicle charging piles make the traditional residual current protective devices unable to meet the actual demand.This paper proposed a type B residual current protective device,which uses the magnetically modulated residual current transformer and the zero sequence current transformer to acquire the residual current.According to the requirements of GB/T 22794—2017,the type B residual current protective device can detect sinusoidal AC residual current of 1kHz and below 1kHz,pulsating DC residual current with and without DC component,smooth DC residual current and so on.The signal processing circuit sends the voltage signal to the MCU for acquisition and judgment.Through experimental tests,the device meets the relevant requirements of national standards in terms of test accuracy and speed.