help with tiny85 SPI pinout
good afternoon all, im (lol)
ok, got code nick g. compile , load onto tiny85.
my situation understanding pinouts cause nothing working through spi function. (3wire spi)
i can seperate code ss pin go high/low know buttons work. can not mcp41100 respond testing on led.
my pinouts follows:
my mcp pinout tiny85
1 - cs (ss tiny85 d3) 8 - vcc
2 - sck (tiny85 d2) 7 - pot gnd
3 - si (tiny85 d0) 6 - wiper (to test led)
4 - gnd 5 - pot input (+5v)
code setup in nick's namespce:
// +-\/-+
// reset ain0 (d 5) pb5 1| |8 vcc
// clk1 ain3 (d 3) pb3 2| |7 pb2 (d 2) ain1 sck / usck / scl
// clk0 ain2 (d 4) pb4 3| |6 pb1 (d 1) pwm1 miso / do
// gnd 4| |5 pb0 (d 0) pwm0 mosi / di / sda
// +----+
const byte di = 0; // d0, pin 5 data in
const byte do = 1; // d1, pin 6 data out (this *not* mosi)
const byte usck = 2; // d2, pin 7 universal serial interface clock
const byte ss = 3; // d3, pin 2 slave select
am not seeing doing wrong? emailed nick , comment says pinouts match code
i need brains fix please cause im bald , want learn need fix.
let me know if copy of sketch needed
ok, got code nick g. compile , load onto tiny85.
my situation understanding pinouts cause nothing working through spi function. (3wire spi)
i can seperate code ss pin go high/low know buttons work. can not mcp41100 respond testing on led.
my pinouts follows:
my mcp pinout tiny85
1 - cs (ss tiny85 d3) 8 - vcc
2 - sck (tiny85 d2) 7 - pot gnd
3 - si (tiny85 d0) 6 - wiper (to test led)
4 - gnd 5 - pot input (+5v)
code setup in nick's namespce:
// +-\/-+
// reset ain0 (d 5) pb5 1| |8 vcc
// clk1 ain3 (d 3) pb3 2| |7 pb2 (d 2) ain1 sck / usck / scl
// clk0 ain2 (d 4) pb4 3| |6 pb1 (d 1) pwm1 miso / do
// gnd 4| |5 pb0 (d 0) pwm0 mosi / di / sda
// +----+
const byte di = 0; // d0, pin 5 data in
const byte do = 1; // d1, pin 6 data out (this *not* mosi)
const byte usck = 2; // d2, pin 7 universal serial interface clock
const byte ss = 3; // d3, pin 2 slave select
am not seeing doing wrong? emailed nick , comment says pinouts match code
quote
i note pinouts not agree @ code. have:
> mcp pinout
> 1 - cs (ss tiny85 d3) 8 - vcc
> 2 - sck (tiny85 d2) 7 - pot gnd
> 3 - si (tiny85 d0) 6 - wiper
> 4 - gnd 5 - pot input
my code:
// atmel attiny45 / arduino
//
// +-\/-+
// reset ain0 (d 5) pb5 1| |8 vcc
// clk1 ain3 (d 3) pb3 2| |7 pb2 (d 2) ain1 sck / usck / scl
// clk0 ain2 (d 4) pb4 3| |6 pb1 (d 1) pwm1 miso / do
// gnd 4| |5 pb0 (d 0) pwm0 mosi / di / sda
// +----+
pins 5, 6, 7 used spi , cannot changed @ whim. these hardware registers.
i need brains fix please cause im bald , want learn need fix.
let me know if copy of sketch needed
hi aes92000
what physical pins (from 1
using on attiny, , how connected pot?
and please post latest version of code.
thanks
ray
what physical pins (from 1

and please post latest version of code.
thanks
ray
Arduino Forum > Using Arduino > Microcontrollers > help with tiny85 SPI pinout
arduino
Comments
Post a Comment