查看ATtiny13的源代码
←
ATtiny13
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
=== Upload === ;;Connect FT232R and ATtiny13 look like this: <pre> ------ RESET-|o |- VCC PB3(ADC3)-|ATtiny| -PB2 (SCK) -> DSR 黄 PB4(ADC2)-| 13 | -PB1(MISO) -> CTS 绿 GND-| | -PB0(MOSI) -> DCD 蓝 ------ miso = 3; # D3/CTS sck = 5; # D5/DSR mosi = 6; # D6/DCD reset = 7; # D7/RI </pre> ;;Connect the FTDI chip with the computer ;;Unload the ftdi driver: $ sudo rmmod ftdi_sio ;;Test if avrdude works. Tell it to output the hfuse: <source lang=bash> $ sudo avrdude -cft232r1 -pt13 -P ft0 -U hfuse:r:-:h -B 1 avrdude: BitBang OK avrdude: pin assign miso 1 sck 0 mosi 2 reset 4 avrdude: drain OK ft245r: bitclk 4800 -> ft baud 2400 avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.00s avrdude: Device signature = 0x1e9007 avrdude: current erase-rewrite cycle count is -158 (if being tracked) avrdude: reading hfuse memory: Reading | ################################################## | 100% 0.01s avrdude: writing output file "<stdout>" 0xeb avrdude: safemode: Fuses OK avrdude done. Thank you. # seems to work. Now upload blink2.hex: $ sudo avrdude -cft232r -pt13 -P ft0 -U flash:w:blink.hex -B 1 </source> Now draw RES and the thing will start blinking <br><br>
返回到
ATtiny13
。
个人工具
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面