For this week I work in the serial bus asynchronous.
For do the PCB boards I use the png files (bridge and node x 2) availabele in the week Networking and Communications.
The Neil´s serial bus asynchronous example use three boards:
For program the boards I use the Arduino as a ISP. This is simple to program with Arduino IDE. the following images show the basic configuration:
With the Arduino running as a ISP and the boards ready, I load separately , in each board (node 1, node 2 and bridge), the blink´s Arduino examplae using Arduino IDE, with the purpose of test the Arduino as a ISP and the boards, and it looking good...
The diagram of connections between the Arduino as a ISP and the boards looks like that:
Once the Arduino is ready to work as a ISP, I began with the process for load the serial bus asynchronous program ( hello.bus.45.c and makefile) in the microchips of the boards: bridge x 1 and nodes x 2...
The software support for flash chip using c file and makefile (I install these files):
Then, I open a new directory and add the Makefile and hello.bus.45.c and:
make hexThen, the features configuration of the avrdude for load the .hex files in the chip (in the command prompt to, in the file´s directory):
avrdude -P com4 -c stk500v1 -b 19200 -p t45 -U flash:w:hello.bus.45.c.hex
Test the board:
sudo python term.py/dev/ttyusb0 9600