forked from blakewford/simavr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
examples: Working i2c master test board
Write a few bytes to an i2c eeprom, read them back... Signed-off-by: Michel Pollet <[email protected]>
- Loading branch information
Showing
5 changed files
with
30 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
This contains a sample program to demonstrate the use of simavr | ||
using 'custom' code, and own "peripherals". It shows how it is | ||
possible to "hook" code to the AVR pins, and also how to make | ||
"peripherals" and also hook them up to AVR pins. | ||
|
||
This demo demonstrate how to write a i2c/twi "peripheral" and hook it to | ||
an AVR, and then run a firmware that behaves as a TWI "master" to talk to it. | ||
|
||
The code uses a generic i2c "eeprom" were the AVR writes some bytes, | ||
then read them again. The AVR code is based on the Atmel reference | ||
implementation, with quite a few changes to make it more functional. | ||
|
||
Thid "board" doesn't use opengl, the eeprom will display what the | ||
transactions are. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters