Dear friends:
I'm trying to produce a pulse of one micro second (1 us), with any of the PICAXE Chips because I have all of them, but specially with the 40X2 parts. I already tried with differents commands like pulsout, pauseus and also change the crystal resonator to increase the speed also tried to use toggle command twice continuosly to generate the pulse, but now I'm trying to use the SRLatch command because on the table of the page 196 of the Command Manual are listed some clock frecuencies and there appear the 1 us at 4 Mhz.
Could somebody explain me how to use the SRLatch function, and specially with and example, because, for example I don't know have to set the pin for the SRQ or SRNQ, or the most important how to use this command to create a 555 timer as the manual mention, that says "The latch can also
be used to generate a 555 timer style pulsing output".
basically, I need to do the next routine.
Generate_a_pulse:
1. comparate a bit XX.
2. if the bit XX is high
make output YY high and generate a one microsecond pulse.
3. if the bit es low
make output YY low and generate a one microsecond pulse.
4. return the
return
Or maybe somebody, could give me another idea to generate this pulse, and one day somebody will do the same for you.
Thanks in advance.
PicGuate from Guatemala City, country of the eternal spring.
I'm trying to produce a pulse of one micro second (1 us), with any of the PICAXE Chips because I have all of them, but specially with the 40X2 parts. I already tried with differents commands like pulsout, pauseus and also change the crystal resonator to increase the speed also tried to use toggle command twice continuosly to generate the pulse, but now I'm trying to use the SRLatch command because on the table of the page 196 of the Command Manual are listed some clock frecuencies and there appear the 1 us at 4 Mhz.
Could somebody explain me how to use the SRLatch function, and specially with and example, because, for example I don't know have to set the pin for the SRQ or SRNQ, or the most important how to use this command to create a 555 timer as the manual mention, that says "The latch can also
be used to generate a 555 timer style pulsing output".
basically, I need to do the next routine.
Generate_a_pulse:
1. comparate a bit XX.
2. if the bit XX is high
make output YY high and generate a one microsecond pulse.
3. if the bit es low
make output YY low and generate a one microsecond pulse.
4. return the
return
Or maybe somebody, could give me another idea to generate this pulse, and one day somebody will do the same for you.
Thanks in advance.
PicGuate from Guatemala City, country of the eternal spring.