1.4 KiB
FG004_A(Triac Testing)
Description
This embedded firmware is the testing mode for the triac software.
It causes the attiny404 to generate pulses continuously, which are delayed
by a value configured in the config.h
file.
The timing is done after the PZC(positive zero crossing) of the AC input waveform.
Micro Controller Pins
ATtiny404
- VDD(+5v)
- PA4(ADC_LOAD1)
- PA5(ADC_LOAD2)
- PA6(ADC_LOAD3)
- PA7(zerocrossing)
- PB3(G2)
- PB2(G3)
- PB1(SDA)
- PB0(SCL)
- RST(NC)
- PA1(G1)
- PA2(NC)
- PA3(NC)
- VSS(GND)
key NC:: Not Connected PBX:: Port B pin X PAX:: Port A pin X RST:: Reset pin
Project Layout
Documentation that has been generated is inside the docs folder which contains the html output that can be browswed via your regular web browser.
PDF genreation from the doumentaiton is also possible if enabled through the
Doxyfile
inside the projects root directory.
The build directory contains the output and makefiles genrerated automatically when using CMake.
This build directory also holds the bin files genreated along with the hex and elf files.
Build Requirements
- AVR-GCC toolchain OR XC8 from microchip.
- Make OR CMAKE
- avrdude
- A AVR programmer, usbasp for older chips and UPDI for newer ones.
Dev Requirements
- ATtiny404 series micro-controller
- AVR-GCC toolchain.
- Cmake
- cpputest(Unit testing harness.)
- Doxygen(For documentation)
- Git(For version control)