nec c语言笔试题,红外NEC编码发射程序_C语言(国外英文资料).doc

红外NEC编码发射程序_C语言(国外英文资料)

红外NEC编码发射程序_C语言(国外英文资料)

* * * * * * *

Hardware platform: homemade infrared device

Program function: the NEC code is fired according to the key of the matrix keyboard

* * * * * * * * * * * * * * *

I can't tell you how much you want to be

Self-made infrared device: P3 ^ 3 (INT1) by tapping the button grounding. P1 is the matrix keyboard

P0 ^ 7 through s9015 TSAL6200, low-level conduction. P3 HS0038B ^ 2 (INT0).

P0 ^ 6 after the green light, low level conduction. P2 ^ 5 red indicator light, low level conduction.

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

# include < reg52. H >

# include < intrins. H >

I can't tell you how much you want to be

Port definitions

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Sbit zaibo = P0 ^ 7;

Sbit lvdeng = P0 ^ 6;

I can't tell you how much you want to be

Global variable declaration

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Bit panduan01; / / panduan01 is used to determine whether an nec code corresponds to a binary digit of 0 or 1

Int key = 16; / / key temporary storage key for keyscan ()

Unsigned int temp. / / temp scan the mediation variable for keyscan ()

I can't tell you how much you want to be

Yindao () gene

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值