#avr Logs

Aug 15 2020

#avr Calendar

08:43 AM Miyu is now known as hackkitten
12:09 PM Miyu is now known as hackkitten
02:11 PM [b]enis is now known as strata
04:46 PM TechChristoph: I' learn C right now
04:46 PM TechChristoph: which part of C is important to programm avr's?
04:49 PM matrixstorm: hi
04:49 PM matrixstorm: what do you mean with "part"
04:49 PM matrixstorm: you need to know about basic C
04:49 PM TechChristoph: Bitmanipulation?
04:50 PM TechChristoph: pointers?
04:50 PM matrixstorm: knowing about basic C is foundation
04:50 PM matrixstorm: it helps to know about your platform but alos how platform independent code (aka preprozessor) works
04:50 PM TechChristoph: yeah
04:51 PM TechChristoph: maybe assembly ?
04:51 PM matrixstorm: inline assembly is plattform dependen
04:51 PM matrixstorm: hat little to do with c
04:51 PM cehteh_: you can do a lot w/o knowing assembly
04:52 PM TechChristoph: I don't know it yet
04:52 PM TechChristoph: maybe after C
04:52 PM matrixstorm: yes but primary task of C/compilers in general
04:52 PM cehteh_: also pointers you should understand them, and then not use them if possible :D
04:52 PM matrixstorm: is to have some assembly generator
04:52 PM matrixstorm: you need the basic
04:52 PM matrixstorm: numerical systems
04:52 PM matrixstorm: endianesses
04:53 PM matrixstorm: data types
04:53 PM TechChristoph: so most of the commands i will see in the datasheets of the concerned microcontroller right ?
04:53 PM matrixstorm: often not
04:53 PM cehteh_: kindof but you need to understand what you are doing
04:53 PM matrixstorm: the appnotes are better
04:53 PM cehteh_: datahseets name addresses/symbols and so
04:54 PM matrixstorm: datasheet only show excerp
04:54 PM cehteh_: rarely they have examples
04:54 PM TechChristoph: ok, for now i know how to play around with leds
04:54 PM cehteh_: and those examples focus on single things but might be impractical because you want to integrate things into sometihng bigger, handle errors etc
04:54 PM TechChristoph: but to play around with serial-data or with a lcd is a big thing
04:55 PM cehteh_: just start, programming needs practice
04:55 PM TechChristoph: with arduino everything was a bit easier :-)
04:55 PM cehteh_: µC is a bit special sometimes contrary to nromal programming
04:55 PM TechChristoph: but i want to look under the hood
04:56 PM cehteh_: feel free to dissect my OS and improve it :DDDDD
04:56 PM cehteh_: well look at non-arduino examples
04:56 PM TechChristoph: cehteh_, what kind of oS you have ?
04:57 PM cehteh_: the source of the avr-libc .. certainly not an easy thing but worth a look
04:57 PM cehteh_: https://git.pipapo.org/?p=muos;a=tree;h=3461046dd6cd29f8969adf7aff963f82e9c00efa;hb=3461046dd6cd29f8969adf7aff963f82e9c00efa
04:57 PM cehteh_: https://muos.pipapo.org/
04:58 PM cehteh_: i'll push a big update soon
04:59 PM cehteh_: but i think its a bit to advancved for a beginner
05:00 PM TechChristoph: cehteh_, i think so
05:00 PM cehteh_: https://git.pipapo.org/?p=battswitch.git;a=blob;f=src/battswitch.c;h=fc295f5d018cefcd325a24aaf903aed2345b1eae;hb=3b61d151623630cf010709df981ac1d31f74b2f1
05:00 PM cehteh_: take a look at that
05:01 PM cehteh_: i once made that to show it for a friend as well, thus its even somewhat good documented in the source
05:01 PM TechChristoph: oh more user friendly for me :-)
05:01 PM TechChristoph: that one i can nearly understand
05:02 PM cehteh_: lipo battery watchdog which turns the load off when discharged or overcurrent/power
05:02 PM cehteh_: yeah i tried to make it simple and understandable
05:03 PM TechChristoph: maybe i can add a little bit to it
05:03 PM cehteh_: thats not really used anymore, but left for educational purposes
05:03 PM TechChristoph: sure
05:04 PM cehteh_: https://public.pipapo.org/Battswitch2.png
05:04 PM cehteh_: bit ugly render :)
05:04 PM TechChristoph: eagle-files ?
05:04 PM cehteh_: friend rendered it in eagle, i did it on kicad
05:06 PM TechChristoph: i know kicad
05:07 PM cehteh_: nowadays i would make the circuit different
05:13 PM TechChristoph: i figure it out
11:25 PM day_ is now known as day