Author Topic: Microcontrollers  (Read 7709 times)

Siekmanski

  • Member
  • *****
  • Posts: 2289
Re: Microcontrollers
« Reply #15 on: November 22, 2018, 12:41:33 PM »
Yes, I use AVR Studio Ver 4.18.716

What kind of projects have you done?
Creative coders use backward thinking techniques as a strategy.

felipe

  • Member
  • *****
  • Posts: 1323
  • Eagles are just great!
Re: Microcontrollers
« Reply #16 on: November 22, 2018, 01:13:06 PM »
Not one yet, i'm beginning to learn. But this time i won't quit. I will try to master a little bit this programming art.  :icon_mrgreen:
Felipe.

felipe

  • Member
  • *****
  • Posts: 1323
  • Eagles are just great!
Re: Microcontrollers
« Reply #17 on: November 22, 2018, 01:18:53 PM »
Btw i think the least number, i.e. x.xx.716 is the build number of that version of the avr studio. I can't remember now what version i installed (i mean what build number). It took me a while to find this version because i was looking the version 4 (because i'm learning with a book that uses this version). But i wasn't sure if a version like 4.x.xx was the indicated. Also there are a lot of other versions. I don't have the link of the archive with all those version (which are all free if i recall correctly). But i know it was from a microchip page.
Felipe.

Siekmanski

  • Member
  • *****
  • Posts: 2289
Re: Microcontrollers
« Reply #18 on: November 22, 2018, 01:31:09 PM »
Good luck, it will be a lot of fun.  :t
Which book are you learning from?
Creative coders use backward thinking techniques as a strategy.

AW

  • Member
  • *****
  • Posts: 2583
  • Let's Make ASM Great Again!
Re: Microcontrollers
« Reply #19 on: November 22, 2018, 02:08:20 PM »
I have used Atmel Studio 7 to make programs in ASM and C, mostly in C, and build them directly to Arduino boards. The advantage is twofold:
1- You don't have to mess with soldering irons which can be frustrating for a software-only guy. Arduino boards are not very expensive, some clones are even less expensive but may not be 100% compatible.
2- You don't have to use Arduino IDE which uses a very high-level sort of C++ which remembers Microsoft Foundation Classes and don't let you know what happens behind the scenes.

daydreamer

  • Member
  • *****
  • Posts: 1323
  • building nextdoor
Re: Microcontrollers
« Reply #20 on: November 22, 2018, 10:31:56 PM »
Microcontroller is fun,we had oldest intel 8008 cpu,250khz ,many clock cycles for simple operations,first learn and final projects was make something with help of microcontroller+ electronics,some made vectorgraphics game connecting two da converters to x,y inlets on oscilloscope
Its more fun to optimize on slow microcontroller,because each clock cycle matters much more than on a modern 3+ghz multicore
Assembler <-> digital electronic circuits is twoway
Wonder if two da converters,transistor controlling voltage-> analog /digital 16bit resolution could produce a MUL circuit?
Quote from Flashdance
Nick  :  When you give up your dream, you die
*wears a flameproof asbestos suit*
Gone serverside programming p:  :D
I love assembly,because its legal to write
princess:lea eax,luke
:)

felipe

  • Member
  • *****
  • Posts: 1323
  • Eagles are just great!
Re: Microcontrollers
« Reply #21 on: November 22, 2018, 11:15:16 PM »
The book name is: "Some assembly required. assembly language programming with the avr microcontroller ". I think is pretty good  :icon14:.
Btw i found the arm arquitecture very interesting  :icon14:. Also there are a lot of books teaching you the assembly language of an arm microcontroller/processor  :icon14:. I like that arm is used in many know devices, like phones, smartphones, tablets and even the raspberry pi  :icon14:. But what i found frustrated is that i couldn't find no one free and reliable assembler for it nor and IDE (mainly because the need for a simulator/debugger) with assembler for it. Keil tools looks great but they are not free  :(. I must suppose that an arm microcontroller is more expensive too  :redface:.
Anyway first i will be coding and learning the assembly for the microcontrollers that i found interesting and that count with a free assembler/simulator/debugger environment. I then, when i can (i'm truly poor right now  :redface:) i will buy all that is needed to donwload the code to a real microcontroller  :icon_mrgreen:.
Felipe.

daydreamer

  • Member
  • *****
  • Posts: 1323
  • building nextdoor
Re: Microcontrollers
« Reply #22 on: November 23, 2018, 01:07:54 AM »
Felipe,there was earlier a great ARM coder that made 3d game on a 180mhz arm device
Maybe he knows some assembly,maybe there is one cross assembler that can take different opcode data for different cpus

Me going to try the tool I and most are skilled with and make macros for opcodes: the great macro assembler we have here
Quote from Flashdance
Nick  :  When you give up your dream, you die
*wears a flameproof asbestos suit*
Gone serverside programming p:  :D
I love assembly,because its legal to write
princess:lea eax,luke
:)

