![]() MI800 Asterisk Trixbox VoIP PBX 2 Cisco SPA303 SPA8800 US $1,077.33
|
![]() MI800 Asterisk Trixbox VoIP PBX 4 Cisco SPA303 SPA8800 US $1,303.43
|
![]() MI800 Intel Asterisk Trixbox PBX 8 Cisco SPA303 SPA8800 US $1,755.63
|
![]() MI800 Asterisk Trixbox Digium PBX 2 FXO 4 Cisco SPA303 US $1,088.19
|
![]() MI800 Asterisk Trixbox Digium PBX 4 FXO 8 Cisco SPA303 US $1,582.16
|
![]() MI800 Trixbox Digium PBX 8 FXO 10 SPA303 2 SPA504 +500 US $2,770.73
|
![]() MI800 Trixbox Digium PBX 8 FXO 16 SPA303 4xSPA504 +500 US $3,809.46
|
![]() MI800 Trixbox Digium PBX 8 FXO 10 SPA303 2xSPA509 +500 US $2,866.49
|
![]() MI800 Trixbox Digium PBX 8 FXO 16 SPA303 4xSPA509 +500 US $4,000.98
|
![]() MI800 Trixbox Digium PBX 8 FXO 10 SPA303 2xSPA525 +500 US $3,198.99
|
![]() MI800 Trixbox Digium PBX 8 FXO 16 SPA303 4xSPA525 +500 US $4,580.86
|
![]() TrendNet TFC-1000MGB-1000MBPS TX TO 1000SX/LX SLOT - Kit US $86.99
|
![]() LG - XFP10G-LR 1-Port 10G-LR XFP Transceiver US $671.65
|
![]() LG - XFP10G-SR XFP Transceiver Module US $588.93
|
![]() LG - SFP1G-SX SFP 1-Port 1000Mbps Fiber SX US $100.88
|
![]() Aten - PS/2 KVM Adapter Cable KA7120 US $114.26
|
![]() Cisco - CISCO2951/K9 Integrated Services Router US $4,691.94
|
![]() Aten - USB KVM Adapter Cable KA7170 US $114.26
|
![]() Cisco - Cobo GB Enet LX Mini-GBIC SFP US $197.92
|

Microcontroller C serial simple question?
I want to send something to a shift register that reads the data on the leading edge of the clock.
As part of the exercise I am unable to use any additional modules like SPI and have to do it all manually, creating the clock cycles etc.
However I don't understand how I can create the clock cycles and the data at the same time, surely I need them both running at once so the chip can see the data at the leading edge of the clock.
Any example code would be great but just a steer in the right direction would be nice.
you actually do NOT want the data ans clock pins to change state at the same time. Doing so could lead to corrupt data du to the fact that the data pin may not be at its full high or low state when the clock pin reaches its full high or low state.
so, assuming the data is clocked into the shift register on the rising edge of the clock, and you need to shift 8 bits:
(in C language)
Clk is the clock pin to the shift register
DataOut is the data pin to the shift register
Clk = 0;
DataByte = 0xa5; //the data to clock out
for (a = 0; a < 8; a++){ //loop 8 times
DataOut = (DataByte & 0x01); //set the data out pin to the LSB
Clk = 1; //set the clock pin high
DataOut >>= 1; //rotate data 1 bit right
//doing this here also adds some delay between Clk = 1 and Clk = 0
Clk = 0; //set the clock pin low
}
Whats On My YouTube Today?
TextStar 2 Serial LCD Module Preview
Here Are A Few Items From Amazon You Might Be Interested In.
| Account limit of 2212 requests per hour exceeded. |
Items recently purchased on this site:
Thanks for visiting!































































































