#avr | Logs for 2016-03-06

Back
[03:08:16] <anton02> Are arduino timers as accurate as AVR?
[04:47:00] <Lambda_Aurigae> arduino timers are avr timers
[04:47:15] <Lambda_Aurigae> well, for most arduinos anyhow.
[04:47:23] <Lambda_Aurigae> some are arm and other processors.
[04:47:55] <Lambda_Aurigae> but, as I recall, arduino has a lot of other overhead that can cause issues.
[04:48:16] <Lambda_Aurigae> at least if you use the standard arduino libraries like wiring.
[05:10:41] <grafi_> Is the sysclk_get_cpu_hz() and same function for pba somewhat reliable?
[05:14:43] <grafi_> I had a discussion with a guy that meant the pm_configure_clocks() function is better than sysclk_init(), because it would set the clock in a more reliable way.
[05:17:46] <grafi_> I'm not sure what to use, sysclk_init() is more convenient since many of the other ASF module uses this and requires less hacking
[05:21:39] <grafi_> Anyone here with experience on the subject?
[05:21:48] <Lambda_Aurigae> no clue what you are talking about.
[05:21:57] <Lambda_Aurigae> never seen those functions.
[05:22:00] <liwakura> same
[05:22:13] <Lambda_Aurigae> but, not a surprise as they are from some ASF module
[05:22:28] <Lambda_Aurigae> as there are dozens of them
[05:22:52] <Lambda_Aurigae> and ASF only works within atmel studio which only works on windows which I don't use.
[05:24:51] <grafi_> Ah, ok
[05:25:30] <grafi_> Thought ASF was widely used
[05:30:35] <Lambda_Aurigae> not that I've seen.
[05:30:47] <Lambda_Aurigae> I played with it some time back on a windows vm and found it horrible.
[05:32:06] <grafi_> I have to agree with that
[05:33:57] <Lambda_Aurigae> I've also worked with avr since about 2001 or so and generally do everything with simple text editors and command line applications so tend to have issues with integrated development environments.
[05:34:59] <Lambda_Aurigae> even as far back as programming in unix on a sun 3/260 workstation in the late 80s I did it all the same way.
[05:35:19] <Lambda_Aurigae> but, we didn't have IDEs back then.
[05:35:34] <Lambda_Aurigae> I'm kinda set in my ways.
[05:37:11] * Lambda_Aurigae misses line numbers in programs.....
[05:37:32] * liwakura feels young
[05:38:07] <Lambda_Aurigae> kids these days...sheesh, in my day we programmed with a hole punch and liked it!
[05:38:40] <Lambda_Aurigae> at least, that's how I programmed with one version of my tape reader for a 4-bit computer I built as a teenager.
[05:38:50] <Lambda_Aurigae> strips of graph paper and a hole punch.
[05:39:23] <Lambda_Aurigae> other version used contacts to read pencil markings on said same strips.
[05:39:49] <Lambda_Aurigae> went from rom to eraseable-rewritable storage.
[05:40:05] <Lambda_Aurigae> rom/worm
[05:42:32] <grafi_> It sounds like a good workflow for those who has some experience
[05:43:20] <grafi_> Im stuck with an AVR32, find it way more difficult than the 8-bit series which I have some experience with, hence ASF
[05:43:38] <Lambda_Aurigae> I thought the avr32 line would be awesome.
[05:43:42] <Lambda_Aurigae> I've discovered otherwise.
[05:43:52] <Lambda_Aurigae> and have switched to pic32
[05:44:20] <Lambda_Aurigae> fun toys in a more usable package for me.
[05:44:51] <Lambda_Aurigae> in the process, finally, of gathering bits-n-software to do fpga learning.
[05:47:32] <Lambda_Aurigae> I was put onto a $25.00 fpga dev board that seems like it will be very usable.
[05:47:41] <grafi_> Do you have any experience with the avr SAM series?
[05:48:36] <Lambda_Aurigae> atmel sam series
[05:48:44] <Lambda_Aurigae> they are arm processors..
[05:48:46] <sebus> 12:12:28 <Lambda_Aurigae> kids these days...sheesh, in my day we programmed with a hole punch and liked it! - respect.
[05:49:07] <Lambda_Aurigae> as for experience with them, no.
[05:49:18] <grafi_> ah, yep, I actually knew that, my bad
[05:49:19] <Lambda_Aurigae> arm is something I haven't really gotten into.
[05:49:25] <grafi_> ok
[05:49:42] <Lambda_Aurigae> sebus, it seemed like the best way to get program into my computer at the time.
[05:50:04] <grafi_> I get the impression that avr32 isn't so widely used
[05:50:15] <Lambda_Aurigae> the #2 pencil coloring in squares on the strip of graph paper actually worked better and was 6 months later than the hole punch version.
[05:50:31] <Lambda_Aurigae> avr32 is pretty much dying. I can't say I've ever seen it in a commercial product.
[05:50:46] <Lambda_Aurigae> arm has killed it
[05:50:57] <Lambda_Aurigae> faster, cheaper, more widely supported
[05:51:19] <Lambda_Aurigae> it tried to be arm back in the day but didn't have the push to do it right.
[05:53:42] <Lambda_Aurigae> these days it is not nearly fast enough, is overpriced, and not enough support in the community
[05:53:46] <liwakura> i've read the arm spec
[05:54:01] <liwakura> and i like it, at least until v7 or so
[05:54:33] <Lambda_Aurigae> I have a rPI here that I want to try some bare metal programming on one of these days
[05:54:46] <liwakura> oh, good luck
[05:55:03] <liwakura> i heard that it requires non-open blobs to even boot
[05:56:11] <liwakura> i think that ARM is the arch of the future
[05:56:40] <Lambda_Aurigae> yeah...and video too.
[05:57:01] <Lambda_Aurigae> but I did find everything I needed to boot to a flashy led code.
[05:57:10] <Lambda_Aurigae> did that once but never went beyond there.
[05:57:41] <Lambda_Aurigae> only other arm thingies I have here are phones and tablets.
[05:58:11] <liwakura> im using an rPi as desktop
[05:58:19] <Lambda_Aurigae> I'm looking to sell mine.
[05:58:23] <liwakura> why?
[05:58:28] <Lambda_Aurigae> I don't use it.
[05:58:32] <liwakura> hm
[05:58:42] <liwakura> i'd rather gift it to some talented minor
[05:58:44] <Lambda_Aurigae> even bought an addon i/o breadboard adapter for it.
[05:58:57] <Lambda_Aurigae> it is an rPI B+
[05:59:07] <liwakura> ii actually have two rPi's
[05:59:19] <liwakura> i bought the other one because the first one wasn't fast enough for my requirements
[05:59:34] <Lambda_Aurigae> wouldn't mind an rPI 2 but I found another board that seems to blow it away.
[05:59:56] <Caesium> pine64?
[06:01:14] <Lambda_Aurigae> odroid c2 actually
[06:01:21] <Lambda_Aurigae> http://www.hardkernel.com/main/products/prdt_info.php?g_code=G145457216438
[06:01:27] <Caesium> ah yeah, looks familiar too
[06:01:40] <Caesium> yep, in my history :D
[06:01:44] <Lambda_Aurigae> 2GB ram, quad core 2ghz arm, gigabit ethernet
[06:01:46] <Caesium> Pi are losing their way imo.
[06:01:50] <Caesium> Raspberry, I should say
[06:02:04] <Lambda_Aurigae> yeah..rPI started good but they haven't kept up.
[06:02:34] <Lambda_Aurigae> and at $40.00 USD including worldwide shipping, it looks awesome from here.
[06:02:38] <Caesium> the gig ethernet is nice on that, even the Pine64 is only 100Mb via usb iirc
[06:03:02] <Lambda_Aurigae> and that is straight into the chip I do believe, not through a usb adapter like the rPI
[06:03:41] <Lambda_Aurigae> if I got that I would want to get a 64GB eMMC module for it too...supposed to boot 5 times faster than SD
[06:04:07] <Lambda_Aurigae> and, that leaves the microSD slot open for data and such too.
[06:04:27] <Lambda_Aurigae> it also has separate usb host and usb otg ports that are both active at the same time.
[06:04:42] <Lambda_Aurigae> and, apparently, a separate gpu.
[06:34:52] <Martin90> is there any active STM32 forum besides this one -> https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/AllItems.aspx ?
[06:56:24] <WormFood> Is the Arduino IDE busted or something? It absolutely refuses to use usbasp mode, for me, unless I'm programming the bootloader.
[07:00:47] <Lambda_Aurigae> WormFood, could be...might want to check the arduino forums.
[14:13:22] <wondiws> let's make sure I got this right: I'm using an ATMega32 clocked at 8MHz, and I want the 7seg display to up once every second. Now I put timer1 prescaler to 1024. Then I have to set TCNT1 after every overflow to 57724, right?
[14:14:00] <wondiws> 8,000,000/1024 = 7812.5
[14:14:11] <wondiws> 2^16-7812=57724
[14:14:16] <wondiws> is that the correct calculation?
[14:14:28] <wondiws> I does seem to be off about 4 seconds after 2 minutes or something
[14:23:14] <Jartza> why don't you use CTC mode?
[14:23:19] <Jartza> Clear Timer on Compare
[14:23:24] <Jartza> and then compare match interrupt
[14:24:46] <Jartza> just set the compare register to 7812
[14:33:04] <Emil> wondiws: why not use the watchdog timer?
[14:34:50] <wondiws> Emil, huh, watchdog is for something else, right?
[14:40:32] <Jartza> depends, if you only want to do stuff once a second, you might aswell sleep between the events and use watchdog timer to wake up from sleep
[14:41:36] <Emil> It isnt even necessary to sleep, the watchdog just gives long delays you can use.
[14:49:44] <julius> evening
[15:10:43] <cehteh> lo
[18:39:04] <Lambda_Aurigae> https://drive.google.com/folderview?id=0BxaP1wMEe_6aVGg4bUNpdGIwdUE&usp=sharing my sawdust project.
[18:42:42] <Lambda_Aurigae> is 6'7" long, 26" deep, and 36" tall
[19:12:06] <Caesium> nice. you design that as well?
[19:12:33] <Caesium> I'm hoping to get a workshop built soon so I can try my hand at this. it will probably not look as good as that :P
[19:13:32] <Lambda_Aurigae> design?
[19:13:35] <Lambda_Aurigae> there's a design?
[19:13:44] <Caesium> you just threw bits of wood together and thats what came out?
[19:13:59] <Lambda_Aurigae> I did kinda sketch something once on a hunk of plywood just to get some numbers straight
[19:14:03] <Lambda_Aurigae> but, yeah, no design.
[19:14:14] <Lambda_Aurigae> bought a bunch of wood and some paneling I had in the shed.
[19:14:17] <Lambda_Aurigae> and started building.
[19:14:31] <Caesium> I'm impressed :)
[19:14:32] <Lambda_Aurigae> 6 month or so of hacking it together.
[19:15:54] <Lambda_Aurigae> that's how I make most things.
[19:16:11] <Lambda_Aurigae> there is an oak table in the background of one of those pics that I made to fit the kitchen when we moved here.
[19:25:59] <Casper> one of the next big project here is to lift the house, redo the full basement, electricity, plumbing, redo the kitchen and bathroom and a few other misc related things...
[19:26:12] <Lambda_Aurigae> ouch.
[19:26:17] <Lambda_Aurigae> not something I would do on my own.
[19:37:30] <Tom_itx> i didn't lift the house but i did put a basement under it
[19:38:12] <Casper> the basement is almost at a good height...
[19:38:20] <Tom_itx> http://tom-itx.no-ip.biz:81/~webpage/temp/house/1.jpg
[19:38:37] <Tom_itx> http://tom-itx.no-ip.biz:81/~webpage/temp/house/7.jpg
[19:38:39] <Casper> ... about 6" too low for my taste... but there is no subfloor... direct on concrete... and faaaar from being level
[19:38:52] <Casper> about 2" between the wall and the center
[19:39:13] <Tom_itx> i had no concrete until i put it there
[19:40:54] <Casper> ideally, I would have to break all the concrete, remove the pyrite under it, put new stone, redo concrete, add subfloor....
[20:07:05] <learath> oh man. So jealous. BASEMENT!
[20:08:53] <Casper> learath: with an unfinish part!
[20:09:11] <Casper> wanna see the unfinished part? :D
[20:11:57] <learath> lol
[20:12:14] <Casper> learath: https://farm6.staticflickr.com/5546/11959824756_58fef1ebb1_o.jpg
[20:12:33] <Casper> (warning: size)
[20:13:48] <Casper> don't forget to zoom in
[20:15:06] * Casper needs to redo another one..
[20:25:12] <Tom_itx> cannot be displayed because it contains errors
[21:57:07] <Casper> Tom_itx: your browser don't like it then
[21:57:34] <Casper> https://www.flickr.com/photos/93694432@N04/11959824756/in/dateposted-public/ better maybe?