[En-Nut-Discussion] I/O pins control

Michael De Backer micdb at skynet.be
Tue Nov 9 20:34:31 CET 2004


Hello,

I'm beginning with the Charon II Dev Kit too. Looking for the same
answers :D

How can I use one pin to generate pulses (25,50,70 and 100ms) ? Is it
possible to use NutTimerStart and make the pulse in the callback routine
? Is it a better way to do that ?

Michael

> 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 :-)))
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
> 




More information about the En-Nut-Discussion mailing list