Datasheet

4.3 A simple BASCOM-AVR implementation for the ATtiny25/45/85
The BASCOM-AVR BASIC compiler [12] for Windows is available free of charge
10
. While
Atmel Studio [7] and WinAVR [24] are certainly capable of the task (utilizing the C/C++
languages), Atmel Studio requires Micorosoft Visual Studio as a back-end, resulting in a
rather comprehensive software package.
The BASCOM-AVR IDE/compiler requires only some 50 MB of disk space and
runs considerably faster than Atmel Studio on old-fashioned computers. While the in-
cluded BASCOM-AVR documentation is comprehensive enough, please note the exis-
tence of additional text resources such as [17] and [16].
As it seems, it is only necessary to program a simple
11
microcontroller with a pro-
gram capable of the following tasks:
Prepare the microcontroller for SPI operation.
When detecting that the console wants to communicate (CS/SS line pulled low):
Detect and respond to the return chip status command.
Detect and respond to the return security register command.
This can all be achieved quite easily with the BASCOM-AVR compiler. Program
listing 1 refers, including a 128-byte security register which was once posted to the
WXForum.net discussion forum [19].
4.4 A different BASCOM-AVR implementation for the ATtiny85
The BASCOM-AVR program shown in code listing 2 is based on the algorithm de-
scribed by WXForum.net user watson [21] in late 2013. The program will provide a
random device ID and generate the corresponding security register values. Due to
memory (SRAM) requirements, this implementation is not suitable for the ATtiny25
MCU.
The actual implementation has been successfully tested with an original FW version
3.00 VP2 console and the ATtiny85 MCU.
10
In the free/demo version, a program size limit of 4 kB applies consider obtaining a full version
license, it’s a useful software product which deserves some support.
11
”Simple” as in as simple as possible, i.e. at the lowest possible cost.
http://meteo.annoyingdesigns.com 18