Hello everyone,
I am traying to write a programe ro control the servo movement in the C language. If any of you has an idea about this please let me know. Thank you.
hey Til, how are you diong,
first of all thanks for replying to me. I want to know
thw exact commands to control the servos that are
attached to the HC11 ports. I attended to programe
these servos using interactive C but i discovered that
its not going to work. So i decided to use C language
and i spent two days researching the internet for C
commands with no luck. Can you send me these commands
please or a sample program so i can use it as a gaide.
Thank You
Moaweya
...
*portBPtr = 0; /* Clear all bits of port B */
*portBPtr |= 0x4; /* Set bit 2 of PORT B */
*portBPtr |= 0x10; /* Set bit 4 of PORT B */
*portBPtr &= ~0x4; /* Clear bit 2 of PORT B */
*portBPtr &= ~0x10; /* Clear bit 4 of PORT B */
...
}