Arch file support for 4-bit row address.

This commit is contained in:
David Fenyes 2020-02-19 23:32:14 -06:00
parent a2a6be49a4
commit 6e462589cc
2 changed files with 2 additions and 2 deletions

View File

@ -498,7 +498,7 @@ asdf_cols_t asdf_arch_read_row(uint8_t row)
asdf_cols_t cols = 0; asdf_cols_t cols = 0;
// first, output the new row value: // first, output the new row value:
ASDF_ROW_PORT = (ASDF_ROW_PORT & ~ASDF_ROW_MASK) | row << ASDF_ROW_OFFSET; ASDF_ROW_PORT = (ASDF_ROW_PORT & ~ASDF_ROW_MASK) | ((row & ASDF_ROW_MASK) << ASDF_ROW_OFFSET);
// read in the columns. Set LOAD mode and pulse clock. // read in the columns. Set LOAD mode and pulse clock.

View File

@ -179,7 +179,7 @@
#define ASDF_ROW_PORT PORTC #define ASDF_ROW_PORT PORTC
#define ASDF_ROW_DDR DDRC #define ASDF_ROW_DDR DDRC
#define ASDF_ROW_MASK 0x07 #define ASDF_ROW_MASK 0x0f
#define ASDF_ROW_OFFSET 0 #define ASDF_ROW_OFFSET 0
#define ASDF_COL_PORT PORTB #define ASDF_COL_PORT PORTB