A place to exchange information about parts and kits supplied by http://kitsandparts.com
You are not logged in.
Hello'
I received a frequency counter kit today and I am looking forward to putting it together. Before I do so, however, I want to try to understand the program better. At the moment I have a two questions related to this.
Firstly, when I look at the appendix to part 3 of the article regaring the frequency counter there is an include file for the ATtiny2313. This file defines a high byte stack pointer SPH that is not in the data sheet for this part. Usually when I write a program I just start with, for example, .include "tn2313def.inc." Am I correct in assuming that the include file in the appendix makes the same assignments as "tn2313def.inc" with the addition of a definition of SPH so that a ATtiny2313 can be used with the frequecy counter program that requires SPH?
Secondly, before the kit arrived I did a little experimenting with the program and I tried to load it into a chip using an Atmel Dragon and Atmel Studio 4.18, but I was not successful. There may have been a number of reasons why it did not work but I wonder if anyone else has used a Dragon to load and test the program and, if so, what the result was. I am really hoping that I will be able to use the debug functions of the Dragon and Studio 4 to work through the program so as to understand it.
Thank you for any assistance with these questions and for a really nice learning project.
73,
Allen, VE7BQO
Offline
Hi Allen,
The SPH is just the high byte of the stack pointer and is defined as a memory location (register).
73, Diz, W8DIZ
Offline