You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
はじめに 簡単なタスク管理機能と、タイマレジスタによる割り込み管理機能を持つ簡易なリアルタイムOSをRustで自作しました。 Aruduino Unoボードに搭載されるATmega328Pマイコン上で動かすことを想定していますが、https://github.com/Rahix/avr-hal でサポートされているAVRマイコンであれば、ほぼ同様の実装ができそうです。 本記事では環境構築については割愛し、実装の詳細について解説を行いたいと思います。 リアルタイムOSの設計 今回作成したリアルタイムOSは、技術書店13でサークル出展した書籍、cistLT Bookで作成したOS(https://github.com/yud0uhu/ChocottoOS)を、Rustで再実装したものになります。 書籍同様、ITRON4.0仕様に準拠するための五項目をOSの機能要件として定めました。 (a) タ
Arduinoを使わず、自分でマイコンを選定し組込みシステムを実装しようと考えた時に避けて通れないJTAGやSWD。プログラムの書き込みといった初歩的なところを支える技術であるにも関わらずネットにはあまり説明してくれているサイトが無い印象です。またArduinoはなぜJTAG,SWDを使わずに済んだのかについて調べるのにも少し苦労します。そこで「プログラムの書き込み」に関していろいろ調べてみました。 プログラムはどこに格納されるか マイコンの主記憶にはRAM (Random Access Memory)とROM (Read Only Memory)の2つがあり、プログラムはROMに格納されます。 これは RAMは読み込み/書き込みのいずれも高速でできるため、処理中のデータの格納に利用 ROMは書き込みに少し難があるためプログラムなどの読み込み専用のデータの格納に利用 という形で使い分けがさ
ATMEGA328P を Arduino として使うための記事です。 購入 ピンアウト 基本的な配線 ブートローダーを書き込む スケッチを書き込む Blink (単体実行でのLチカ) Arduino っぽいの (Ardupoino) 購入 どこでも購入できます。 AVR マイコン ATMEGA328P-PU (秋月電子) AVR マイコン ATMEGA328P-PU (共立エレショップ) AVR マイコン ATMEGA328P-PU (マルツオンライン) AVR マイコン ATMEGA328P-PU (RS オンライン) ピンアウト ATMEGA328P のピンアウトは以下のようになっています。 See Also: ATMEL 8-BIT MICROCONTROLLER WITH 4/8/16/32K BYTES DATASHEET (Atmel) ATMEGA328 & Arduino
FlashForth is a Forth stamp system implemented on the Microchip 8-bit PIC18F and 16-bit PIC24, 30, 33 and the Atmel Atmega microcontroller families. FlashForth also works on the popular Arduino UNO and MEGA boards. FF (FlashForth) allows you to write and debug complex real-time applications. The complete system including the compiler is executing on the microcontroller. A Forth interpreter, compil
( Wrote a blog post about this here ) It was raining hard, a week ago. And what could you possibly do on a rainy Saturday afternoon? Well... You can make a Forth interpreter/compiler from scratch... ...then put it inside a 1.5$ Blue Pill microcontroller... ...and finally, inside an Arduino UNO... ... within its tiny 2K RAM! Click on the image to watch it blinking the LED of my Arduino: I haven't d
NextThing is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to www.amazon.com. Amazon, Amazon Prime, the Amazon logo and Amazon Prime logo are trademarks of Amazon.com, Inc. or its affiliates. About Us FAQ Contact Us Privacy Policy Terms
皆さんは電子工作でどんなマイコンを使っていますか?Raspberry PI, Arduino, ESP-WROOM-02(ESP8266), ATmega328Pなど色々ありますが、今日はDigiSparkを紹介します。 Digisparkとは DigisparkはUSBに直接挿せるマイコンボードで、USB1.1デバイス(low-speed)になることができます。 このボードにはATTiny85と三端子レギュレータと抵抗などの細かい部品しか乗ってません。片面実装なので裏に何かUSBチップがのってるというわけでもありません。ATTiny85自体にはUSBを直接扱うハードウェア的な仕組みはありませんが、USBプロトコルスタックはソフトウェアスタック(V-USB - A Firmware-Only USB Driver for Atmel AVR Microcontrollers)が使われていま
とにかく小さくて安いのに、ほぼArduinoとして使える。 そしてズボンのコインポケットに入れて持ち歩けるので電車内hackに便利。 Digispark購入ページ DigiSpark wiki ソースコードはここに置いておいた。 デジタル出力・アナログ出力・アナログ入力・Mac上のRubyとのUSB通信を試した。 https://github.com/shokai/digispark-study 「webサービスと連動したちょっとしたハードウェア」にはArduinoはオーバースペックだと思うので、DigiSparkちょうどいいと思う。 普通のArduinoとの違い 詳しくは digispark:tutorials:basics [Digistump Wiki] 多少制限はある。 IOピン数が6本、PCとUSB通信する場合は4本しか無い プログラムを書き込めるメモリ領域が6Kbyteしかない
The bootloader is the code that is pre-programmed on your Digispark and allows it to act as a USB device so that it can be programmed by the Arduino IDE. The Digispark runs the “micronucleus tiny85” bootloader version 1.02, an open source project: https://github.com/micronucleus/micronucleus originally written by Bluebie: https://github.com/Bluebie. CAUTION We are not at this point supporting upgr
Micronucleus is a bootloader designed for AVR ATtiny microcontrollers with a minimal usb interface, cross platform libusb-based program upload tool, and a strong emphasis on bootloader compactness. To the authors knowledge this is, by far, the smallest USB bootloader for AVR ATtiny The V2.0 release is a complete rewrite of the firmware and offers significant improvements over V1.x: Support for the
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く