Sonsivri

Electronics => AVR, 8051 Family and ARM Area => Topic started by: Scooter_3D on November 29, 2008, 04:55:20 16:55



Title: Could someone help me please
Post by: Scooter_3D on November 29, 2008, 04:55:20 16:55
I have made this scope clock http://www.jogis-roehrenbude.de/Leserbriefe/Scope-Clock/Scope-Clock.htm (http://www.jogis-roehrenbude.de/Leserbriefe/Scope-Clock/Scope-Clock.htm)
and would like to change the way the clock face looks, what would I need to change in the source files to do this ??
I know nothing about coding and Im not asking for someone to do it for me just point me in the right direction

Thanks



Administrator's Note: Help & Rules board #27
http://www.sonsivri.com/forum/index.php?topic=7494.0
Use clear understandable post subject. Nobody have to read your "I need Help" subjected post.


Title: Re: Could someone help me please
Post by: hagen on November 29, 2008, 08:13:05 20:13
Have a look into
                         scDataGen.c

The routine
             void MakeSimplePtr(char *name, float r1)
takes care of the simple hand

and
             void MakeTriangPtr(char *name, float r1, float r2)
generates the triangle shape hands.

Now change the math according to your specific design.

You need the compiler / assembler package used by the author.

It is a Linux program "Paul's 8031 Assembler" found at
              http://www.pjrc.com/tech/8051/
plus gnu-c.

Run make and the c- source will be compiled by gcc and started.
 
It will generate a set of data for the assembler program.
By redirecting the output into a file ScopeClockData.a51, it generates the
required data for the assembler program scopeclock.a51.

The resulting Hex file has to be "burned" into the chip.
You need to have a specific programmer to  do this.
A simple design is available at the Atmel homepage.

Sounds a bit frightening- but visit the above mentioned page and find a very
sufficient support for the tools required- including the programmer and also for
windows.

If you take an AT89S4051 you can easily program the chip in the system.
Find the info at Atmels homepage.

Wish you a lot of fun


Title: Re: Could someone help me please
Post by: Scooter_3D on December 04, 2008, 02:51:34 14:51
Thanks for your reply now i need to work out how to use them programs in vista