janetsmith2000@yahoo.com
New Member
Hi,
Usually, when I want to use PIC to interface another IC, for the Clk or En pin of the device, I will send a Logic 1 and then followed by Logic 0 for each cycle.
for example,
output_high(PIN_STOP);
pulse();
where pulse is
void Pulse() {
output_high(PIN_B0),
delay_ms(100),
output_low(PIN_B0),
delay_ms(100),
}
In this way, I can get the job done, although the duty cycle of CLK pulse is not preserved.
Now I have to interface with an IC, which according to the datasheet,
CLK: The clock signal, coming from the external controller, must have a Duty Cycle within the Min/Max values defined by the specification (typically 50%).
What is the walkaround for this problem?
Usually, when I want to use PIC to interface another IC, for the Clk or En pin of the device, I will send a Logic 1 and then followed by Logic 0 for each cycle.
for example,
output_high(PIN_STOP);
pulse();
where pulse is
void Pulse() {
output_high(PIN_B0),
delay_ms(100),
output_low(PIN_B0),
delay_ms(100),
}
In this way, I can get the job done, although the duty cycle of CLK pulse is not preserved.
Now I have to interface with an IC, which according to the datasheet,
CLK: The clock signal, coming from the external controller, must have a Duty Cycle within the Min/Max values defined by the specification (typically 50%).
What is the walkaround for this problem?