forked from wokwi/wokwi-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
title: wokwi-nlsf595 Reference | ||
sidebar_label: wokwi-nlsf595 | ||
--- | ||
|
||
Serial (SPI) Tri-Color LED Driver | ||
|
||
 | ||
|
||
Use the NLSF595 shift register to connect power-hungry RGB LEDs to your microcontroller. A single unit can control two RGB LEDs, and a chain of two units can control up to five RGB LEDs. | ||
|
||
## Pin names | ||
|
||
| Pin | Description | | ||
| ----- | ------------------------------------------------------ | | ||
| SI | Serial input | | ||
| SCK | Serial clock | | ||
| RCK | Storage (latch) pin | | ||
| OE | Output enable, active low. Connect to GND if not used. | | ||
| QA…QH | Parallel output | | ||
| SQH | Serial output\* | | ||
| SCLR | Reset (clear), active low. Connect to VCC if not used | | ||
| GND | Ground | | ||
| VCC | Supply voltage | | ||
|
||
\* Use the Q7S to chain multiple NLSF595 units together. Connect SQH to the SI pin of the next NLSF595 chip in chain. | ||
|
||
## Using the NLSF595 | ||
|
||
You will need to connect at least 3 pins to your microcontroller: SI, SCK, and RCK. | ||
|
||
The OE pin can be used to disable the output of the shift register. If you need that functionality, | ||
connect it to your microcontroller. Otherwise, connect it to the ground to permanently enable the output. | ||
|
||
The output pins of the shift register, QA through QH, are usually connected to the input pins of common-anode [RGB LEDs](wokwi-rgb-led). | ||
|
||
## Simulator examples | ||
|
||
- [NLSF595 LED Driver with 2 RGB LEDs](https://wokwi.com/arduino/projects/315085666329297472) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters