搜索结果
找到约 23 项符合
0x10 的查询结果
按分类筛选
单片机编程 16 16点阵显示汉字原理及显示程序
16 16点阵显示汉字原理及显示程序
#include "config.h"
#define                DOTLED_LINE_PORT        PORTB #define            &nbs ...
单片机编程 51单片机驱动步进电机(含电路图和C语言源程序代码)
51单片机驱动步进电机(含电路图和源程序代码)
源程序:stepper.c stepper.hex /* * STEPPER.C * sweeping stepper's rotor cw and cww 400 steps * Copyright (c) 1999 by W.Sirichote */ #i nclude c:\mc5151io.h /* include i/o header file */ #i nclude c:\mc5151reg.h register unsigned char j,flag1,temp; registe ...
单片机编程 4x4鍵盤的设计与制作
三種方法讀取鍵值􀂄 使用者設計行列鍵盤介面,一般常採用三種方法讀取鍵值。􀂉 中斷式􀂄 在鍵盤按下時產生一個外部中斷通知CPU,並由中斷處理程式通過不同位址讀資料線上的狀態判斷哪個按鍵被按下。􀂄 本實驗採用中斷式實現使用者鍵盤介面。􀂉 掃描法􀂄 對鍵盤上的某一行 ...
汇编语言 //浮点异常的控制位 #define FPUEM_INVALIDOP 0x01 #define FPUEM_DENORMALOP 0x02 #define FPUEM_ZERODIVIDE 0x04
//浮点异常的控制位 #define FPUEM_INVALIDOP 0x01 #define FPUEM_DENORMALOP 0x02 #define FPUEM_ZERODIVIDE 0x04 #define FPUEM_OVERFLOW 0x08 #define FPUEM_UNDERFLOW 0x10 #define FPUEM_PRECISON 0x20 #define __FORCE_INLINE__ __inline /*---------------------------------------------------------- 打开指定的浮 ...
嵌入式Linux oid led8_test(void) { int i, j, k iic_init() for( ) { for(j=0 j<10 j++) {
oid led8_test(void)
{
int i, j, k
iic_init()
for( )
{
for(j=0 j<10 j++)
{
for(i=0 i<8 i++)
{
k = 9-(i+j)%10
iic_write(0x70, 0x10+i, f_szDigital[k])
}
delay(1000)
}
}
}
汇编语言 LIST p=16F84 PIC16F844 is the target processor #include "P16F84.INC" Include
LIST p=16F84 PIC16F844 is the target processor
#include "P16F84.INC" Include header file
CBLOCK 0x10 Temporary storage
tempo
tptrl
tptrh
note
length
pitch
temp ...
嵌入式/单片机编程 //温度数码管显示演示程序 //数码管位选信号 :由右到左为P20、P21、P22、P23、P24、P33 //数码管数据线 :P0口 //数码管数字码 :0 0xC0
//温度数码管显示演示程序
//数码管位选信号 :由右到左为P20、P21、P22、P23、P24、P33
//数码管数据线 :P0口
//数码管数字码 :0 0xC0 1 0xF9 2 0xA4 3 0xB0 4 0x99 5 0x92 6 0x82 7 0xF8 8 0x80 9 0x90
//数码管带点码 :0 0x40 1 0x79 2 0x24 3 0x30 4 0x19 5 0x12 6 0x02 7 0x78 8 0x00 9 0x10
//1 ...
单片机开发 单片机I2C通信。 主机从1到255发一个数
单片机I2C通信。
主机从1到255发一个数,收一个数。从机接收到任何数都返回。
当主机收到的数为0x10时,从零开始发送,主机采用查询方式,从机采用中断方式
单片机编程 红外解码程序
/*
&nbsp;* _168ZHONGDUAN2.c
&nbsp;*
&nbsp;* Created: 2014/11/2 15:12:45
&nbsp;* &nbsp;Author: lenovo
&nbsp;*/&nbsp;
#include <avr/io.h>
#include <avr/iom168pa.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include <avr/eeprom.h>
//#include <util/delay_basic.h>
//unsigned char const SEGtabl ...