Sep 8, 2011 #1 B beeboss Newbie level 5 Joined Jun 28, 2011 Messages 8 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Location India Activity points 1,330 Hi all, Im using ATmega8535. I want to give the input through the PORTD and i want the output from PORTC. Im new to the AVR. anyone please send the C code for the same. Thanks...
Hi all, Im using ATmega8535. I want to give the input through the PORTD and i want the output from PORTC. Im new to the AVR. anyone please send the C code for the same. Thanks...
Sep 8, 2011 #2 H Hewitson Advanced Member level 4 Joined Oct 31, 2010 Messages 100 Helped 12 Reputation 24 Reaction score 12 Trophy points 1,298 Activity points 1,798 DDR (Data Direction Register) is set to 0x00 (all inputs) by default. To make all lines on PORTC outputs, use the following command: DDRC = 0xff;
DDR (Data Direction Register) is set to 0x00 (all inputs) by default. To make all lines on PORTC outputs, use the following command: DDRC = 0xff;
Sep 8, 2011 #3 navenmou Full Member level 4 Joined Sep 25, 2010 Messages 228 Helped 49 Reputation 98 Reaction score 46 Trophy points 1,318 Location Bangalore, India Activity points 2,588 Hi, Once check this link... **broken link removed**
Sep 8, 2011 #4 alexan_e Administrator Joined Mar 16, 2008 Messages 11,888 Helped 2,021 Reputation 4,158 Reaction score 2,031 Trophy points 1,393 Location Greece Activity points 64,371 I like this tutorial it has some nice graphics with a good explanation of port registers