shift_register_74595

shift_register_74595

Author Joep Suijs, Copyright © 2014 .. 2014 Joep Suijs
Adapted-by
Compiler >=2.4q2

Description

Control of 74595 shift register
.
Setup:
alias sr_scl   is pin_d2   ; SRCK  (serial clock, rising egde)
alias sr_g     is pin_d3   ; G (output enable, low = enable)
alias sr_sda   is pin_d1   ; SER_IN   / DS
alias sr_rck   is pin_d3   ; RCK (parallel clock / load, rising edge)


                                                
include shift_register_74595
sr_output_enable(1)  ; activate shift register outputs --



Use:





 set one output of each shift register      
sr_write(data)   ; data for 74595 - end of chain


 sw_write for all intermediate 74595 here
sr_write(data)   ; data for 74595 #1 (directly connected to PIC) 
sr_commit()   ; clock all data to outputs


Dependencies

No dependency found



Summary

Global variables/contants

Procedures

Functions


API details

Global variables/contants

Procedures

Functions


Related samples

Here are the list of samples which use this library:

12f68312f683_sr_74595.jal
16f648a16f648a_sr_74595.jal
16f72316f723_sr_74595.jal
16f7316f73_sr_74595.jal
16f87716f877_sr_74595.jal
16f877a16f877a_sr_74595.jal
16f8816f88_sr_74595.jal
18f245018f2450_sr_74595.jal
18f252018f2520_sr_74595.jal
18f255018f2550_sr_74595.jal
18f262018f2620_sr_74595.jal
18f45218f452_sr_74595.jal
18f455018f4550_sr_74595.jal
18f462018f4620_sr_74595.jal
18f67j5018f67j50_sr_74595.jal