Hello there, i want to use a 32bit microcontroller for my project and for that i need to get a 32 bit mcu from atmel.
i am currently using arduino uno etc but i was wondering how can i use my sensors like DS1820 for temperature sensing or water flow meter because i know for them to use in arduino i need libraries but i was wondering if those libraries can work in atmel studio with 32bit mcu too ?
And if i can't use them then what can be the alternative ?
Libraries normally works with Atmel Studio but must be written for specific controller, e.g. UNO (ATmega328P) and OneWire - no problem. Which specific 32 bit MCU?
zainbintariq:
i know for them to use in arduino i need libraries but i was wondering if those libraries can work in atmel studio with 32bit mcu too ?
And if i can't use them then what can be the alternative ?
Libraries are only a convenience. You do not need them if you are prepared to dig through datasheets and spend time on development.
A library is nothing more than some (or a lot of) C/C++ code written by somebody who had a need for it. If a library does not work with Atmel Studio, you can use an existing Arduino one as a guideline to develop your own code. This might not always be easy, depending on your level of experience; and will definitely cost time.
zainbintariq:
Hello there, i want to use a 32bit microcontroller for my project and for that i need to get a 32 bit mcu from atmel.
i am currently using arduino uno etc but i was wondering how can i use my sensors like DS1820 for temperature sensing or water flow meter because i know for them to use in arduino i need libraries but i was wondering if those libraries can work in atmel studio with 32bit mcu too ?
32bit mcu and your UNO have a different architecture so it's almost impossible to use an arduino library for the 32bit mcu. But if you really want to use it not with Arduino IDE, study the lib and porting it to any IDE you want. It's not easy task but give you a deep understanding.
So basically i need to make my own library for everything if i move to 32bit mcu, and by 32bit i mean any AVR 32 bit mcu.
but for that i need high level expertise in programming and electronics.
i know its a dumb question but is there any book or material from where i can learn about library making? Google is good too but i need some newbie starting material etc
any help would be appreciated !
No - many lib's will work on just about any cpu. Some however are written in such away that they will only work on one cpu - eg it works one the Uno bit not the Mega.
Get rid of the idea that if there is not a lib you can't do it.
The main things to look out for are direct port manipulation and size of data ( how big is an int?).