SPI Programming For AVR Microcontrollers

  Рет қаралды 10,985

0033mer

0033mer

Күн бұрын

Пікірлер: 24
@mikesterling3949
@mikesterling3949 3 жыл бұрын
Thank you Sir. Now I feel mighty empowered... A whole lot of SPI devices out there are at my SPI command now !! I cannot thank you enough.
@0033mer
@0033mer 3 жыл бұрын
Glad to help
@ImnotChuck.
@ImnotChuck. 5 жыл бұрын
Another thoughtful instructional video. Very logical and thorough. Thanks.
@0033mer
@0033mer 5 жыл бұрын
Appreciate the feedback Charles.
@ImnotChuck.
@ImnotChuck. 5 жыл бұрын
@@0033mer What version of Forth do you use, and do you use an IDE? I can write a little Basic, but I want to learn something better.
@0033mer
@0033mer 5 жыл бұрын
I use Flashforth for AVR and PIC microcontrollers. There is no IDE, Forth is an onboard operating system and all development is done on the chip itself. Here is the website: flashforth.com/ For ARM and TI MSP430 I use Mecrisp. mecrisp.sourceforge.net/ Both are a free download
@noweare1
@noweare1 5 жыл бұрын
You'd make a great teacher.
@sabirmulla_yt
@sabirmulla_yt 8 ай бұрын
Excellent video
@0033mer
@0033mer 8 ай бұрын
Thanks for the visit
@Steve-oi2qb
@Steve-oi2qb 2 жыл бұрын
Very nice demo and exactly what I need to practice measuring with my Oscope. Is there any chance of getting a copy of this code for the ARDUINO AVR? In the middle of something and prefer not to stop to learn another coding language. Thanks! If not, maybe you could post the code link and I'll use that as a start?
@RobertShaverOfAustin
@RobertShaverOfAustin 5 жыл бұрын
Quite interesting. I definitely like thinking about these kinds of protocols. I've worked with I2C but never SPI. Right away I was thinking how to connect multiple slaves to a single master. I'd need to find out more about how the ^SS works. I see in the Wikipedia article about SPI that multiple slaves can be daisy-chained together. But i don't see the purpose of connecting the ^SS. If the slave ^SS is high (not asserted) then does the slave MISO become tri-state? That is, can I hook several slaves to the master and use the ^SS slave pin (connected to other GPIO pins) to select which slave I want to talk to?
@0033mer
@0033mer 5 жыл бұрын
Yes ..you need a GPIO pin (master) for every slave device you have connected. Only one slave device can be selected at a time by bringing the SS pin low. All the other slaves are in Hi-Z mode (SS pins high) so there is no contention.
@dhanunjayadhanunjaya990
@dhanunjayadhanunjaya990 5 жыл бұрын
hello sir. Thanks for the video. My area of application using ATmega32 microntroller is making the controller to operate in master mode and transfer an array of 79 registers which is of 24-bit long to the slave device which is PLL IC LMX2595. how can I proceed further with respect to programming point of view.
@engineerelectrical7855
@engineerelectrical7855 5 жыл бұрын
Hi, can we program a modem like Sim868 that contains the MCU(MT2503 based on ARM7EJ-S) to program/upload sketch to an atmega328p using ISP/SPI by reading the firmware form an SD card? Think of it like an OTA setup for atmega328p.
@0033mer
@0033mer 5 жыл бұрын
SPI is a serial standard that can read SD cards, and that data can be sent by LORA, Bluetooth, Cellular ... etc OTA to any microcontroller that is programmed to receive that format for programming. kzbin.info/www/bejne/rH6mkH-Dotl5l8U
@M0XYM
@M0XYM 5 жыл бұрын
Appreciated. I2C next?
@0033mer
@0033mer 5 жыл бұрын
I have a few videos featuring the I2C bus. Here is one of them. kzbin.info/www/bejne/eonNoJp9qK-fnrc
@M0XYM
@M0XYM 5 жыл бұрын
@@0033mer Thank you - I should have looked! One of the things I find REALLY helpful is your use of Forth to illustrate the examples. The I2C video mentioned above, although excellent, doesn't show the software. I don't suppose you would consider a sequel with an emphasis on the Forth software with I2C? Thanks again.
@0033mer
@0033mer 5 жыл бұрын
Yes .. there was no software shown in that video. I left it out as there is usually little interest and sometimes complaints.
@evertspies3345
@evertspies3345 5 жыл бұрын
What distance could data be send using SPI.
@0033mer
@0033mer 5 жыл бұрын
SPI was originally design to be used only on a PCB. The reliable distance depends on a number of factors. As the frequency of the SPI clock speed increases the distance will decrease.The type of cable used will also determine a reliable distance. For a ballpark answer I would say do not go longer than 3 meters or 10 feet.
@evertspies3345
@evertspies3345 5 жыл бұрын
@@0033mer Thank you.
@andrewtoogood1429
@andrewtoogood1429 5 жыл бұрын
Was expecting C++ but useful till then
@0033mer
@0033mer 5 жыл бұрын
Yes .. it's not C++ but the three registers used are still relevant and it would be quite easy to configure the desired bits using C++.
I2C Bus Programming On AVR Microcontollers
14:09
0033mer
Рет қаралды 15 М.
SPI: The serial peripheral interface
33:00
Ben Eater
Рет қаралды 698 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 7 МЛН
كم بصير عمركم عام ٢٠٢٥😍 #shorts #hasanandnour
00:27
hasan and nour shorts
Рет қаралды 11 МЛН
Увеличили моцареллу для @Lorenzo.bagnati
00:48
Кушать Хочу
Рет қаралды 9 МЛН
Programming the SMALLEST Chip I've Ever Used
6:12
Low Level
Рет қаралды 20 М.
Understanding SPI
11:50
Rohde Schwarz
Рет қаралды 107 М.
EEVacademy #3 - Bit Banging & SPI Tutorial
17:34
EEVblog
Рет қаралды 71 М.
SPI интерфейс на микроконтроллере. "урок 18"
13:04
Александр Писанец
Рет қаралды 32 М.
AVR 38# Последовательный интерфейс SPI
13:04
Arduino ProMini Bare Metal Programming
14:26
0033mer
Рет қаралды 5 М.
Learning AVR-C Episode 10: Serial Communication (TX)
23:00
humanHardDrive
Рет қаралды 117 М.
Bare-Metal MCU #9 - Review; ATTiny85 from scratch
14:25
Mitch Davis
Рет қаралды 72 М.
Cracking Enigma in 2021 - Computerphile
21:20
Computerphile
Рет қаралды 2,5 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 7 МЛН