-
PIC16F877A动态数码管扫描C程序
PIC16F877A动态数码管扫描C程序-PIC shumaguan
- 2022-03-23 16:37:50下载
- 积分:1
-
ICL7135 读写程序 在增强型单片机 C8051F040 上面调试通过
ICL7135 读写程序 在增强型单片机 C8051F040 上面调试通过 -ICL7135 literacy enhanced procedures in the above C8051F040 through debugging
- 2022-03-24 16:33:23下载
- 积分:1
-
c8051f020 the I2C procedures have been adopted to debug
c8051f020的I2C程序,已经通过调试-c8051f020 the I2C procedures have been adopted to debug
- 2022-01-28 21:02:15下载
- 积分:1
-
TLC2543 driver
TLC2543驱动程序-TLC2543 driver
- 2022-03-23 04:48:48下载
- 积分:1
-
让单片机唱歌的程序
让单片机唱歌的程序-Let Singlechip singing procedures
- 2022-04-17 05:31:54下载
- 积分:1
-
由8051组成的单片机系统通常情况下,P0口分时复用作为地址、数据总线,P2口提供A15...
由8051组成的单片机系统通常情况下,P0口分时复用作为地址、数据总线,P2口提供A15-A8即高8位地址,P3口用作第二功能,只有P1口通常用作I/0口。P1口是8位准双向口,它的每一位都可独立地定义为输入或输出,因此既可作为8位的并行I/O口,也可作为8位的输入输出端。当工作在输入方式时,对应位的锁存器必须先置1,才能正确地读到引脚上的信号,否则,执行读引脚指令时,若对应位的锁存器的值为0,读的结果永远为0。-By 8051, composed of single-chip microcomputer system under normal circumstances, P0 timeshare I reuse as address, data bus, P2 I provide A15-A8 high eight address, P3 mouth for the second function, I usually only P1 for I/0 I. P1 I was eight quasi-two-way port, it can be independent of each and every defined as input or output, it can be used as 8-bit parallel I/O port, can also be used as 8-bit input and output side. When the work in the input, the corresponding bit latch must first buy one in order to correctly read the signal pin, or pin the implementation of reading instruction, if the corresponding bit latch the value of 0, Reading the results of Forever to 0.
- 2023-08-10 04:55:03下载
- 积分:1
-
1. 本程序使用一个定时器和任意 2 个 I/O 口模拟一个串行口。
2. 1位起始位,8位数据位,1位停止位。发数据位时先发低位。
3. 支持半双...
1. 本程序使用一个定时器和任意 2 个 I/O 口模拟一个串行口。
2. 1位起始位,8位数据位,1位停止位。发数据位时先发低位。
3. 支持半双工通讯。收、发波特率相同。
4. 应把定时器中断优先级设置为最高级。
5. 本程序每接收一个字节后就把它放到一个队列缓冲区中(也可使用环行缓冲区),
待缓冲区满后,将缓冲区中的内容原样发回。这是为了测试多字节连续收发的
能力和简化程序。实际应用中应防止缓冲区溢出。
6. 由接收转换到发送时要先调用 soft_send_enable ();
由发送转换到接收时要先调用 soft_receive_enable ()。
7. 发送最后一个字节后如果要立刻转为接收,必须等待最后一个字节后发送完毕
while ( rs_f_TI == 0) // 等待最后一个字节发送完毕-err
- 2022-06-19 08:35:11下载
- 积分:1
-
430开发板PCB图,可直接开板,适用于初学者
430开发板PCB图,可直接开板,适用于初学者-430 development board PCB diagram, can be directly opened plate for beginners
- 2022-02-14 07:21:00下载
- 积分:1
-
其中的usb端口通信已经作为一个模块来使用,用户只需用以下函数就可以对usb端口进行方便地读写:
unsigned char D12_WriteEndpo...
其中的usb端口通信已经作为一个模块来使用,用户只需用以下函数就可以对usb端口进行方便地读写:
unsigned char D12_WriteEndpoint(unsigned char endp, unsigned char len, unsigned char * buf) 此为usb端点输出函数,endp是要进行通信的端点,取值为3(普通端点,最大可一次传输16byte)或5(主端点,最大可一次传输64byte);len为一次输出数据长度;*buf为数据所在位置。
usb端点数据的读操作是由底层函数自动完成的(相关函数为unsigned char D12_ReadEndpoint(unsigned char endp, unsigned char len, unsigned char * buf); 相应端点为2和4),所读到的数据存于GenEpBuf[](普通端点)、MainEpBuf[]或EpBuf[](主端点)中,用户可以直接读取使用。-Usb port communication which has been used as a module, the user can use the following function on the usb port can easily read and write:
unsigned char D12_WriteEndpoint (unsigned char endp, unsigned char len, unsigned char* buf) This is the endpoint usb output function, endp is to communicate the endpoint, the value for 3 (common endpoint, the first transmission maximum 16byte) or 5 ( the main endpoint, the first transmission maximum 64byte) len Length of output data for the first time * buf location for data.
usb endpoint data is read
- 2023-06-14 23:15:04下载
- 积分:1
-
结合温度传感器的实现测温度的C程序 这个小项目用到了比较多的AVR单片机的资源 是个不错的学习例程...
结合温度传感器的实现测温度的C程序 这个小项目用到了比较多的AVR单片机的资源 是个不错的学习例程-Realize the combination of temperature sensor measuring the temperature of the C program that uses a relatively small projects and more resources AVR MCU is a good learning routines
- 2023-06-11 15:05:08下载
- 积分:1