??? 05/05/05 00:25 Read: times |
#92955 - Bit shifting Responding to: ???'s previous message |
I think you're expecting to use the uart to do the bit shifting for you. The code fragment you show simply shifts the bits out one by one. The value to send is in the Accumulator, the RRC shifts the accumulator right by one bit into the carry bit, the carry bit is copied to the port bit. We then toggle the clock bit to clock the bit into the 6276 and then we do this for the 8 bits. We then do this for the 6 bytes then toggle the latch pin. This is called 'bit bashing'! I normally keep the uart free for serial comms - it helps with debugging. |
Topic | Author | Date |
Allegro A6276 Sample Code | 01/01/70 00:00 | |
Divide and conquer | 01/01/70 00:00 | |
Informative! | 01/01/70 00:00 | |
Re:Allegro A6276 Sample Code | 01/01/70 00:00 | |
Further Questions | 01/01/70 00:00 | |
Bit shifting![]() | 01/01/70 00:00 |