Programming the SMALLEST Chip I've Ever Used

  Рет қаралды 21,235

Low Level

Low Level

Күн бұрын

Пікірлер: 56
@Cptnbond
@Cptnbond 3 жыл бұрын
I really likes your "low level made simple" approach without overly complicated setups with IDE's but just an editor and a terminal. You really inspire one to experiment with more bare metal pgm. Will try this. Cheers.
@LowLevelTV
@LowLevelTV 3 жыл бұрын
Wow, thanks!
@amulyaraychaudhuri5989
@amulyaraychaudhuri5989 Ай бұрын
i will fixes your grammars
@MrMatthijsr
@MrMatthijsr 3 жыл бұрын
Man I can't say how well your content compliments my CS major, I just wish more people were here to appreciate it!
@LowLevelTV
@LowLevelTV 3 жыл бұрын
Thanks bro! The channel is growing, if that makes you feel better! :D
@hashomi0596
@hashomi0596 2 жыл бұрын
Finding your channel is like hitting gold. Thank you for such great videos.
@sparky173j
@sparky173j 2 жыл бұрын
The AT tiny series are great for small tasks. The one without RAM is extra fun to program, as the CPU registers are pretty much the only memory you have.
@kylefaust7743
@kylefaust7743 2 жыл бұрын
Your videos and bare metal programing skills are both off the charts. This is exactly what I was looking for. I have an Arduino Uno and I have been learning to program with it but I wanted to know if it was possible to program chips individually instead of just keeping to the board. What you just showed us was incredible and I have been reading and trying to grasp hardware for the last 2 years. This gives me a greater understanding than I ever had on programs, chips, systems and this was a 6 minute video.
@LowLevelTV
@LowLevelTV 2 жыл бұрын
Glad you enjoyed, thanks for watching!
@misterbee4574
@misterbee4574 Жыл бұрын
I like that you speak in a quick and easy to understand manner. I should be able to follow your tuts. with ease and it helps I have basic understanding already of all of this. Thank you.
@acerIOstream
@acerIOstream 2 жыл бұрын
I love the little "Activate Windows" in the corner
@edgeeffect
@edgeeffect 2 жыл бұрын
I've been REALLY enjoying this channel. If you're talking about stuff I don't know you make it sound easy... If you're talking about stuff I do know, it's still interesting enough for me to listen along and chuck in a comment or two. ......... Great subject matter, really well presented! For a lot of my projects, I use the ATTiny24... it's got a bit more GPIO than the 45/85 (usually "just enough") but it's still not as "huge" ;) as an ATMega328. ATTiny2313 is a nice one too It's got a bit more GPIO than the 24 (but no ADC).
@LowLevelTV
@LowLevelTV 2 жыл бұрын
Glad you’re enjoying the videos!
@tuxcode7344
@tuxcode7344 2 жыл бұрын
Nice! I really like how I've never found how I can specify a different CPU speed in Arduino IDE (it seems you need to change configuration files and what not) and here it's just a simple F_CPU definition passed to the compiler. I may end up forgetting about ArduinoIDE and switch to this way
@goodeveningtech700
@goodeveningtech700 3 жыл бұрын
Awesome video! Short and simple.
@CallousCoder
@CallousCoder 3 жыл бұрын
I love this little chip. Well actually it’s bigger brother ATTiny85 I personally program them in assembler because it’s functionality is so limited :) but useful chip.
@LowLevelTV
@LowLevelTV 3 жыл бұрын
That's smart, 4K flash isn't a ton of room. I'll probably do a video on AVR assembly with this chip in the coming weeks
@CallousCoder
@CallousCoder 3 жыл бұрын
@@LowLevelTV cool! I’ll subscribe, I see we do similar things and have similar interests.
@LowLevelTV
@LowLevelTV 3 жыл бұрын
@@CallousCoder subbed back. I see your channel is fairly new, good luck and have fun!
@CallousCoder
@CallousCoder 3 жыл бұрын
@@LowLevelTV yeah I started a month ago, with beating the world record on 100M Dash :) and since I have so many smallish projects and ideas and sometime, I’m between projects taking a little sabbatical, it gives me some time to make those videos. My HornyBox mark 1 (uses the ATTiny85) the video about the mark 2 is all C++ on a Pi zero. I don’t know how many videos I will make, when I’m back in the daily grind though :) My bigger project is actually this: instagram.com/p/CMunoMunpU3/? a programming game. The NodeJS VS C++ performance test is actually for this programming game.
@montpierce424
@montpierce424 3 жыл бұрын
@@LowLevelTV Straight C is hard to beat. Have the compiler output ASM for you, and then see if you can optimize it? Unless you really really like assembly.. I've tried in the past, but always found C's code already pretty well optimized. But, on the other hand, I'm not an assembly expert... so I'm sure others can do better than I...
@montpierce424
@montpierce424 3 жыл бұрын
Cool video. Thanks. "_BV(DDB3)" is the same as (1
@LowLevelTV
@LowLevelTV 3 жыл бұрын
For the purpose of this video I didnt want to dive too deep on bitmasking and thought the macro looked a bit cleaner. Also I think you mean ^= for the toggle ;) Thanks for watching and commenting bro!
@NormanNodDunbar
@NormanNodDunbar 3 жыл бұрын
Writing a 1 to a bit in the PINx register will toggle the corresponding pin. No need to ^=. Works on the AtMega328 as well. Cheers, Norm.
@LowLevelTV
@LowLevelTV 3 жыл бұрын
@@NormanNodDunbar Wow I was not aware of the PINX register, today I learned!
@NormanNodDunbar
@NormanNodDunbar 3 жыл бұрын
@@LowLevelTV sorry, too used to AtMega328. It has a few PIN registers, AtTiny just has PINB (as you know!) -- I should have typed PINB rather than PINx. My bad. Cheers, Norm.
@montpierce424
@montpierce424 3 жыл бұрын
@@LowLevelTV Nope. I wrote what I meant (copy-n-pasted from an actual program). When you write a bit to "PINB", it's not the same as writing to the PORTB. In the datasheet, you will see that writing bits to PINB SFR tells it to "toggle" the bit(s). :)
@GCKteamKrispy
@GCKteamKrispy 2 жыл бұрын
Hmm, very interesting. I like your funny words, magic man
@LowLevelTV
@LowLevelTV 2 жыл бұрын
Thanks! 😃
@triularity
@triularity 2 жыл бұрын
A few years ago, I was playing around with a ATTiny13.
@Sheltieist
@Sheltieist 7 ай бұрын
Thanks for this video, If I understand it correctly, this is what I'm looking for. I'm looking to make my own lighting kits for model making, setting up lights to go on and off to make an effect. So once I program a chip accordingly, I can make a small board, solder items in place and place it in a model. Is that correct? I know I will have to be doing the math to get the right power source for the lights to to be lit.
@m1geo
@m1geo Жыл бұрын
At 3:37 you're all like "just blindly trust me" and then at 3:41 you're exiting "int main()" with no return value! You charlatan 😂😂😂 your ruse is up! 😉😂 Seriously though. Nice demo!
@Atmatan
@Atmatan 9 ай бұрын
Teach me how to write raw hexadecimal assembly code on AVRs please.
@somakantamajumder5408
@somakantamajumder5408 3 жыл бұрын
Led running forward and reverse code video please
@int16_t
@int16_t 3 жыл бұрын
Since you're working with chips, shouldn't the return of main is void?
@LowLevelTV
@LowLevelTV 3 жыл бұрын
Good catch! You're right, main in an embedded system should be a procedure and not a function.
@embeddedbastler6406
@embeddedbastler6406 3 жыл бұрын
Would you like to do a video about simple AVR bootloaders?
@GCKteamKrispy
@GCKteamKrispy Жыл бұрын
Where do you write C code? Vim?
@fnax
@fnax 3 жыл бұрын
Great tutorial but when i try to program attiny45 i got avrdude: AVR device initialized and ready to accept instructions avrdude: Device signature = 0x000000 (retrying) avrdude: Device signature = 0x000000 avrdude: Yikes! Invalid device signature. avrdude: Expected signature for ATtiny45 is 1E 92 06 avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed To disable this feature, specify the -D option. avrdude: erasing chip avrdude: reading input file "blink.hex" avrdude: input file blink.hex auto detected as Intel Hex avrdude: writing flash (1238 bytes):
@LowLevelTV
@LowLevelTV 3 жыл бұрын
Probably has to do with the connection or baud rate. The 0x0000000 device signature reads like a voltage issue
@barunbasnet
@barunbasnet 3 жыл бұрын
There was no external crystal connected, however the clock speed was set to 1MHz. Does that mean the Atiny has an internal clock set to that frequency?
@LowLevelTV
@LowLevelTV 3 жыл бұрын
Yup! The AtTiny45/85 have internal clocks tunable up to 20 MHz.
@thisisnotok2100
@thisisnotok2100 2 жыл бұрын
This chip has some ROM memory set aside in it, and you're interfacing with those pins using the adurino? Am I following this correctly?
@arindammajumder7781
@arindammajumder7781 3 жыл бұрын
If i use 2000 pixel led programming then what is the steps
@somakantamajumder5408
@somakantamajumder5408 3 жыл бұрын
Led chaser code please
@bob-ny6kn
@bob-ny6kn 2 жыл бұрын
"It's"
@przemekbundy
@przemekbundy 2 жыл бұрын
Hello. you are using a modern development environment. a to run the code. you are using dos-era commands. what's the point of that? greetings.
@KenJackson_US
@KenJackson_US 2 жыл бұрын
What advantage does a cumbersome IDE provide?
@Henry-sv3wv
@Henry-sv3wv 2 жыл бұрын
Huh? Oh, you mean the bash terminal and vim or neovim, it's what the cool Linux and Mac kids use: kzbin.info/www/bejne/i17SnnSCjK51pdU
@metamud8686
@metamud8686 2 жыл бұрын
That's not a 470 ohm resistor, it's a 1k.
@garymazzataz9350
@garymazzataz9350 Жыл бұрын
its not the smallest, try the attiny10
@MD-vs9ff
@MD-vs9ff 2 жыл бұрын
8 pins? Wimp. Call me when you've used a 6-pin chip.
@Henry-sv3wv
@Henry-sv3wv 2 жыл бұрын
attiny10 ben hack XD
rust runs on EVERYTHING (no operating system, just Rust)
18:10
Low Level
Рет қаралды 368 М.
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Troubleshooting Trane Defrost Control Board
55:34
Ideal Conditions
Рет қаралды 1,5 М.
This is the BEST Board to Learn RISC-V Assembly.
17:52
Low Level
Рет қаралды 90 М.
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
477 Use the very attractive new ATTINY chips for your projects
14:34
Andreas Spiess
Рет қаралды 218 М.
Bare-Metal MCU #9 - Review; ATTiny85 from scratch
14:25
Mitch Davis
Рет қаралды 77 М.
Why C is so Influential - Computerphile
10:50
Computerphile
Рет қаралды 1,9 МЛН
UPDI Programming an ATmega4808
13:09
Kakushin
Рет қаралды 15 М.