Oct 13, 2011 #21 M mf1364 Full Member level 3 Joined Dec 4, 2007 Messages 185 Helped 2 Reputation 4 Reaction score 2 Trophy points 1,298 Activity points 2,700 alexan_e said: Yes that is correct but note that when you have 16-bit shift register you have to send 16 bits so that the new so in order to apply a new 16 bit value you have to send 16 new bits so that the old outputs are shifted out completely. Alex Click to expand... thx , do you think that I can send a 16bit binary code with PIC18 family via SPI ?and please advice me a 16bit shift register
alexan_e said: Yes that is correct but note that when you have 16-bit shift register you have to send 16 bits so that the new so in order to apply a new 16 bit value you have to send 16 new bits so that the old outputs are shifted out completely. Alex Click to expand... thx , do you think that I can send a 16bit binary code with PIC18 family via SPI ?and please advice me a 16bit shift register
Oct 13, 2011 #22 A arbj Full Member level 4 Joined Oct 5, 2008 Messages 238 Helped 31 Reputation 62 Reaction score 20 Trophy points 1,298 Activity points 2,599 you could use the SPI based MCP23106 port expander chip, alternatively to reduce the number of parts you could use a 16F877A mcu, this will give you the desired number of outputs, and will also reduce the software overheads...
you could use the SPI based MCP23106 port expander chip, alternatively to reduce the number of parts you could use a 16F877A mcu, this will give you the desired number of outputs, and will also reduce the software overheads...
Oct 13, 2011 #23 alexan_e Administrator Joined Mar 16, 2008 Messages 11,888 Helped 2,021 Reputation 4,158 Reaction score 2,031 Trophy points 1,393 Location Greece Activity points 64,371 mf1364 said: thx , do you think that I can send a 16bit binary code with PIC18 family via SPI ?and please advice me a 16bit shift register Click to expand... To send 16 bit you send two 8bit values ane after the other and you have the same result. Take a look at this tutorial Using Serial Peripheral Interface (SPI) with Microchip PIC18 Families Microcontroller | ermicroblog Alex
mf1364 said: thx , do you think that I can send a 16bit binary code with PIC18 family via SPI ?and please advice me a 16bit shift register Click to expand... To send 16 bit you send two 8bit values ane after the other and you have the same result. Take a look at this tutorial Using Serial Peripheral Interface (SPI) with Microchip PIC18 Families Microcontroller | ermicroblog Alex