Example won't work - need some help to get right entry

General discussion on mikroBasic PRO for AVR.
Post Reply
Author
Message
Vin-Jordan
Posts: 1
Joined: 12 Feb 2014 10:56

Example won't work - need some help to get right entry

#1 Post by Vin-Jordan » 12 Feb 2014 11:49

Hello together, (german)

i got an ATxmega128a1 vom mikroelektronika. But my model ist an earlierer revision. Round about 2011. The Chips is still exactly the same.
I want to get the right entry into this topic and failed on some steps.

My Steps:
1. I downloaded the mikroBasic for AVR.
2. I followed the steps on the Start Page till Step 4.
During the building of the source code i got this error message:

Code: Select all

4 303 Identifier "DDRA" was not declared LedBlinking.mbas
4 303 Identifier "DDRA" was not declared LedBlinking.mbas
4 304 Syntax error: Expected "end" but "DDRA" found LedBlinking.mbas
4 304 Syntax error: Expected "." but "=" found LedBlinking.mbas
0 102 Finished (with errors): 12 Feb 2014, 11:18:51 LedBlinking.mbpav
In the guided steps they use the ATMEGA16. So i think the syntax is in the atxmega128a1 not implented.
It would really help me, when some of you can give me tips, where i can get some exaples (like this with LED (because i got some right here)) an a list with all the commands i can execute on the atxmega128a1.

As i said: I am a beginner in this things and really want to learn it.
I hope you can help me.
Thanks a lot.

Best regards!

User avatar
marina.petrovic
Posts: 2986
Joined: 18 Apr 2013 08:11

Re: Example won't work - need some help to get right entry

#2 Post by marina.petrovic » 13 Feb 2014 16:30

Hi,

Like you already mention, the LedBlinking example from compiler is written for some other microcontroller (ATMEGA32),
you need to adjust the example for microcontroller that you use - ATxmega128A1.

You need to take a look at ATxmega128A1 datasheet to see which registers you need to use:
http://www.atmel.com/Images/Atmel-8067- ... asheet.pdf

Also, you can take a look at the examples from compiler written for ATxmega128A1:
...\mikroBasic PRO for AVR\Examples\Internal MCU modules\ATxmega128A1

Best regards,
Marina

Post Reply

Return to “mikroBasic PRO for AVR General”