代码搜索:STM32寄存器
找到约 10,000 项符合「STM32寄存器」的源代码
代码结果 10,000
www.eeworm.com/read/37287/1071397
c test.c
#include"stc12c5a.h" //包含STC12C5A60S2单片机的寄存器定义头文件
#include"ISD51.h" //包含ISD51调试功能所需头文件
#define _DEBUG //启用ISD51调试功能
sbit P37=P3^7;
sbit steerPWM=P4^2;
unsigned char speed;
www.eeworm.com/read/37287/1071639
c main.c
#include "stc12c5a.h" //STC12C5A60S2单片机寄存器定义头文件
sbit P10=P1^0; //定义P1.0引脚
void delay(unsigned long cnt); //延时函数声明
void main(void)
{
P10=1;
while(1) //主程序循环
{
delay(60000);
P10
www.eeworm.com/read/37287/1071689
asm ex7-1a.asm
$INCLUDE (STC12C5A.INC) ;包含STC12C5A60S2寄存器定义文件
ORG 0000H
LJMP MAIN ;转主程序
ORG 000BH ;T0中断服务程序入口地址
LJMP T0_ISR
ORG 0100H
MAIN:MOV SP,#60H ;设置堆栈指针
MOV TMOD,#01H
www.eeworm.com/read/37287/1071717
asm ex7-5a.asm
$INCLUDE (STC12C5A.inc) ;包含STC12C5A60S2寄存器定义文件
COUNTER EQU 30H ;声明一个计数器,用来计数中断的次数
LED_1s EQU P1.6
ORG 0000H
LJMP MAIN ;转主程序
ORG 003BH ;PCA中断入口地址
LJMP PCA_ISR
www.eeworm.com/read/37287/1071724
asm ex8-1ba.asm
$include (STC12C5A.INC) ;包含STC12C5A60S2单片机寄存器定义文件
ADDRR EQU 0100H
ORG 0000H
LJMP MAINR ;转主程序
ORG 0023H
LJMP INTSE2 ;转串行口中断服务程序
ORG 0100H
MAINR:MOV SP,#60H ;设置堆栈指针
www.eeworm.com/read/37287/1071761
c ex9-2c.c
#include "stc12c5a.h" //包含STC12C5A60S2单片机寄存器定义文件
unsigned char data adc_hi _at_ 0x31; //A/D转换结果变量高2位
unsigned char data adc_low _at_ 0x30; //A/D转换结果变量低8位
void main(void)
{
unsign
www.eeworm.com/read/37287/1071764
asm ex6-1a.asm
$include (STC12C5A.INC) ;包含STC12C5A60S2单片机寄存器定义文件
ORG 0000H
LJMP MAIN
ORG 0013H
LJMP INT1_ISR
ORG 0100H
MAIN:
MOV SP,#60H
MOV A,#0FEH
MOV P2,#0FFH
SETB IT1 ;设置
www.eeworm.com/read/37287/1071865
c ex6-1c.c
#include "stc12c5a.h" //包含STC12C5A60S2单片机的寄存器定义文件
unsigned char i=0x01;
void main(void)
{
P2=0xff;
IT1=1;
EX1=1;
EA=1;
while(1); //循环等待
}
void INT1_ISR(void) interrupt 2
{
i
www.eeworm.com/read/37287/1071935
asm ex6-2a.asm
$include (STC12C5A.INC) ;包含STC12C5A60S2单片机寄存器定义文件
ORG 0000H
LJMP MAIN ;转主程序
ORG 0003H
LJMP INT0_ISR ;转中断服务程序
ORG 0100H
MAIN: MOV SP,#60H
SETB IT0 ;为沿触发中断方式
SETB EX
www.eeworm.com/read/489429/1224403
asm lbdai.asm
.title "ex10"
BSP .set 0 ;当前使用McBsp1
;McBsp 内存映射寄存器
SPSA0 .set 038h
SPSD0 .set 039h
DRR10 .set 021h
DRR20 .set 020h
DXR10 .set 023h
DXR20 .set 022h
SPSA1 .set 04