[En-Nut-Discussion] I/O pins control
Martin Paces
marpac at centrum.cz
Tue Nov 9 14:49:35 CET 2004
Hi guys,
I'm just starting with the Ethernut project. I already bought the Charon II DB packet and have done some stuff. But I can't find any document containing the stuff about I/O pins control. I tried to check the examples and the .h files and there is so many things to understand.
Could you help me to learn the I/O pins control?
I found the outp() and inp() functions, cbi() and sbi() as well.
1) cbi() and sbi() works fine, outp() too, I don't know how to handle inp().
2) How to check, if there is an input bit set to 1 or 0?
3) What are the differences between the port deffinitions DDRD, DDD3 for instance, PORTD, PORTD3 and so on?
Thanks a lot for your help for the newbee :-)))
More information about the En-Nut-Discussion
mailing list