AW

  • Member
  • *****
  • Posts: 2583
  • Let's Make ASM Great Again!
Re: Microcontrollers
« Reply #23 on: November 23, 2018, 01:42:33 AM »
By far and large the best ARM compiler is the ARM Keil. For learning purposes and knowing we have some limitations on the project allowed size (I think 32KB, but I am not updated on this) it is a free compiler, otherwise it is a very very expensive one. The alternative is the gcc/eclipse route which is much more difficult to tackle with. However, ARM is not as fun as AVR, much less documented which makes it more difficult to learn and with much more families and variations with a significantly higher price. And  trying to embrace it without some background is a pure suicide. Both the Keil and GCC support ASM but it is not intensively used nowadays because microprocessors are faster and have more memory than in the old days.

daydreamer

  • Member
  • *****
  • Posts: 1323
  • building nextdoor
Re: Microcontrollers
« Reply #24 on: November 23, 2018, 03:57:42 AM »
Z80 assembler and emulator free AW?
I found some dead links, I need emulator because I don't want total car
crash/ restore whole TI calculator all the time
Maybe good idea to share tiny add/ bitshift etc snippets for all who end up with assembly programming cpu with limitations like no div,mul,sqrt, no fpu etc share those mul,div... Snippets between us
Quote from Flashdance
Nick  :  When you give up your dream, you die
*wears a flameproof asbestos suit*
Gone serverside programming p:  :D
I love assembly,because its legal to write
princess:lea eax,luke
:)

AW

  • Member
  • *****
  • Posts: 2583
  • Let's Make ASM Great Again!
Re: Microcontrollers
« Reply #25 on: November 23, 2018, 04:36:55 AM »
Searching for Z80 emulator on google reveals some URLs, but I have not checked them up. May you can refine your search.

felipe

  • Member
  • *****
  • Posts: 1323
  • Eagles are just great!
Re: Microcontrollers
« Reply #26 on: November 23, 2018, 08:04:02 AM »
I think aw that you are exaggerating with the difficulty for the arm assembly programming. Also there are good books around and in keil page are good documentation too. The problem with the keil's tools is that i don't know if they support the microcontroller/processor that i want to program.  :idea:
Felipe.

AW

  • Member
  • *****
  • Posts: 2583
  • Let's Make ASM Great Again!
Re: Microcontrollers
« Reply #27 on: November 23, 2018, 09:04:08 AM »
Quote
The problem with the keil's tools is that i don't know if they support the microcontroller/processor that i want to program
Keil belongs to ARM.  :badgrin:

Quote
I think aw that you are exaggerating with the difficulty for the arm assembly programming
All right, good luck then.

felipe

  • Member
  • *****
  • Posts: 1323
  • Eagles are just great!
Re: Microcontrollers
« Reply #28 on: November 23, 2018, 09:16:51 AM »
@aw:
Of course i know that.
And i will continue with arm someday, probably...

As you said there are a lot of families and variations, so i don't know if keil supports what i want...Is not that hard anyway  :idea:
Felipe.

felipe

  • Member
  • *****
  • Posts: 1323
  • Eagles are just great!
Re: Microcontrollers
« Reply #29 on: November 23, 2018, 12:49:47 PM »
Siekmanski the build version of the avr studio that i have is the 684. So is not the same as you use. Btw, do you like to define (.def) the registers to some name? Like in .def temp =r17. I don't. But i think is ok to equate (.equ) the input/ouput registers, because they are named like literal numbers: like 0x17. So using .equ PORTB =0x17 seems ok to me. What do you think?  :idea:
Felipe.