Code:
Transfer:
ShiftOut Dta,Clk,msbfirst,[Register,R_Val] ' Shift Out the Register first, then the data
High Load ' Data is now latched in and displayed
@ Nop
Low Load ' Disable the MAX7219
Return ' Exit from Subroutine
Transfer1:
ShiftOut Dta,Clk,msbfirst,[Register,R_Val] ' Shift Out the Register first, then the data
ShiftOut Dta,Clk,msbfirst,[0,0] ' Send No-Op Command
High Load ' Data is now latched in and displayed
@ Nop
Low Load ' Disable the MAX7219
Return ' Exit from Subroutine
Transfer2:
ShiftOut Dta,Clk,msbfirst,[Register,R_Val] ' Shift Out the Register first, then the data
ShiftOut Dta,Clk,msbfirst,[0,0] ' Send 2 sets of No-Op Commands
ShiftOut Dta,Clk,msbfirst,[0,0]
High Load ' Data is now latched in and displayed
@ Nop
Low Load ' Disable the MAX7219
Return ' Exit from Subroutine
Transfer3:
ShiftOut Dta,Clk,msbfirst,[Register,R_Val] ' Shift Out the Register first, then the data
ShiftOut Dta,Clk,msbfirst,[0,0]
ShiftOut Dta,Clk,msbfirst,[0,0]
ShiftOut Dta,Clk,msbfirst,[0,0]
High Load ' Data is now latched in and displayed
@ Nop
Low Load ' Disable the MAX7219
Return ' Exit from Subroutine
Transfer4:
ShiftOut Dta,Clk,msbfirst,[Register,R_Val] ' Shift Out the Register first, then the data
ShiftOut Dta,Clk,msbfirst,[0,0]
ShiftOut Dta,Clk,msbfirst,[0,0]
ShiftOut Dta,Clk,msbfirst,[0,0]
ShiftOut Dta,Clk,msbfirst,[0,0]
High Load ' Data is now latched in and displayed
@ Nop
Low Load ' Disable the MAX7219
Return ' Exit from Subroutine
Transfer5:
ShiftOut Dta,Clk,msbfirst,[Register,R_Val] ' Shift Out the Register first, then the data
ShiftOut Dta,Clk,msbfirst,[0,0]
ShiftOut Dta,Clk,msbfirst,[0,0]
ShiftOut Dta,Clk,msbfirst,[0,0]
ShiftOut Dta,Clk,msbfirst,[0,0]
ShiftOut Dta,Clk,msbfirst,[0,0]
High Load ' Data is now latched in and displayed
@ Nop
Low Load ' Disable the MAX7219
Return ' Exit from Subroutine
Thinking I can make it shorter, I used the
Bookmarks