Amyth
Newbie level 3
Hi I'm trying to programme the microcontroller AT90S2313 to display counter from 99 to 00 using Shift Register.
Microcontroller: AT90S2313
Shift Register: 74HC595
Two PNP BC557 transistors and COMMON ANODE 7-SEGMENT DISPLAY.
Compiler:AVR Code Vision
Schematic Diagram:Schematic | Flickr - Photo Sharing!
I'm having trouble with the programming,basically confused about the steps on how to transmit bits serially to shift register to count from 99 to 00.
I know that the algorithm to load a latched shift-register is:
pull the latch pin low
pull the clock pin low
pull the data pin high or low to reflect bit 1
pull the clock pin high
<repeat for bits 2 through 8>
pull the latch pin high
Although,doesnt this make the code really really long shifting one bit after another?Any easier way?Sorry I have very basic knowledge of programming.
Thanks for your help!!:grin:
Microcontroller: AT90S2313
Shift Register: 74HC595
Two PNP BC557 transistors and COMMON ANODE 7-SEGMENT DISPLAY.
Compiler:AVR Code Vision
Schematic Diagram:Schematic | Flickr - Photo Sharing!
I'm having trouble with the programming,basically confused about the steps on how to transmit bits serially to shift register to count from 99 to 00.
I know that the algorithm to load a latched shift-register is:
pull the latch pin low
pull the clock pin low
pull the data pin high or low to reflect bit 1
pull the clock pin high
<repeat for bits 2 through 8>
pull the latch pin high
Although,doesnt this make the code really really long shifting one bit after another?Any easier way?Sorry I have very basic knowledge of programming.
Thanks for your help!!:grin: