<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Учебный курс AVR. Работа с SPI модулем. Чтение и запись данных. Ч2</title>
		<description>Discuss Учебный курс AVR. Работа с SPI модулем. Чтение и запись данных. Ч2</description>
		<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html</link>
		<lastBuildDate>Fri, 17 Apr 2026 20:17:07 +0000</lastBuildDate>
		<generator>JComments</generator>
		<atom:link href="https://chipenable.ru/index.php/component/jcomments/feed/com_k2/138.html" rel="self" type="application/rss+xml" />
		<item>
			<title>Vladsh says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-4722</link>
			<description><![CDATA[Всем доброго дня! Имеется устройство на мега16! Питание подал на схему, и на выводах MOSI, MISO, SCK. т.е. с 5-9 ножки есть постоянно+5в, разъясните так должно быть или нет не могу понять! устройство(тайм ер) не включается, признаков жизни не подает, хотя работало раньше!!!]]></description>
			<dc:creator>Vladsh</dc:creator>
			<pubDate>Wed, 20 Jan 2016 13:33:42 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-4722</guid>
		</item>
		<item>
			<title>Александр Бабаков says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-4720</link>
			<description><![CDATA[Добрый вечер ! Спасибо большое за ваши труды !!! Я недавно только начал изучать программировани е и мне сложновато понять объявление типа uint8_t . Могу ли я записать например (char data) вместо (uint8_t data)? И как это может повлиять на работу ?]]></description>
			<dc:creator>Александр Бабаков</dc:creator>
			<pubDate>Wed, 13 Jan 2016 15:55:30 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-4720</guid>
		</item>
		<item>
			<title>kript0n says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-4433</link>
			<description><![CDATA[Я кое-чего не понимаю. Запись данных ведется через MOSI. В коде его определили, как 5 выход на порту B. #define SPI_MOSI 5 Вообще это стандартный MOSI вывод на atmega16. А если я хочу использовать другой вывод, как модуль узнает через какой выход слать данные? Явно это нигде не задается.]]></description>
			<dc:creator>kript0n</dc:creator>
			<pubDate>Sun, 15 Feb 2015 09:31:30 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-4433</guid>
		</item>
		<item>
			<title>alex6441161 says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-4355</link>
			<description><![CDATA[у меня AT90USB162 и ATtiny2313A общаются по SPI. В ATtiny2313A реализован программный SPI. При передаче одного байта все передается норм, а вот при передаче двух байт передается какая-то фигня. Но заметил, если постоянно передавать один и тот же байт, то возвращаться будут все время одни и те же данные, но не те которые послал. Если соединить MOSI и MISO у мастера, то данные отправленные и пришедшие совпадают. Я так понимаю что проблема с ведомым, но в чем именно не могу понять. Может кто подскажет? void USI_init_SPI_S (void)
{ DDR_SPI |= (1]]></description>
			<dc:creator>alex6441161</dc:creator>
			<pubDate>Wed, 03 Dec 2014 13:10:51 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-4355</guid>
		</item>
		<item>
			<title>Master_Gril says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-4335</link>
			<description><![CDATA[Добрый день! Подскажите пожалуйста, если использовать приведённый тут код в авр студио 6, какие библиотеки нужно подключать?]]></description>
			<dc:creator>Master_Gril</dc:creator>
			<pubDate>Mon, 10 Nov 2014 10:28:30 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-4335</guid>
		</item>
		<item>
			<title>Dmitri256 says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-4326</link>
			<description><![CDATA[вместо SPI_DDRX |= (1]]></description>
			<dc:creator>Dmitri256</dc:creator>
			<pubDate>Sun, 26 Oct 2014 13:00:45 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-4326</guid>
		</item>
		<item>
			<title>Dmitri256 says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-4325</link>
			<description><![CDATA[в инициализации не совсем правильно, вместо SPI_DDRX |= (1]]></description>
			<dc:creator>Dmitri256</dc:creator>
			<pubDate>Sun, 26 Oct 2014 12:58:24 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-4325</guid>
		</item>
		<item>
			<title>Слава says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-4081</link>
			<description><![CDATA[Спасибо.... Понял...]]></description>
			<dc:creator>Слава</dc:creator>
			<pubDate>Fri, 09 May 2014 15:05:27 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-4081</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-4079</link>
			<description><![CDATA[http://chipenable.ru/index.php/programming-avr/item/62-10-pravil-programmirovaniya-na-si-predotvraschayuschih-oshibki.html]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Thu, 08 May 2014 09:53:28 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-4079</guid>
		</item>
		<item>
			<title>Слава says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-4066</link>
			<description><![CDATA[Добрый день!!! Не могу понять, а для чего применены "Пользовательск ие типы" uint8_t, почему нельзя было оставить unsigned char???]]></description>
			<dc:creator>Слава</dc:creator>
			<pubDate>Mon, 05 May 2014 12:25:26 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-4066</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-3871</link>
			<description><![CDATA[Исправил. Спасибо.]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Tue, 18 Mar 2014 20:02:39 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-3871</guid>
		</item>
		<item>
			<title>SAnEK_Bo says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-3832</link>
			<description><![CDATA[Здравствуйте. помогите, пожалуйста. Мне нужно Соединить микроконтроллер ATmega8A с пятью драйверами MAX7221 по интерфейсу SPI. Работаю в CVAVR, Proteus ну и на реальном железе. Несколько дней гуглил, сам разбирался, но смог подключить только один такой драйвер. #include #include #define MOSI 3 #define SCK 5 #define SS 2 void Port_init() { DDRB |= (1]]></description>
			<dc:creator>SAnEK_Bo</dc:creator>
			<pubDate>Sun, 23 Feb 2014 16:02:05 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-3832</guid>
		</item>
		<item>
			<title>zloiia says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-3827</link>
			<description><![CDATA[Исправьте, пожалуйста опечатку в описании регистра SPCR. Бит MTSR называется MSTR]]></description>
			<dc:creator>zloiia</dc:creator>
			<pubDate>Thu, 20 Feb 2014 12:16:36 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-3827</guid>
		</item>
		<item>
			<title>den2life says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2853</link>
			<description><![CDATA[Вопрос закрыт]]></description>
			<dc:creator>den2life</dc:creator>
			<pubDate>Thu, 02 May 2013 23:42:48 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2853</guid>
		</item>
		<item>
			<title>den2life says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2852</link>
			<description><![CDATA[привет всем. я прошил мк-просто инициализировал spi, почему на 5 ножке mosi наблюдается 5 вольт. там ведь должно быть 0.]]></description>
			<dc:creator>den2life</dc:creator>
			<pubDate>Thu, 02 May 2013 21:09:56 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2852</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2809</link>
			<description><![CDATA[Нужно читать даташит на эту микросхему. Думаю там есть какой-то формат сообщения. В интернете есть примеры использования этого модуля.]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Fri, 12 Apr 2013 11:55:14 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2809</guid>
		</item>
		<item>
			<title>Иван says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2805</link>
			<description><![CDATA[Привет например я подключил два радио модуля NRF24L01 настроил SPI, записываю данные в SPDR они должны появится в приемнике в том самом регистре, и делай сними все что угодно. Или с радио связью там посложнее?]]></description>
			<dc:creator>Иван</dc:creator>
			<pubDate>Thu, 11 Apr 2013 19:16:09 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2805</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2253</link>
			<description><![CDATA[Есть... "первая программа на си" http://chipenable.ru/index.php/programming-avr/item/2-uchebnyy-kurs-iar-avr-pervaya-programma-na-si.html]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Tue, 04 Dec 2012 19:09:24 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2253</guid>
		</item>
		<item>
			<title>Ренат says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2252</link>
			<description><![CDATA[Блин, я похоже после армии совсем отупел... Есть материал какой нибудь, чтоб все сначала начать?((]]></description>
			<dc:creator>Ренат</dc:creator>
			<pubDate>Tue, 04 Dec 2012 18:47:27 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2252</guid>
		</item>
		<item>
			<title>Артём says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2241</link>
			<description><![CDATA[Смотрите AVR112 - бутлоадер через i2c]]></description>
			<dc:creator>Артём</dc:creator>
			<pubDate>Sun, 25 Nov 2012 14:19:36 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2241</guid>
		</item>
		<item>
			<title>Артём says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2240</link>
			<description><![CDATA[Или так SPI_ReadArray(( unsigned char *)&t, sizeof(t));]]></description>
			<dc:creator>Артём</dc:creator>
			<pubDate>Sun, 25 Nov 2012 14:17:30 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2240</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2232</link>
			<description><![CDATA[Спасибо. Да, планирую. Вопрос времени.. а его как всегда не хватает..]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Wed, 21 Nov 2012 21:18:06 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2232</guid>
		</item>
		<item>
			<title>Mikhail says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2231</link>
			<description><![CDATA[Большое спасибо за такие труды. У вас есть какой-то стиль написания, плюс оформление, которые читать и понимать очень легко. Прошу не изменяйтесь :). И вопрос: у вас планируется разобрать интерфейс I2C и прошивку МК через бутлоадер?]]></description>
			<dc:creator>Mikhail</dc:creator>
			<pubDate>Wed, 21 Nov 2012 16:05:48 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2231</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2229</link>
			<description><![CDATA[Например так.
void SPI_WriteStr(ti me_t *time)
{ SPI_PORTX &= ~(1]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Tue, 20 Nov 2012 20:31:30 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2229</guid>
		</item>
		<item>
			<title>shs says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2227</link>
			<description><![CDATA[Паша подскажи как передать структуру а не массив? typedef struct{	unsigne d char sec;	unsigned char min;	unsigned char hour; } time_t; time_t t; void SPI_Send(time_t *time) { unsigned char num = 3; RTC_SELECT(); while(num--){ SPDR = *time++;//error : incompatible types in assignment // понятно что тип не тот //а как быть не догоняю while(!(SPSR & (1]]></description>
			<dc:creator>shs</dc:creator>
			<pubDate>Tue, 20 Nov 2012 17:03:28 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2227</guid>
		</item>
		<item>
			<title>vovanxp says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2221</link>
			<description><![CDATA[ Пожалуйста, выложите пока на форум.]]></description>
			<dc:creator>vovanxp</dc:creator>
			<pubDate>Mon, 19 Nov 2012 10:29:20 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2221</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2219</link>
			<description><![CDATA[Готового кода у меня нет. Ни разу не решал такой задачи.]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Sat, 17 Nov 2012 18:11:11 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2219</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2218</link>
			<description><![CDATA[Код примеров написал, а до текста никак руки не дойдут. В ближайшее время напишу. Могу проекты на форум пока выложить, если нужно.]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Sat, 17 Nov 2012 18:10:40 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2218</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2217</link>
			<description><![CDATA[Я уже написал код для управления по SPI 7-ми сегментным индикатором подключенным через сдвиговые регистры.]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Sat, 17 Nov 2012 18:09:37 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2217</guid>
		</item>
		<item>
			<title>vovanxp says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2215</link>
			<description><![CDATA[Когда будет третья часть? Жду с нетерпением.]]></description>
			<dc:creator>vovanxp</dc:creator>
			<pubDate>Fri, 16 Nov 2012 12:05:44 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2215</guid>
		</item>
		<item>
			<title>skullhead says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2213</link>
			<description><![CDATA[позвольте высказать пожелание в продолжение темы-не могли бы вы в качестве примера реального применения SPI привести работу управляемой светодиодной ленты.и пример простой,и весьма прикладной)]]></description>
			<dc:creator>skullhead</dc:creator>
			<pubDate>Wed, 14 Nov 2012 07:16:52 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2213</guid>
		</item>
		<item>
			<title>foxit says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2207</link>
			<description><![CDATA[Можно помочь разве что ссылками. http://www.ermicro.com/blog/?p=1050 http://www.rocketnumbernine.com/2009/04/26/using-spi-on-an-avr-1 http://www.rocketnumbernine.com/2009/05/12/using-spi-on-an-avr-2 http://www.rocketnumbernine.com/2009/07/03/using-spi-on-an-avr-3]]></description>
			<dc:creator>foxit</dc:creator>
			<pubDate>Sun, 11 Nov 2012 16:09:29 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2207</guid>
		</item>
		<item>
			<title>Zliva says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2204</link>
			<description><![CDATA[Очень нужна связка двух АВР через СПИ с контролем получения/отпра вки данных. Срочно!!!]]></description>
			<dc:creator>Zliva</dc:creator>
			<pubDate>Sat, 10 Nov 2012 13:27:58 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2204</guid>
		</item>
		<item>
			<title>megannnn98 says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2193</link>
			<description><![CDATA[спасибо большое]]></description>
			<dc:creator>megannnn98</dc:creator>
			<pubDate>Fri, 02 Nov 2012 09:06:38 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2193</guid>
		</item>
		<item>
			<title>foxit says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2178</link>
			<description><![CDATA[Жду продолжения!]]></description>
			<dc:creator>foxit</dc:creator>
			<pubDate>Thu, 25 Oct 2012 03:56:24 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2178</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2177</link>
			<description><![CDATA[Да, есть.]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Wed, 24 Oct 2012 21:43:30 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2177</guid>
		</item>
		<item>
			<title>Сергей says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2176</link>
			<description><![CDATA[Точно, нашел. А i2c есть в планах?]]></description>
			<dc:creator>Сергей</dc:creator>
			<pubDate>Wed, 24 Oct 2012 04:34:54 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2176</guid>
		</item>
		<item>
			<title>Pashgan says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2173</link>
			<description><![CDATA[Так на сайте есть пример для Nokia 3310 и Motorola C350. Я планирую написать про сдвиговый регистр, цап (или ацп), а потом еще про flash память at45db.]]></description>
			<dc:creator>Pashgan</dc:creator>
			<pubDate>Tue, 23 Oct 2012 18:38:39 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2173</guid>
		</item>
		<item>
			<title>Сергей says:</title>
			<link>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2172</link>
			<description><![CDATA[Респект! Ждем продолжения, желательно с каким-нибудь дисплеем от мобильного.]]></description>
			<dc:creator>Сергей</dc:creator>
			<pubDate>Tue, 23 Oct 2012 06:50:24 +0000</pubDate>
			<guid>https://chipenable.ru/index.php/programming-avr/138-avr-spi-module-part2.html#comment-2172</guid>
		</item>
	</channel>
</rss>
