Search found 1 match

Return

by STibor
Wed Jul 30, 2014 7:04 pm
Jump to forum
Jump to topic

Re: Enabling internal pull-ups on AVR's

Write down the following C code.

Code: Select all

PORTB = (1<<PB7)|(1<<PB6)|(1<<PB5)|(1<<PB4)|(1<<PB3)|(1<<PB2)|(1<<PB1)|(1<<PB0);
(All B port pull up)
And input flowchart pull-up into the port bits.