#avr Logs

Sep 18 2017

#avr Calendar

12:35 AM day__ is now known as daey
12:45 AM habeangur: hi, I want to make a serial programmer, I've found 2, one in electronics-diy.com and another one in avrprogrammers.com.which one to make?
12:49 AM _ami_: habeangur, make this one instead. :) https://hackaday.io/project/21189-fastusbasp-programmer-for-avr
12:50 AM _ami_: i think i should provide hex file
12:50 AM _ami_: instead of telling people to compile and generate hex.
12:54 AM habeangur: _ami_: but that's USB, not serial
12:57 AM _ami_: habeangur, what!! :P
12:58 AM _ami_: it does connect to AVR via serial bus which is SPI
12:58 AM _ami_: it connects with host on usb.
12:59 AM habeangur: _ami_: but those circuits is electronics-diy and avrprogrammers are serial port programmers
12:59 AM _ami_: habeangur, oh, for those stone age serial ports.
12:59 AM _ami_: meh!
01:00 AM _ami_: does modern PCs have those ugly serial ports anymore?
01:03 AM habeangur: _ami_: my problem is that my PC is not too ancient to have one of those parallel ports nor it's too modern to not have one of those serial ports
01:03 AM habeangur: it has USB ports but serial programmers seem easier and faster to build
01:04 AM habeangur: and if I wanted a usb programmer I could order for a low price
01:05 AM _ami_: ok, understood.
01:16 AM habeangur: well I have a USB programmer
01:34 AM habeangur: but that's one those non-standards and closed source drivers are available just for Windows
01:37 AM _ami_: habeangur, that sucks!
01:40 AM habeangur: yes yes
03:45 AM day_ is now known as daey
04:46 AM polprog: _ami_: Mine had a header for serial :P i installed the port just for shits an giggles :P
05:24 AM habeangur: polprog: mine has a header for parallel
05:25 AM polprog: whatever it has. just dont go paralell. it will save you a lot of trouble
05:25 AM polprog: besides, do you already have a programmer?
05:41 AM dgriffi2: what kind of programmer are you two ta;king about?
05:42 AM Emil: usbasp get
05:45 AM dgriffi2: I use a USBtinyISP
05:45 AM Emil: That's fine, too
05:50 AM polprog: habeangur wants to build a programmer. it would be funny if it turned out he cant flash it :P
05:50 AM polprog: yo dawg, heard you like programmers
05:57 AM _ami_: i have to make my smart humidifier before winter starts here!
05:57 AM _ami_: i heard its freezing cold, -18C :/
05:57 AM _ami_: sometimes
07:18 AM Lambda_Aurigae: habeangur, I have a 2 year old motherboard with serial and parallel ports...can still get new ones, even i7 boards with them...just gotta look..
07:18 AM Lambda_Aurigae: habeangur, as for serial programmers, there are many out there but they are mostly alike.
07:19 AM Lambda_Aurigae: I still use my stk200 parallel port programmer more than all the others I have combined.
07:28 AM Lambda_Aurigae: I find my parallel port programmer to be the most stable and least problematic of all of them.
07:28 AM Lambda_Aurigae: have had a little problem with the avr910 serial port programmer on one machine that had low voltage on the serial port.
07:28 AM habeangur: Lambda_Aurigae: even less than usbasp?
07:28 AM Lambda_Aurigae: usbasp,,,,*shudder*,,,worst programmer I have.
07:29 AM Lambda_Aurigae: works on 4 out of 5 computers that come through here.
07:29 AM Lambda_Aurigae: maybe 3 out of 4.
07:29 AM habeangur: no longer I'm making a serial port, I broke something and I'm too lazy to re-solder it
07:29 AM Lambda_Aurigae: some computers they work on some usb ports and not others.
07:30 AM Lambda_Aurigae: usbasp uses v-usb bitbanged usb and it breaks and bends some usb rules...
07:30 AM habeangur: Lambda_Aurigae: no idea, if there is a standard which all computers and designers follow it, so what is the problem?
07:30 AM Lambda_Aurigae: what standard?
07:30 AM Lambda_Aurigae: usb?
07:30 AM Lambda_Aurigae: HAHAHAHA!
07:30 AM Lambda_Aurigae: riiight.
07:30 AM Lambda_Aurigae: there is a base standard for usb...several actually...
07:31 AM habeangur: Lambda_Aurigae: or more generally, standars about ports and protocols
07:31 AM Lambda_Aurigae: v-usb is a hack to make chips without usb hardware talk on usb.
07:31 AM Lambda_Aurigae: serial ports,,rs232, specifically, is supposed to be +/-12V
07:31 AM Lambda_Aurigae: I've seen some go down as far as +/-7V
07:32 AM Lambda_Aurigae: parallel ports just work so long as you don't try to pull power from them.
07:32 AM habeangur: standards*
07:33 AM Lambda_Aurigae: standards are just guidelines that most manufacturers try to follow.
07:33 AM habeangur: but not all of them, right?
07:33 AM Lambda_Aurigae: they are often close.
07:33 AM habeangur: +/-7V?computers or programmers?
07:34 AM Lambda_Aurigae: port...on the computer.
07:34 AM day__ is now known as daey
07:34 AM Lambda_Aurigae: you should be able to measure +12 and -12 volts on that serial port depending on whether the bit output is low(0) or high(1)
07:35 AM Lambda_Aurigae: the avr910 serial programmer I built dropped the voltages too low for the one laptop serial port and wouldn't communicate.
07:35 AM Lambda_Aurigae: worked great on all the others.
07:35 AM habeangur: laptop serial port?the laptop seems so old!
07:36 AM Lambda_Aurigae: I have one here...3 year old i5...with serial port
07:36 AM Lambda_Aurigae: also have several with portable docks that have both serial and parallel ports.
07:36 AM Lambda_Aurigae: they are still made..you just have to look for them.
07:37 AM Lambda_Aurigae: I just added a pcie serial/parallel board to my dual xeon server/workstation.
07:39 AM Lambda_Aurigae: x86 bioses still support them...lots of hardware and software out there needs them...there is CNC gear out there that is running 15 to 20 year old software that likely will never be upgraded...
07:40 AM Lambda_Aurigae: I know of one, 12 meter tall vertical lathe that's run via parallel port and 20 year old software.
07:40 AM Lambda_Aurigae: you can chuck an SUV into that sucker and turn it!
07:41 AM Lambda_Aurigae: the manufacturer stopped supporting it 10 years ago but it still works and this particular company uses it constantly...it does the job and just works.
07:41 AM Lambda_Aurigae: anyhoo,,,time to go to worky.
08:23 AM polprog: https://www.youtube.com/watch?v=s-YbuBmFBQY
08:26 AM day__ is now known as daey
08:30 AM Emil: lol
08:39 AM Lambda_Aurigae: habeangur, just a heads up...usb-serial adapters in general will not work with those avr910 based serial port programmers...you have to have either a full serial port or a usb-serial adapter that implements all the control lines(which most don't)
08:39 AM Emil: polprog: do you know the original song?
08:40 AM polprog: Emil: yeah
08:42 AM Lambda_Aurigae: oh..there's audio on that youtube...doesn't come across the teamviewer connection.
09:44 AM day__ is now known as daey
10:14 AM JanC_ is now known as JanC
11:12 AM habeangur: Lambda_Aurigae: thanks, my computer has a serial port, no need to usb-serial adapter
11:12 AM habeangur: I really don't want to enter electronics
11:12 AM habeangur: well my heart says yes, my brain refuses
11:13 AM habeangur: and currently my brain is controling me
11:13 AM habeangur: hehe
11:22 AM Emil: habeangur: stop
11:22 AM Emil: seis
11:22 AM Emil: vaarantava virhe
11:22 AM Emil: if your serial port is a real rs-232 you can't just use that with avrs
11:24 AM polprog: virhe = error
11:24 AM polprog: huh, a new word
11:25 AM polprog: :P
11:25 AM antto: HAAAALT
11:25 AM polprog: habeangur: do you have a working programmer ?
11:49 AM Emil: polprog: you knew vaarantava already?
12:12 PM polprog: Emil: no, but i remember virhe
12:12 PM polprog: vaarasomething is too hard for me :P
12:12 PM polprog: also google translate ftw
12:13 PM Lambda_Aurigae: Emil, he has, I assume anyhow, links to serial interfaced programmers.
12:13 PM Emil: haha :D
01:26 PM Cracki_: usb-serial adapters with control signals: I know of at least one that gives 6V and all the lines, from digitus
01:29 PM Cracki_: works with optoisolated serial cables (for multimeters) and an ancient space mouse. all those feed from some of the control pins.
01:30 PM polprog: i have a cp2102 which works wonders for me on linux. You just need to find a board which has all the control pins broken out
01:30 PM polprog: great ttl uart dongle
01:31 PM Cracki_: one needs to be aware that there's usb -> ttl uart -> rs232 levels
01:31 PM polprog: yes, uart =/= rs232
02:00 PM Cracki_ is now known as Cracki
02:38 PM enh: hi
02:40 PM enh: I just fixed my iphone with two pieces of rubber
02:40 PM enh: Had to disassemble it 6 times, though
02:42 PM enh: Off topic, I know. Sorry.
02:44 PM Emil: Was the issue the display touch thing you talked about previously?
02:45 PM enh: Yep. I followed the ifixit guide and removed the motherboard
02:45 PM enh: then placed a piece of thick insulating rubber tape over the touch ic and closed it again. Just to keep the pressure over the IC
02:46 PM enh: But the display cable seems to be broken somewhere too
02:47 PM enh: I had to disassemble it again, this time switched on, and pressed from connector to lcd pannel inside, until I found the bad contact point. There I placed another thick piece of insulating tabe.
02:47 PM enh: Now I have the touch sensor and the screen back.
02:47 PM enh: Amazing.
02:51 PM enh: cehteh: The COMmunications module is running at about 300Hz now.
02:51 PM enh: Telemetry coming at around 1Hz.
02:51 PM enh: Amazing performance improvement.
02:51 PM enh: Danke.
02:55 PM cehteh: heh
02:55 PM cehteh: i bet you can optimize you code and plenty other places too
02:58 PM Tom_itx is now known as Tom_L
02:58 PM cehteh: and i bet you must, else the thing will never fly
02:58 PM enh: Now its time for the cherry over the cake. The control laws.
02:59 PM cehteh: your cherrys are melons :D
03:00 PM enh: Melons, then.
03:00 PM cehteh: :)
03:00 PM enh: 300 Hz update is a lot.
03:00 PM enh: Data is being transfered between modules at this rate
03:00 PM enh: More than enough for a stable flight
03:01 PM cehteh: depends on the size of the copter, i think thats barely enough, you rather want 1khz
03:02 PM cehteh: maybe you split these rates, some things (IMU sensors) send at much higher frequency (control loop freq)
03:02 PM cehteh: others things at lower frequency to give some headroom
03:03 PM enh: Good idea
03:03 PM enh: increasing clock to 16MHz can also help
03:03 PM cehteh: baraometer for example would be ok at 50hz, control input (stick movement on a TX) should be ok at 50-100hz
03:03 PM cehteh: oh you dont do that already?
03:03 PM enh: 8Mhz
03:03 PM enh: 3.3V
03:03 PM cehteh: wow lol :D
03:03 PM cehteh: go for 16mhz
03:04 PM enh: The datasheet says 16MHz needs 5V
03:04 PM cehteh: then 5V
03:04 PM Emil: Go for arm
03:04 PM enh: sensors are 3.3V
03:04 PM enh: Yep. ARM is probably the option
03:06 PM cehteh: arm is a complete different beast tough
03:06 PM Lambda_Aurigae: pic32
03:06 PM cehteh: DMA and stuff
03:06 PM Lambda_Aurigae: pic32 has that
03:06 PM enh: I have many ATMega328p here. If anybody is interested...
03:06 PM Emil: Lambda_Aurigae: seis
03:06 PM Emil: Lambda_Aurigae: vaarantava virhe
03:06 PM Lambda_Aurigae: sorry, don't speak whatever language that is.
03:06 PM Emil: enh: what package?
03:07 PM Emil: Wait, you were in Brazil :D
03:07 PM Emil: Dem shipping costs doe
03:07 PM enh: Shipping costs are low
03:07 PM cehteh: on the oder side he has multiprocessing so 8 cores running at 8mhz could do the trick .. when he learns how to program them efficiently
03:07 PM enh: customs costs are high
03:07 PM enh: I also have a few RN131Gs
03:08 PM Emil: Aren't those arm rf socs?
03:09 PM enh: Emil, TQFP32
03:09 PM Emil: enh: how much per piece?
03:09 PM Emil: Correction: how much with shipping to Funland
03:10 PM enh: I paid 3.05 per piece.
03:10 PM enh: Shipping should be around 30 dollars. I must check it.
03:10 PM Emil: holyshitwtf
03:10 PM Emil: :D
03:10 PM Emil: 3.05 dollaroos?
03:10 PM enh: How much does it cost now?
03:11 PM enh: They were bought in 2012.
03:11 PM enh: Current mouser price is 2.07
03:12 PM enh: Amazing performance improvement.interested in RN131G too?
03:12 PM enh: Original from Roving networks
03:12 PM enh: Dunno what that "amazing performance improvement" came from
03:14 PM enh: But, A cehteh said, STM32, or PIC32, are other beasts.
03:18 PM Emil: Any 32-bit arm, really
03:18 PM Emil: Kinetis, STM32, LPC...
03:18 PM enh: Lambda_Aurigae: PIC32 comes in LQFP48 packages?
03:19 PM enh: Is it expensive?
03:19 PM enh: STM32f303CC is almost 6 dollars
03:20 PM enh: Emil: I have like 150 ATMega328ps here.
03:20 PM Emil: enh: I paid 42.82/26=1.64692308€ per piece for Atmega328PB-MN
03:20 PM Emil: So dat 3.05 for opened product :D
03:20 PM cehteh: first of all learn more efficient programming, datastructures, algorihms etc
03:21 PM cehteh: when your code is exponential complex then even a faster stm32 wont help you
03:21 PM Emil: cehteh: sure it will if you have small enough data ":D"
03:25 PM Lambda_Aurigae: enh, depends on the chip...haven't looked for that package exactly.
03:27 PM Lambda_Aurigae: guess the price all depends on what features you need.
03:29 PM Lambda_Aurigae: different pic32 chips are available anywhere from under 2 dollars to over 10...and in everything from 28pin dip to 169bga
03:29 PM enh: i will, cehteh. No big changed before this thing flies.
03:29 PM enh: changes
03:30 PM polprog: pic32 is one of not many (if not the only one) 32-bit micro available in dip
03:30 PM polprog: i should get into pics
03:30 PM enh: My baby daughter is a disassembler. She is 1.2 years old, but opens anything she put her hands into. Now she is trying to dismount my printer.
03:30 PM polprog: i began like that too
03:31 PM polprog: i took apart my first laptop after it dies
03:31 PM polprog: died*
03:31 PM Emil: polprog: seis
03:31 PM Emil: VAARANTAVA VIRHE
03:31 PM enh: what is that?
03:31 PM Emil: If you want to transition from AVRs
03:31 PM Emil: go to ARMs
03:31 PM polprog: enh: he said critical error
03:31 PM Emil: I almost fell for pics but then I saw the darkness lurking in the shadows
03:33 PM enh: I like my arms.
03:33 PM Emil: polprog: hmm, actually it's rather hard to translate that to a short English equivalent
03:34 PM Emil: "Critically endangering error" would probably fit
03:34 PM polprog: "Endangerinf error: kek
03:34 PM polprog: it sounds even more stupid in polish
03:34 PM Emil: :D
03:35 PM enh: In german it would be like a-horrible-thing-will-happen-if-you-do-not-do-something-to-correct-the-problem
03:36 PM Emil: yes
03:36 PM Emil: that's a good one
03:36 PM Emil: but it's rather long
03:36 PM Emil: but it encapsulates the idea
03:36 PM Emil: into English
03:37 PM Lambda_Aurigae: I don't like 8bit or 16bit pic chips.
03:37 PM enh: ein-schreckliches-Ding-wird-passieren-wenn-du-tun-nicht-tun-etwas-zu-korrekt-das-Problem
03:37 PM Lambda_Aurigae: but the pic32 is not a pic core..it's a mips core with pic peripherals.
03:38 PM enh: I should google mips core.
03:39 PM Lambda_Aurigae: https://en.wikipedia.org/wiki/MIPS_architecture
03:39 PM Lambda_Aurigae: it's one of those licensable cores like ARM
03:41 PM enh: very interesting
03:41 PM enh: Thanks
03:43 PM Lambda_Aurigae: a much better processor core than the standard pic
03:45 PM Lambda_Aurigae: Emil, to translate your VAARANTAVA VIRHE into something my generation of americans would understand,,,,"Danger Will Robinson!" the Robot
03:47 PM Emil: Haha D:
03:47 PM Emil: :D*
03:48 PM Emil: But that's too positive ;)
03:48 PM Emil: Like the danger is still out there
03:48 PM Emil: In the distance
03:49 PM Lambda_Aurigae: but, often the robot saw the danger and nobody else did and they all just walked into the alien trap...over and over and over...
03:53 PM Cracki: mipsen and their pipelines... up to 3 or 4 instructions after a branch are still executed
03:56 PM cehteh: enh: if it flies, then ok
04:47 PM DaRkV0rt3X: Good night
04:47 PM DaRkV0rt3X: I'm HelloShitty from the antenna analyser project
04:48 PM DaRkV0rt3X: I had to change my nick because there are some channels that don't allow me to use it
04:48 PM DaRkV0rt3X: I have a problem, a new one, with my uC, AtMega328p
04:49 PM cehteh: wtf channels are that :D
04:49 PM DaRkV0rt3X: I found out that my DDS module is, all of a sudden, outputting a DC wave
04:49 PM DaRkV0rt3X: and I was trying to configure the DDS module again
04:50 PM DaRkV0rt3X: but seems that I can't send the configuration to the DDS module via my AtMega328p
04:50 PM DaRkV0rt3X: cehteh: several channels
04:50 PM DaRkV0rt3X: there is one that banned the nickname
04:50 PM DaRkV0rt3X: #hackvana
04:51 PM DaRkV0rt3X: I think in #python I have also been asked to change
04:51 PM cehteh: sounds lame
04:51 PM DaRkV0rt3X: yeah
04:52 PM DaRkV0rt3X: usually IRC is used by mature people
04:52 PM DaRkV0rt3X: but they told me that it could be insultuous to children
04:52 PM DaRkV0rt3X: maybe insultuos is not a good word
04:52 PM DaRkV0rt3X: but that it could not be very polite to have the Shitty word in my nick
04:53 PM DaRkV0rt3X: because of youngsters
04:53 PM cehteh: i mean, i'd ask and such at people with outright offensive nicknames and who show bad behavior but if there is some pun/fun in the nick, who cares
04:53 PM DaRkV0rt3X: I don't believe that many ghildren use IRC nowadays
04:53 PM cehteh: i bet 99% of all childen think funny about that nick
04:53 PM DaRkV0rt3X: yeah I know lol
04:54 PM DaRkV0rt3X: and I also said that the nickname was not intended to be offensive in any ways
04:54 PM DaRkV0rt3X: rather funny
04:54 PM DaRkV0rt3X: but, what can I do?
04:54 PM DaRkV0rt3X: Not much
04:54 PM cehteh: dont join these channels
04:54 PM cehteh: in my experience its best to avoid channels when they are lead by shitheads :)
04:54 PM DaRkV0rt3X: Well, when I joined that channel, I did it because I knoew someone that used that channel
04:55 PM DaRkV0rt3X: and it was one of the ways to find that someone was to get in there
04:55 PM cehteh: #debian on oftc once (or still) had the realname policy, i left it empty, they complained, after i changed it to "Mary Huana" no one complained anymore :D
04:56 PM cehteh: that only shows how unpractiical such rules are
04:56 PM cehteh: if anyone wants to find out my real name and address its pretty simple anyway
04:56 PM cehteh: (or just ask me, if there is some reason i may tell)
04:57 PM cehteh: anyway what is DDS?
05:01 PM DaRkV0rt3X: It's a signal generator
05:02 PM cehteh: as software module or hardware (i didnt followed you project)
05:08 PM DaRkV0rt3X: It's an hardware
05:08 PM DaRkV0rt3X: I bought on ebay
05:08 PM DaRkV0rt3X: uses the AD9850 chip
05:08 PM DaRkV0rt3X: I am pretty sure I had this working before
05:09 PM DaRkV0rt3X: and now, all of a sudden I can't see any signal on the DDS module data pins when I upload the code into my uC
05:09 PM DaRkV0rt3X: I should see in the scope the setup bits "passing through" the uC into the DDS module
05:09 PM DaRkV0rt3X: I just can't "catch" anything on the scope
05:11 PM cehteh: check connections .again
05:13 PM Emil: "Ope ope tää ei toimi!" "Onks kaikki maat yhessä?" "On joo" "Tässä ei oo kaikki maat yhessä"
05:13 PM DaRkV0rt3X: I will, but I have tried it like 5 times
05:13 PM Emil: If someone more experienced than you asks you to do or check something you might want to do that
05:13 PM Emil: even if you have tried it 5 times already
05:14 PM DaRkV0rt3X: I'm going to do it again
05:14 PM DaRkV0rt3X: remove all DDS connections and rewire them once more
05:15 PM DaRkV0rt3X: I'm frustrated enough to almost quit
05:15 PM DaRkV0rt3X: I also think this breadboard might be problematic
05:15 PM Emil: Everyone knows that feeling
05:15 PM DaRkV0rt3X: I have changed my uC for 3 timnes
05:15 PM Emil: debugging a thing till the early morning hours
05:15 PM Emil: and still the fucker doesn't work
05:15 PM DaRkV0rt3X: and it was heating up a little
05:15 PM Emil: it's infuriating
05:15 PM DaRkV0rt3X: but I was able t load code
05:15 PM DaRkV0rt3X: and see the result
05:16 PM Emil: DaRkV0rt3X: if it was heating up you have power connections wrong
05:16 PM DaRkV0rt3X: I have even switched with my main circuit uC
05:16 PM Emil: And you might have broken something already
05:16 PM DaRkV0rt3X: and it was also heating up
05:16 PM DaRkV0rt3X: yes Emil but even with it heating up a little bit
05:16 PM DaRkV0rt3X: I was able to load code
05:16 PM DaRkV0rt3X: it was heating just a little bit
05:17 PM DaRkV0rt3X: not much
05:17 PM Emil: Heating up is not normal
05:17 PM Emil: You have a short
05:17 PM DaRkV0rt3X: I have even asked my wife to put her finger over it
05:17 PM Emil: (Highly likely)
05:17 PM Emil: But yeah gotta go to sleep
05:17 PM Emil: good night
05:17 PM DaRkV0rt3X: and she also noticed some heating
05:17 PM DaRkV0rt3X: ok, thanks
05:17 PM DaRkV0rt3X: have a good night
05:17 PM Emil: You, too
05:17 PM Emil: Good luck
08:35 PM Cracki: hey, anyone got a list of _newest_ (microchip) avr controllers? I know of some (328pb, tinyx16/17, ...), but not all
08:38 PM ohsix: microchip has ecn notice feeds
08:38 PM ohsix: seems like something would be in there
09:01 PM LeoNerd: Hrmm.. Dilemas... Do I use a cheap ol' PCF8574 as a simple I²C expander, or do I try to make a tiny84 into one that can also PWM a pin for fan control as well..?
09:01 PM LeoNerd: I can't really find any simple GPIO expanders with a PWM'able pin
09:16 PM rue_shop3: LeoNerd, ? you just want to speed control a fan?
09:17 PM LeoNerd: Well,.. no. I want a few remote GPIOs on the other side of an I²C link, but one of them wants to be a PWM'ed fan ideally
09:17 PM rue_shop3: you can mix i2c and pwm on a tiny13
09:17 PM LeoNerd: Yah. 13 or 85 or whatever
09:18 PM rue_shop3: you dont need more than a tiny13
09:18 PM LeoNerd: Though given I want a few more GPIOs I will probably use a tiny84
09:18 PM rue_shop3: :) I'd do it for you, but every time I do that for someone they aren't actually interested in it when I'm done!
09:18 PM LeoNerd: Eh; it won't be hard to write myself
09:18 PM LeoNerd: That's easy as compared all the other bits I'm doing ;)
09:19 PM rue_shop3: yea, just glue the i2c you have used before to the pwm you have used before
09:19 PM LeoNerd: Well, haven't implemented an I²C slave yet
09:19 PM LeoNerd: Doubly so, one on the USI of a tiny84
09:19 PM rue_shop3: no, use the bitbang library in asm by that guy
09:20 PM rue_shop3: its MORE work to use the usi
09:20 PM rue_shop3: pretty useless perphial
09:20 PM rue_shop3: Useless Serial Integrated
09:21 PM rue_shop3: my experience so far anyhow
09:21 PM rue_shop3: the bit bang asm takes up less memory too, but I'v not worked with the tiny85 yet, just the 13
09:21 PM LeoNerd: For a receiver, the USI does help
09:22 PM LeoNerd: The hardware handles clocking in individual bits, clocked by the external clock line
09:22 PM LeoNerd: So you just get told when it's ready
09:22 PM rue_shop3: but iirc you have to babysit them
09:22 PM LeoNerd: You do a bit, sure; but not as much as you'd need with a pure bitbang
09:24 PM LeoNerd: With USI => configure the module, then get interrupted after entire 8bit bytes have been transferred, having already been properly shifted in
09:24 PM LeoNerd: Without USI => use PCINT on the SCL pin to manually read the SDA line every bit, shifting it yourself, and keeping count of how many bits you've done
09:25 PM rue_shop3: when the docs were talking about timimg every bit yourself and setting a flag to send it, I stopped reading
09:25 PM LeoNerd: That's one among many options, for sending
09:25 PM LeoNerd: You can also send using a timer unit. But when receiving it usually uses the incoming clock signal
09:25 PM LeoNerd: For SPI or I²C slave
09:26 PM rue_shop3: just about as bad as the tlc5940, you have to clock all the counts and then do a reset
09:26 PM LeoNerd: Yah that's a.. fun chip
09:26 PM LeoNerd: I ended up using two timer units to drive that - one for its GSCLK and one to keep count of the blanking time
09:26 PM rue_shop3: I ended up using a CD4060 for most of it
09:27 PM rue_shop3: the avr gets an interrupt when the new values need to be loaded
09:27 PM rue_shop3: which it can pull off before the next clock pulse
09:27 PM LeoNerd: I did try cheating with the CKOUT pin of the AVR itself, but that was too fast for the transistors I was using to PWM outputs, and it upset the greyscale too much
09:27 PM LeoNerd: I couldn't get very dim colours out of it
09:27 PM rue_shop3: did you find the 5940 runs kinda hot?
09:28 PM LeoNerd: Nope, but then I wasn't passing actual LED current through it, just control current for a big bank of pFETs
09:28 PM LeoNerd: for various cabling and other reasons I like to do highside control
09:28 PM rue_shop3: ditto
09:29 PM rue_shop3: I'm using it to just run a motor driver
09:29 PM LeoNerd: Mine's in a big 8channel DMX-attached stage prop controller
09:36 PM Cracki: ok now I'm looking for "UPDI" capable programmers (the new attinys). I remember there being a cheap student version of the "atmel ice"... anyone know about that?
09:40 PM Cracki: there it is
09:41 PM Cracki: the bare pcb, 55 bucks, take 25% discount off, bäm!
09:42 PM Cracki: hohoho for a lousy breakout cable they want 25 bucks
09:55 PM rue_shop3: Cracki, tom made them
09:56 PM Cracki: I've got 2x5pin 50mil cables from aliexpress, I'll butcher one to be a whip
09:56 PM rue_shop3: its got pdi, isp, and tpi
09:56 PM Cracki: updi for the new tinys
09:56 PM rue_shop3: same as pdi tho wouldn't it be?
09:56 PM Cracki: neither my avrispmk2 nor my dragon can do it, and the avrice mk2 doesn't either
09:56 PM Cracki: not sure
09:56 PM Cracki: they call it updi
09:56 PM rue_shop3: for a t10?
09:57 PM Cracki: it's single wire over reset line
09:57 PM Cracki: tiny(4|8|16)(14|16|17)
09:57 PM rue_shop3: oh
09:57 PM Cracki: (btw: one product matrix hinted at 2k and 32k flash versions)
09:57 PM Cracki: the new tinys are awesome, they got microchip peripherals
09:57 PM rue_shop3: 6 pin?
09:57 PM Cracki: 2pin. ground and reset.
09:57 PM rue_shop3: no no, the chip
09:57 PM Cracki: the new tinys havr 14/20/24 pin packages
09:58 PM Cracki: very bare. gnd, vcc, rest is all gpios if you need
09:58 PM Cracki: reset can be gpio, xtal can be gpio...
09:58 PM Cracki: lots of adc channels, DAC too
09:58 PM Cracki: enough timers for a tiny
09:58 PM Cracki: 256/512/2048b sram
09:58 PM rue_shop3: is dac analog or pwm?
09:59 PM Cracki: dac analog of course
09:59 PM Cracki: 8 bit
09:59 PM Cracki: resistor network
09:59 PM rue_shop3: not always, but ok
09:59 PM Cracki: the mcp-era ones are analog dacs :)
09:59 PM Cracki: 350 khz output on the dac
09:59 PM Cracki: the adc got a boost too, something on the order of 150 khz
10:00 PM Cracki: they got two LUTs too
10:00 PM Cracki: each a 3 bit input
10:00 PM Cracki: you can attach anything that's a pin or an event
10:00 PM rue_shop3: are you familiar with the sip resistor packs?
10:00 PM Cracki: nop
10:00 PM Cracki: e
10:00 PM Cracki: ah, those things
10:01 PM rue_shop3: they WERE available in R-2R ladders, they put a quick stop to that,
10:01 PM Cracki: lol asses
10:01 PM rue_shop3: imagine the core of a supercheap dac in a sip
10:01 PM rue_shop3: 8 bit
10:01 PM Cracki: 8 pins
10:01 PM Cracki: but yeah...
10:01 PM rue_shop3: na, 10
10:01 PM Cracki: or 10
10:01 PM Cracki: 8 from the mcu
10:01 PM rue_shop3: 8 bit would be 10 pins
10:02 PM Cracki: when in doubt, let the picknplace put some sand grains down
10:02 PM Cracki: anyway, I'd recommend anyone check out the new tinys
10:02 PM Cracki: they're mindblowing
10:03 PM rue_shop3: I'v got one foot in stm32
10:03 PM Cracki: heh good
10:04 PM Cracki: there they are! https://www.microchip.com/pcn/
10:09 PM Cracki: great. I can either subscribe to ALL their spam, or to a fixed list of device types (so no new devices)
11:04 PM enh: hi
11:13 PM Cracki: hi~