by CrowXP » Thu Oct 18, 2007 1:19 pm
by CrowXP
Thu Oct 18, 2007 1:19 pm
Hello everyone, I was trying to write C program to control my Bioloid.But I discover that there some codes I can't understand which was in the example program.
Like:
#define CHECK_TXD0_FINISH bit_is_set(UCSR0A,6)
What does the "UCSR0A" means? I have no idea about that, so I couldn't know what does this line doing.
Or:
DDRE |= (BIT_RS485_DIRECTION0|BIT_RS485_DIRECTION1);
There are more troubles for me. Althought after reading
http://winavr.scienceprog.com/avr-gcc-t ... r-gcc.html
, I know about that was defining the PORTD's input/output. But I got more questions, why use PORTD? can I use other port? ( althought I don't know how many ports does CM5 have)
This troubled me for some weeks. Does there have any toturial for the new robot programmer like me? I want to study more informations about embedded system. But I can't find the informations about ATmega128, most of the web-sites/books are talking about 8051.
Thanks for reading my poor English.
Hello everyone, I was trying to write C program to control my Bioloid.But I discover that there some codes I can't understand which was in the example program.
Like:
#define CHECK_TXD0_FINISH bit_is_set(UCSR0A,6)
What does the "UCSR0A" means? I have no idea about that, so I couldn't know what does this line doing.
Or:
DDRE |= (BIT_RS485_DIRECTION0|BIT_RS485_DIRECTION1);
There are more troubles for me. Althought after reading
http://winavr.scienceprog.com/avr-gcc-t ... r-gcc.html
, I know about that was defining the PORTD's input/output. But I got more questions, why use PORTD? can I use other port? ( althought I don't know how many ports does CM5 have)
This troubled me for some weeks. Does there have any toturial for the new robot programmer like me? I want to study more informations about embedded system. But I can't find the informations about ATmega128, most of the web-sites/books are talking about 8051.
Thanks for reading my poor English.