-
question2
Q1 Create a program that will initialise Port2 bits 0 - 7 to outputs. Then in an endless loop perform the sequence of bit manipulations shown below. Your program should use bit masking operations. Here is an outline of the program in pseudo-code and with the first two bit manipulations done for you.
//initialise port 2 for output
//set all outputs to 0
while(1)
{
FIO2PIN |= 0x04 // set bit 2 on (0x04 = 00000100)
FIO2PIN &= ~0x04 // set bit 2 off
//set port2 bit 1 on
//set port2 bit 1 off
//set port2 bit 4 on
//set port2 bit 6 and bit 7 on
//set port2 bit 4 off
//set port2 bit 6 and bit 7 off
- 2010-03-09 01:40:03下载
- 积分:1
-
mopso
说明: 此代码为多目标粒子群算法,包括多个测试函数(This code for multi-objective particle swarm optimization algorithm, including multiple test functions)
- 2021-01-08 15:28:11下载
- 积分:1
-
单片机非接触式红外感应体温计全套资料
说明: 单片机设计非接触式红外感应体温计全套资料,里面有软件代码,硬件电路以及PCB文件,调试笔记,是开发非接触式额温枪设计的参考资料。(A complete set of information about the design of contactless infrared thermometer by single chip microcomputer, including software code, hardware circuit, PCB file, debugging notes, is the reference for the development of contactless temperature gun design.)
- 2020-11-30 20:09:28下载
- 积分:1
-
系统辨识理论及Matlab仿真
系统辨识理论及MATLAB仿真书籍代码刘金坤书籍(System identification theory and MATLAB simulation)
- 2020-12-22 22:09:07下载
- 积分:1
-
sim_simple_car
说明: a simple Simulink model of car
- 2019-01-02 21:54:49下载
- 积分:1
-
10.1007%2Fs11277-016-3915-3
说明: Kinect Controlled UGV
- 2020-06-25 10:40:01下载
- 积分:1
-
QTcpSocket-Example-master
qt c++ tcpip sample for pc to pc communication
- 2020-06-15 22:22:59下载
- 积分:1
-
muiti_band
说明: IDL批量实现影像多单波段合成LayerStacking,并进行滤波SavitzkyGolayFilter,然后再拆分为单波段(IDL batch realizes image multi-single band synthesis LayerStacking, filters SavitzkyGolayFilter, and then splits into single bands)
- 2020-12-14 21:49:14下载
- 积分:1
-
Expert_System
说明: 专家系统课程实验-疾病分类
简单的疾病分类-13种疾病
使用Python版的CLIPS - pyknow(EXPERIMENTAL EXPERIMENT OF EXPERT SYSTEM COURSE-DISEASE CLASSIFICATION
Simple Classification of Diseases - 20 Diseases
Using the Python version of CLIPS - pyknow)
- 2019-05-07 15:55:52下载
- 积分:1
-
Labwindows/CVI方面的例子程序实在太少了,放上一点给大家共享
Labwindows/CVI方面的例子程序实在太少了,放上一点给大家共享-Labwindows/CVI example of the procedure is too small, place in 1:00 to share! !
- 2022-03-24 09:36:44下载
- 积分:1