Description: 在ARM2200上,使用硬件SPI接口与74HC595进行连接,控制其驱动流水灯显示,供大家参考!-In the ARM2200, the use of hardware SPI interface to connect with 74HC595, control of its water-driven light show for your reference! Platform: |
Size: 1024 |
Author:李凯 |
Hits:
Description: ATmega48/88/168的PB5是SPI时钟输出,接74HC595/74HC165的移位时钟输入端;PB4是SPI的MISO数据输人,接74HC165的数据输出;PB3是SPI的MOSI数据输出,接74HC595的串行数据输入端SER;PB2接74HC595/74HC165的锁存时钟输入端。 -ATmega48/88/168 the PB5 is the SPI clock output, then 74HC595/74HC165 shift clock input PB4 is the MISO SPI data input, data output connected 74HC165 PB3 SPI, MOSI is the data output, then the string of 74HC595 line data input SER PB2 access 74HC595/74HC165 latch clock input. Platform: |
Size: 2048 |
Author:shirley |
Hits:
Description: 本例子是用硬件SPI接口循环发送一个变量到74HC595,并且在数据发送完毕后通过单片机的另外一个IO接口PB2输出一个“锁存”脉冲 ,使74HC595把移位寄存器的数据输出到锁存寄存器,并驱动8个LED输出,实现来回流水的效果。-This example is using the hardware SPI interface to send a variable to the loop 74HC595, and after the data is sent through the microcontroller interface to another IO PB2 output a " latch" pulse, the 74HC595 shift register to latch the data output to the register, and drive 8 LED outputs, to achieve the effect of water back and forth. Platform: |
Size: 5120 |
Author:张玉坤 |
Hits:
Description: ATmega48/88/168的PB5是SPI时钟输出,接74HC595/74HC165的移位时钟输入端;PB4是SPI的MISO数据输人,接74HC165的数据输出;PB3是SPI的MOSI数据输出,接74HC595的串行数据输入端SER;PB2接74HC595/74HC165的锁存时钟输入端。-PB5 The ATmega48/88/168 SPI clock output connected to the input end of a 74HC595/74HC165 the shift clock PB4 SPI MISO data input, then 74HC165 data output PB3 SPI MOSI data output, then 74HC595 string The line data input terminal SER PB2 a latch clock input terminal connected 74HC595/74HC165. Platform: |
Size: 8192 |
Author:吳忠憲 |
Hits: