pic18f452 problem

Status
Not open for further replies.

esconele

New Member
hello,
i'm using pic18f452 for generating 5hz pulses. i require 6 pulses with same frequency and 120 degree phase shift in between three of them and 180 degree in other three and require 5microsecond delay in between two pulses i'vw written like this
movlw b'00111000'
movwf portd
and in timer3 isr i'm rotating this for 5hz like
rrcf portd
bcf portd,7
btfsc status,c
bcf portd,5
it is giving me 5hz pulses with required phase shifts but how to give 5microsecond delay in between them.
thank you.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…