TI E2E Community
shift registers --- binary counting
hi I am using a PIC 16F819 and to save input/output pins i am feeding binary count information serially into a 74HC 595 shift register which I then read out in parallel.
This all works fine --no problems ----however because the register size in the PIC is only 8 its I cannot count higher than 255 !! and i need to count higher in binary than this .
I have seen articles where several shift registers are used in series with information being fed through from one to another ---but try as I might i cannot get this to count in binary properly..
Information on the internet is usually derived from programs written in C and unfortunately I only understand ASSEMBLY language and it would take me too long to try to acquire cometency in C or a higher language. so far I have managed well using assembly language.
I have tried to use more than one 8 bit register to use for the binary counting --this can work OK for numbers larger than 255 for internal program use in the PIC but doesnt seem to feed through serially into the shift registers.
If anyone can help me with this----- in ASSEMBLY language I would be so very grateful.
Many thanks for your time in reading this .
Post your code here I will try to help
Hi many thanks for your kind offer --I am sorry for the delay in replying but I have been away for a day or two..
I have in fact now managed to find someone who has now sloved the problem for me.
Thank you once more and all best wishes --have a great time over the holiday period.
If you have some problem with programming PIC micro or other MCU you can find me here or contact with me on facebook -> microcontroller arena group
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.