pull-up when using portlevel mode

19 views
Skip to first unread message

YannickF

unread,
Nov 22, 2009, 11:18:03 AM11/22/09
to avrub
Hi

I have spent a lot of time searching why my bootloader always started.
Actually, I have configured the bootloader to start when a port pin is
set to 0. So, a jumper is connected between this pin and the ground.

But there is no pull-up resistor activated in the code.... so, the pin
level isn't determined when the jumper isn't connected. (Randomly,
sometimes it's a 1, often it's a 0... and the bootloader starts even
if it's not desired)

I added a line in the source code for activating the pull-up resistor
on thispin and everything works fine now.

--
YannickF.
http://www.yannickf.net/

shaoziyang

unread,
Nov 22, 2009, 8:17:36 PM11/22/09
to avrub
Hi,

After reset, in normal condition, all io pin will be input mode with internal pull up enable.

But if you jump to bootloader from your application, io pin maybe other mode. In this case, you need add some code to make sure it will be input mode with internal pull up resistor.

>
>--
>
>You received this message because you are subscribed to the Google Groups "avrub" group.
>To post to this group, send email to av...@googlegroups.com.
>To unsubscribe from this group, send email to avrub+un...@googlegroups.com.
>For more options, visit this group at http://groups.google.com/group/avrub?hl=.
>
>



09年新晋3D主流网游《天下贰》,网易六年亿资打造
Reply all
Reply to author
Forward
0 new messages