Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help compiler program desired

Status
Not open for further replies.

dani333

Junior Member level 1
Joined
Jan 18, 2011
Messages
16
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
1,408
The program is part of a micro ...!!
What is compiled with the program to compile?

#include "macros.h"
#include "iom8v.h"

/*********************************************************/
/* P R O T O T Y P E */
/*********************************************************/
void Delay(int del);
void Timer1_CompA(void);
void Note(unsigned char N1,unsigned char N2,unsigned char Time);
void Song(const unsigned char *Ptr);
void main(void);

/*********************************************************/
/* D E F I N E */
/*********************************************************/
#define TRUE 1
#define FALSE 0

#define A2 57 // 220hz
#define A2d 60 // 233hz
#define B2 64 // 247hz
#define C2 68 // 262hz
#define C2d 72 // 277hz
#define D2 76 // 294hz
#define D2d 80 // 311hz
#define E2 85 // 330hz
#define F2 90 // 349hz
#define F2d 96 // 370hz
#define G2 101 // 392hz
#define G2d 107 // 415hz

#define A3 114 // 440hz
#define A3d 120 // 466hz
#define B3 128 // 494hz
#define C3 136 // 523hz
#define C3d 144 // 554hz
#define D3 152 // 587hz
#define D3d 160 // 622hz
#define E3 170 // 659hz
#define F3 180 // 698hz
#define F3d 192 // 740hz
#define G3 202 // 784hz
#define G3d 214 // 830hz

#define N0 0
#define T1 1
#define T2 2
#define T3 3
#define T4 4
#define T5 5
#define T6 6
#define T7 7
#define T8 8
#define T9 9

/*********************************************************/
/* C O N S T A N T */
/*********************************************************/
// SineTable
const unsigned char SineTable[256] = {133,136,139,142,
145,149,152,155,
158,161,164,167,
169,172,175,178,
181,184,186,189,
192,194,197,200,

*********************************************************************************************************************************************************************************

What compiler program ؟
What is the name of the compiler program?

---------- Post added at 23:43 ---------- Previous post was at 22:58 ----------

help me
pleas

---------- Post added 01-02-11 at 00:47 ---------- Previous post was 31-01-11 at 23:43 ----------

very important to me ...!!
 

aaaahhhhh after so many years someone has dugup an old program...

the header file iom8v_h is an header file for ATmega8 header file for * ImageCraft ICCAVR compiler .

In ICCAVR the file for ATmega8 is called iom8v.h and for the ATmega32 it is iom32v.h and it usually is included in the beginning of the file.

Code:
#include <iom8v.h>

It should be something similar in AVR GCC. Changing the target in the make file isn't enough at least not in ICCAVR
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top