Towards re-illuminating my kitchen workspace...
Towards re-illuminating my kitchen workspace...
Meet Rachel - Geolocation SPAM
Meet Rachel - Geolocation SPAM
Name the part
First on-site test for LED lights in the kitchen
PWM again...
Sugruized fingers
Black sugru - still sticky
Sugru - Shelf life expired
Black sugru is in much better shape
Sugru - Shelf life expired
Fixed saddle
Sugru - Shelf life expired
Sugru - Shelf life expired
worn out saddle
Wonders of technology
Something new every day
Kitchen lighting perfboard prototype
3 of these just failed
Kitchen lighting perfboard prototype
3 of these just failed
Kitchen lighting perfboard prototype
Tiny2313 header kit - by tinkerlog
Looking for a hoodlum
Tiny2313 header kit - by tinkerlog
Tiny2313 header kit - modded
Tiny2313 header kit - front focused
Tiny2313 header kit - rear focused
Just some serial I/O with labview
The new arduino forum - load test
PTouch 1000 - brains
Label printer - printing head
Label printer - printing head
Label printer - printing head
Label printer - printing head
Printing head - loose tape
Printing head - tape pressed down
IKEA Sunnan - PCB top
IKEA Sunnan - PCB bottom
IKEA Sunnan - schematic
IKEA Sunnan - LED / quiescent current
Happy New Year 2011
Comparison: LED / CFL - end
Comparison: LED / CFL - start
See also...
Keywords
Authorizations, license
-
Visible by: Everyone -
All rights reserved
-
494 visits
ATtiny2313 - USI SPI master


Well it works, but I had teething problems. Running an ATmega168 as SPI master was much easier.
The datasheet has two USI SPI master examples (assembler), only one works for me, after translating that to C. The first example loops until the USIOIF flag is set. The 2nd example just toggles the clock line and shifts the data - at least that is what it should do. I couldn't get that to work. And I'm not talking about simple bit-banging, but still using the USI module, but telling it when to toggle the clock line and when to shift the data in USIDR etc.
I also need to investigate further about the clock sources for the USI module/counters. I got confused about them.
And the worst thing: My old Textronix 314 scope lost one of its pushbuttons today. I need to fix that either with glue or sugru. Unfortunately its one of the channel select buttons. Heavy usage.
The datasheet has two USI SPI master examples (assembler), only one works for me, after translating that to C. The first example loops until the USIOIF flag is set. The 2nd example just toggles the clock line and shifts the data - at least that is what it should do. I couldn't get that to work. And I'm not talking about simple bit-banging, but still using the USI module, but telling it when to toggle the clock line and when to shift the data in USIDR etc.
I also need to investigate further about the clock sources for the USI module/counters. I got confused about them.
And the worst thing: My old Textronix 314 scope lost one of its pushbuttons today. I need to fix that either with glue or sugru. Unfortunately its one of the channel select buttons. Heavy usage.
- Keyboard shortcuts:
Jump to top
RSS feed- Latest comments - Subscribe to the comment feeds of this photo
- ipernity © 2007-2025
- Help & Contact
|
Club news
|
About ipernity
|
History |
ipernity Club & Prices |
Guide of good conduct
Donate | Group guidelines | Privacy policy | Terms of use | Statutes | In memoria -
Facebook
Twitter
Sign-in to write a comment.