Skip to content

Commit

Permalink
Decrease tDW (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
berarma authored Dec 28, 2023
1 parent 8e3c318 commit 219f16d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/AY3891x.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,10 @@ void AY3891x::write(byte regAddr, byte data) {
daPinsOutput(data);
// The Write Data Pulse Width tDW has a max time of 10 us per the datasheet
// tDW = time that WRITE_DATA mode is enabled before going back to INACTIVE
setMode(WRITE_DATA);
setMode(INACTIVE_010);
if (_BDIR_pin != NO_PIN) {
digitalWrite(_BDIR_pin, HIGH);
digitalWrite(_BDIR_pin, LOW);
}
// setMode(INACTIVE_000); // This is not needed since latchAddressMode() changes to 000
daPinsInput();
}
Expand Down

0 comments on commit 219f16d

Please sign in to comment.