I have a question (newbie of course) regarding output_bit,
I need to place hex "words" bytes on a pin, this should be 1 = 50us high & 50us low and 0 = 100us high & 100us low.
Is the only chance to use the delay_us() command for keeping the port high & low in conjuntion with output_bit. I´ve tried with PWM and compare but I had no succeded (yet).
Thanks a lot.
Iam using 18f452 with 4MHZ XTAL and 8MHZ clock. but none of this is mandatory... just testing and learning, the goal is develop a dcc command / decoder for scale trains . Thanks a lot in advance as usual...
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Mon Jul 24, 2006 5:00 pm
Quote:
Is the only chance to use the delay_us() command for keeping the port high & low ?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum