Ensuring Technical Readiness For Copilot in Microsoft 365
How to write code in Attiny10
1. How to write code in
Attiny10
Yoshinobu Tanno
2019/08/16
http://ytanno.herokuapp.com/
2. What is Attiny10 ?
• Small Microcontroller
Data sheet 7p
http://ww1.microchip.com/downloads/en/De
viceDoc/atmel-8127-avr-8-bit-microcontroller-
attiny4-attiny5-attiny9-attiny10_datasheet.pdf
3. For writing code :
1. wiring between AVR Mark II and Socket of Attiny10
SCK
PB3
VCC
PB2
PB0
GND
PB1
MISO RESET
VCC GND
Connection
AVR Mark II <-> Attiny10 <-> Outer
MISO <-> PB0
SCK <-> PB1
RESET <-> PB3
VCC <-> VCC <-> 5v
GND <-> GND <-> GND
4. For writing code :
2. Make code using Atmel Studio 7
• Atmel Studio 7 -> New Project -> GCC C++ Executable Project ->
Device Selection (Attiny10) -> make code -> Build -> Build Solution
5. For writing code :
3. writing code in Attiny10 using Atmel Studio 7
• Device Programming -> Memories -> Click Program Button
6. Tip
1. PB3 has reset role. If PB3 is overwritten by I/O role, we cannot write
code using basic method in Attiny10. If PB3 is inputted 12v, PB3
may recover reset role (I don’t evaluate it)
https://www.avrfreaks.net/forum/12v-tpi-programmer
2. Reference of useful code sample
http://www.technoblogy.com/show?1YQY