Fab Academy 2016 Week08

Week08: embedded programming (Mar 16)

Assignments

read a microcontroller Data sheet
program your board to do something, with as many different programming languages
and programming environments as possible

Read data sheet

First time, I checkd the piouts of all.
But I could not understand them.
So I thought that it is better to leran from block diagram.
I could understand the allocation of logical for the Attiny44.
But I need to learn more about the ATtiny and ATmega.
Because I make the flight controler for my final project.
I continue to learn the Attiny
I learned the SPI about MOSI,MISO,SCK.

Circuit using

  • W4 Hello.ISP board
  • W6 Hello-world board
  • Connection

    These are connected to PC.
    Hello.ISP board is connected to PC for data writing.
    Hello-world board got the power from PC.
    but this Hello-world board did not work.
    therefore I checked the circuit. "+" and "-" were shoted.
    I tried to repaire circuit. but could not it.
    Then I made the Hello-world board again.
    This circuit is not connect with "+" and "-".
    I stored Hello.ftdi.44.echo.c. to new one.
    It was successed to do.
    However I could not understand C langage.
    I proceed to learn it.

    Re-make

    This board is new one.
    It is not shoted with "+" and "-".
    First time, I install Neil's Cfile.
    It could be installed to circuit!

    This circuit have LED(PA7) and Button(PA3).
    I add below line to Neil's file.
    ---------------------------
    #define led_port PORTA
    #define led_direction DDRA
    #define led_pin (1 << PA7)
    ---------------------------
    void blink() {
    static int i;
    i = 0;
    while(i < 10) {
    set(led_port, led_pin);
    led_delay();
    clear(led_port, led_pin);
    led_delay();
    i++;
    ---------------------------
    blink();
    ---------------------------
    But this file is not work....
    C.file

    I am lerning the C now.

    Back to home